X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Ftraduire.php;h=989e763bfe64ce12c7bebee8744167e280995785;hp=1bb4cc9d2e541361fbab6734e6b664e34edae265;hb=d18fcb8f27a4016e3fa7b50a9b2255d529dca543;hpb=e847eea4a82a7396dd0abf860f9b30d654f38629 diff --git a/www/ecrire/inc/traduire.php b/www/ecrire/inc/traduire.php index 1bb4cc9..989e763 100644 --- a/www/ecrire/inc/traduire.php +++ b/www/ecrire/inc/traduire.php @@ -140,9 +140,13 @@ function inc_traduire_dist($ori, $lang) { if (empty($GLOBALS[$var])) { charger_langue($lang, $module); - // surcharge perso -- on cherche (lang/)local_xx.php ... - if (!isset($local['local_'.$lang])) + // surcharge perso + // -- on cherche (lang/)local_xx.php ... + if (!isset($local['local_'.$lang])) { + // redéfinir la langue en cours pour les surcharges (chercher_langue a pu le changer) + $GLOBALS['idx_lang']= $var; $local['local_'.$lang] = chercher_module_lang('local', $lang); + } if ($local['local_'.$lang]) surcharger_langue($local['local_'.$lang]); // ... puis (lang/)local.php