29 |
\version $Revision$ |
\version $Revision$ |
30 |
*/ |
*/ |
31 |
|
|
32 |
require("master.inc.php"); |
require_once("master.inc.php"); |
33 |
|
|
34 |
|
|
35 |
// Verification du login. |
// Verification du login. |
135 |
} |
} |
136 |
if (isset($user->conf->MAIN_LANG_DEFAULT) && $user->conf->MAIN_LANG_DEFAULT) |
if (isset($user->conf->MAIN_LANG_DEFAULT) && $user->conf->MAIN_LANG_DEFAULT) |
137 |
{ |
{ |
138 |
if ($conf->langage != $user->conf->MAIN_LANG_DEFAULT) |
if ($langs->getDefaultLang() != $user->conf->MAIN_LANG_DEFAULT) |
139 |
{ |
{ |
140 |
// Si on a un langage perso différent du langage global |
// Si on a un langage perso différent du langage courant global |
141 |
$conf->langage=dolibarr_set_php_lang($user->conf->MAIN_LANG_DEFAULT); |
$langs->setDefaultLang($user->conf->MAIN_LANG_DEFAULT); |
142 |
|
$langs->setPhpLang($user->conf->MAIN_LANG_DEFAULT); |
|
$langs = new Translate(DOL_DOCUMENT_ROOT ."/langs", $conf->langage); |
|
143 |
} |
} |
144 |
} |
} |
145 |
|
|