Riferimenti per il file typo3_src-3.8.1/typo3/ext/phpmyadmin/modsub/phpMyAdmin-2.6.4-pl3/libraries/select_lang.lib.php

Vai al codice sorgente di questo file.

Funzioni

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

Variabili

 $lang_path = 'lang/'
 $available_languages
 $mysql_charset_map
 $acceptedCnt = count($accepted)


Documentazione delle funzioni

PMA_langDetect str = '',
envType = ''
 

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

Parametri:
string string to analyze
integer type of the PHP environment variable which value is $str
array the list of available translations string the retained translation keyword

private

Definizione alla linea 190 del file select_lang.lib.php.

Riferimenti $available_languages, $key, $lang, $value, e space.


Documentazione delle variabili

$acceptedCnt = count($accepted)
 

Definizione alla linea 280 del file select_lang.lib.php.

$available_languages
 

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:

  • 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 dialect has to be specified as first;
  • 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 'inc.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 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.

$lang_path = 'lang/'
 

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.

$mysql_charset_map
 

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.


Generato il Thu Jan 19 15:26:43 2006 per TYPO3 versione 3.8.1 da  doxygen 1.4.6