Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 1. júl 2016
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Dokumentácia  »  HTML  »  Languages

3.10. Languages

The default language setting is the user's web browser language setting. Use it if possible. The following example forces the English language version, and the last forces the Slovak language version.

Example 3-28. Languages selection

// client language (default)
$opts['language'] = $_SERVER['HTTP_ACCEPT_LANGUAGE'];

$opts['language'] = 'EN'; // forces english language
$opts['language'] = 'SK-UTF8'; // slovak language in UTF-8 encoding

Available languages are:

CZ   czech
DE   german (standard)
DK   danish
EL   greek (hellenic)
EN   english
EN-US   english (United States)
ES   spanish
ES-AR   spanish (argentinian)
ES-MX   spanish (mexican)
EU   basque
FR   french (standard)
ID   indonesian
IT   italian (standard)
JP   japanese
NL   dutch (standard)
PL   polish
PT   portuguese (standard)
PT-BR   portuguese (brazilian)
RU   russian
SE   swedish
SK   slovak
TR   turkish
ZH   chinese (traditional)
ZH-SG   chinese (Singapore)

Language codes are based on ISO-3166 standard, which is available on many places, for example here.

You can append encoding strings to your language, such as -UTF8 or -LATIN2. If no encoding is specified, backward compatible default one will be used.

Warning

Default encoding will be switched in next release to UTF-8 in every available language.


Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov