Vai al codice sorgente di questo file.
Funzioni | |
| PMA_langDetect ($str= '', $envType= '') | |
Variabili | |
| $lang_path = 'lang/' | |
| $available_languages | |
| $mysql_charset_map | |
| $acceptedCnt = count($accepted) | |
|
||||||||||||
|
Analyzes some PHP environment variables to find the most probable language that should be used
private Definizione alla linea 190 del file select_lang.lib.php. Riferimenti $available_languages, $key, $lang, $value, e space. |
|
|
Definizione alla linea 280 del file select_lang.lib.php. |
|
|
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 contain 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:
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 last because we need the default charset to be non-utf-8 to avoid problems on MySQL < 4.1.x if AllowAnywhereRecoding is FALSE. For Russian, we put 1251 first, because MSIE does not accept 866 and users would not see anything. Definizione alla linea 56 del file select_lang.lib.php. |
|
|
Define the path to the translations directory and get some variables from system arrays if 'register_globals' is set to 'off' Definizione alla linea 21 del file select_lang.lib.php. |
|
|
Valore iniziale: array(
'big5' => 'big5',
'cp-866' => 'cp866',
'euc-jp' => 'ujis',
'euc-kr' => 'euckr',
'gb2312' => 'gb2312',
'gbk' => 'gbk',
'iso-8859-1' => 'latin1',
'iso-8859-2' => 'latin2',
'iso-8859-7' => 'greek',
'iso-8859-8' => 'hebrew',
'iso-8859-8-i' => 'hebrew',
'iso-8859-9' => 'latin5',
'iso-8859-13' => 'latin7',
'iso-8859-15' => 'latin1',
'koi8-r' => 'koi8r',
'shift_jis' => 'sjis',
'tis-620' => 'tis620',
'utf-8' => 'utf8',
'windows-1250' => 'cp1250',
'windows-1251' => 'cp1251',
'windows-1252' => 'latin1',
'windows-1256' => 'cp1256',
'windows-1257' => 'cp1257',
)
Definizione alla linea 239 del file select_lang.lib.php. |
1.4.6