Skip to content
Extraits de code Groupes Projets
Valider a86fe4e8 rédigé par Fil's avatar Fil
Parcourir les fichiers

généralisation du module "local_fr.php3" et suppression de la méthode lang_perso...

parent f7fa4701
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -46,15 +46,14 @@ function charger_langue($lang, $module = 'spip') { ...@@ -46,15 +46,14 @@ function charger_langue($lang, $module = 'spip') {
} }
} }
// surcharge perso // surcharge perso -- on cherche le fichier local(_xx).php3 dans le chemin
if ($f = (find_in_path('lang_perso.php3'))) if ($f = (find_in_path('local.php3')))
surcharger_langue($f); surcharger_langue($f);
if ($f = (find_in_path('lang_perso_'.$lang.'.php3'))) if ($f = (find_in_path('local_'.$lang.'.php3')))
surcharger_langue($f);
// compatibilite ascendante : chercher aussi local_xx.php3 dans ecrire/lang/
else if (@is_readable($f = _DIR_LANG . 'local_'.$lang.'.php3'))
surcharger_langue($f); surcharger_langue($f);
# // Overkill ? Surcharger uniquement le module demande
# if ($f = (find_in_path('lang_perso_'.$module.'_'.$lang.'.php3')))
# surcharger_langue($f);
} }
// //
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter