Changeset 12926 for extensions/PHP_Optimisateur/include/functions.php
- Timestamp:
- Jan 19, 2012, 6:38:53 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PHP_Optimisateur/include/functions.php
r12819 r12926 3 3 // Affiche les textes localisés 4 4 function l10n($code) { 5 global $ Lang;6 if (isset($ Lang[$code])) {5 global $lang; 6 if (isset($lang[$code])) { 7 7 $args = func_get_args(); 8 8 if (count($args) > 1) { 9 9 array_shift($args); 10 return vsprintf($ Lang[$code], $args);11 } else { 12 return $ Lang[$code];10 return vsprintf($lang[$code], $args); 11 } else { 12 return $lang[$code]; 13 13 } 14 14 } else { … … 182 182 // Booléen vers français ou texte 183 183 function bool_to_string($string, $just_echo=0) { 184 global $ Lang;184 global $lang; 185 185 # $just_echo pour pouvoir afficher un booléen tel quel (echo true; n'affiche rien) 186 186 if (is_bool($string)) { … … 259 259 // Charge le fichier de langue d'un plugin 260 260 function load_plugin_lang($plugin_id) { 261 global $CONF, $ Lang;261 global $CONF, $lang; 262 262 if (file_exists('plugins/'.$plugin_id.'/language/'.$CONF['user_lang'].'.php')) { 263 263 include('plugins/'.$plugin_id.'/language/'.$CONF['user_lang'].'.php');
Note: See TracChangeset
for help on using the changeset viewer.