XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence du fichier language.php

Espaces de nommage

 upgrader
 

Fonctions

 xoops_analyzeLanguage ($str='', $envType='')
 
 xoops_detectLanguage ()
 

Variables

 $available_languages
 

Documentation des fonctions

◆ xoops_analyzeLanguage()

xoops_analyzeLanguage (   $str = '',
  $envType = '' 
)

Analyzes some PHP environment variables to find the most probable language that should be used

Paramètres
string$strstring to analyze
integer$envTypetype of the PHP environment variable which value is $str @global array the list of available translations @global string the retained translation keyword @access private
Renvoie
int|string
+ Voici le graphe des appelants de cette fonction :

◆ xoops_detectLanguage()

xoops_detectLanguage ( )
Renvoie
string
+ Voici le graphe d'appel pour cette fonction :

Documentation des variables

◆ $available_languages

$available_languages

phpMyAdmin Language Loading File All the supported languages have to be listed in the array below.

  1. The key must be the "official" ISO 639 language code and, if required, the dialect code. It can also contains some informations about the charset (see the Russian case).
  2. The first of the values associated to the key is used in a regular expression to find some keywords corresponding to the language inside two environment variables. These values contains:
    • the "official" ISO language code and, if required, the dialect code also ('bu' for Bulgarian, 'fr([-_][[:alpha:]]{2})?' for all French dialects, 'zh[-_]tw' for Chinese traditional...);
    • the '|' character (it means 'OR');
    • the full language name.
  3. The second values associated to the key is the name of the file to load without the '.php' extension.
  4. The last values associated to the key is the language code as defined by the RFC1766.

Beware that the sorting order (first values associated to keys by alphabetical reverse order in the array) is important: 'zh-tw' (chinese traditional) must be detected before 'zh' (chinese simplified) for example.

When there are more than one charset for a language, we put the -utf-8 first.