[spip-dev] Fonction traduire en SPIP 3.0 et SPIP 3.1

Hello,

En reportant le var_mode=traduction de SPIP 3.1 en SPIP 3.0 je me suis rendu compte de quelques différences de code dans la fonction.

Néanmoins j’arrive pas à distinguer si ce sont des corrections ou des améliorations 3.1 non valables pour la 3.0.

Ligne 140 en SPIP 3.0
if (empty($GLOBALS[$var])) {
charger_langue($lang, $module);

// surcharge perso – on cherche (lang/)local_xx.php …
if (!isset($local[‘local_’.$lang]))
$local[‘local_’.$lang] = chercher_module_lang(‘local’, $lang);
if ($local[‘local_’.$lang])
surcharger_langue($local[‘local_’.$lang]);
// … puis (lang/)local.php
if (!isset($local[‘local’]))
$local[‘local’] = chercher_module_lang(‘local’);
if ($local[‘local’])
surcharger_langue($local[‘local’]);
}

Ligne 219 en SPIP 3.1
if (empty($GLOBALS[$var])) {
charger_langue($lang, $module);
}
// surcharges persos – on cherche
// (lang/)local_xx.php et/ou (lang/)local.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;
// … (lang/)local_xx.php
$local[‘local_’.$lang] = chercher_module_lang(‘local’, $lang);
if ($local[‘local_’.$lang])
surcharger_langue($local[‘local_’.$lang]);
// … puis (lang/)local.php
if (!isset($local[‘local’]))
$local[‘local’] = chercher_module_lang(‘local’);
if ($local[‘local’])
surcharger_langue($local[‘local’]);
}

Faut-il reporter cette modification en 3.0 ?