squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

i18n.php File Reference

Go to the source code of this file.

Namespaces

 squirrelmail
 

Functions

 sq_change_text_domain ($domain_name, $directory='')
 
 sq_bindtextdomain ($domain, $dir='')
 
 sq_setlocale ($category, $locale)
 
 charset_decode ($charset, $string, $force_decode=false, $save_html=false)
 
 charset_encode ($string, $charset, $htmlencode=true)
 
 charset_convert ($in_charset, $string, $out_charset, $htmlencode=true)
 
 fixcharset ($charset)
 
 set_up_language ($sm_language, $do_search=false, $default=false)
 
 set_my_charset ()
 
 is_conversion_safe ($input_charset)
 
 japanese_charset_xtra ()
 
 korean_charset_xtra ()
 

Variables

 if (!defined( 'SM_PATH')) define( 'SM_PATH'
 
global $squirrelmail_language
 
global $languages
 
global $use_gettext
 
$languages

This array specifies the available translations.

Structure of array: $languages['language']['variable'] = 'value'

Possible 'variable' names: NAME - Translation name in English CHARSET - Encoding used by translation ALIAS - used when 'language' is only short name and 'value' should provide long language name ALTNAME - Native translation name. Any 8bit symbols must be html encoded. LOCALE - Full locale name (in xx_XX.charset format). It can use array with more than one locale name since 1.4.5 and 1.5.1 DIR - Text direction. Used to define Right-to-Left languages. Possible values 'rtl' or 'ltr'. If undefined - defaults to 'ltr' XTRA_CODE - translation uses special functions. See http://squirrelmail.org/docs/devel/devel-3.html

Each 'language' definition requires NAME+CHARSET or ALIAS variables.

@global array $languages

 $languages ['bg_BG']['NAME'] = 'Bulgarian'
 
 $languages ['bg_BG']['CHARSET'] = 'windows-1251'
 
 $languages ['bg_BG']['LOCALE'] = 'bg_BG.CP1251'
 
 $languages ['bg']['ALIAS'] = 'bg_BG'
 
 $languages ['bn_BD']['NAME'] = 'Bengali (Bangladesh)'
 
 $languages ['bn_BD']['ALTNAME'] = 'বাংলা'
 
 $languages ['bn_BD']['CHARSET'] = 'utf-8'
 
 $languages ['bn_BD']['LOCALE'] = array('bn_BD.UTF-8', 'bn_BD.UTF8', 'bn_BD', 'bn.UTF-8', 'bn.UTF8', 'bn')
 
 $languages ['bn']['ALIAS'] = 'bn_BD'
 
 $languages ['bn_IN']['NAME'] = 'Bengali (India)'
 
 $languages ['bn_IN']['CHARSET'] = 'utf-8'
 
 $languages ['bn_IN']['LOCALE'] = array('bn_IN.UTF-8', 'bn_IN.UTF8')
 
 $languages ['ca_ES']['NAME'] = 'Catalan'
 
 $languages ['ca_ES']['CHARSET'] = 'iso-8859-1'
 
 $languages ['ca_ES']['LOCALE'] = array('ca_ES.ISO8859-1','ca_ES.ISO-8859-1','ca_ES')
 
 $languages ['ca']['ALIAS'] = 'ca_ES'
 
 $languages ['cs_CZ']['NAME'] = 'Czech'
 
 $languages ['cs_CZ']['ALTNAME'] = 'Čeština'
 
 $languages ['cs_CZ']['CHARSET'] = 'utf-8'
 
 $languages ['cs_CZ']['LOCALE'] = array('cs_CZ.UTF-8', 'cs_CZ.UTF8', 'cs_CZ')
 
 $languages ['cs']['ALIAS'] = 'cs_CZ'
 
 $languages ['cy_GB']['NAME'] = 'Welsh'
 
 $languages ['cy_GB']['CHARSET'] = 'iso-8859-1'
 
 $languages ['cy_GB']['LOCALE'] = array('cy_GB.ISO8859-1','cy_GB.ISO-8859-1','cy_GB')
 
 $languages ['cy']['ALIAS'] = 'cy_GB'
 
 $languages ['da_DK']['NAME'] = 'Danish'
 
 $languages ['da_DK']['CHARSET'] = 'iso-8859-1'
 
 $languages ['da_DK']['LOCALE'] = array('da_DK.ISO8859-1','da_DK.ISO-8859-1','da_DK')
 
 $languages ['da']['ALIAS'] = 'da_DK'
 
 $languages ['de_DE']['NAME'] = 'German'
 
 $languages ['de_DE']['ALTNAME'] = 'Deutsch'
 
 $languages ['de_DE']['CHARSET'] = 'iso-8859-1'
 
 $languages ['de_DE']['LOCALE'] = array('de_DE.ISO8859-1','de_DE.ISO-8859-1','de_DE')
 
 $languages ['de']['ALIAS'] = 'de_DE'
 
 $languages ['el_GR']['NAME'] = 'Greek'
 
 $languages ['el_GR']['CHARSET'] = 'iso-8859-7'
 
 $languages ['el_GR']['LOCALE'] = array('el_GR.ISO8859-7','el_GR.ISO-8859-7','el_GR')
 
 $languages ['el']['ALIAS'] = 'el_GR'
 
 $languages ['en_US']['NAME'] = 'English'
 
 $languages ['en_US']['CHARSET'] = 'iso-8859-1'
 
 $languages ['en_US']['LOCALE'] = 'en_US.ISO8859-1'
 
 $languages ['en']['ALIAS'] = 'en_US'
 
 $languages ['es_ES']['NAME'] = 'Spanish'
 
 $languages ['es_ES']['CHARSET'] = 'iso-8859-1'
 
 $languages ['es_ES']['LOCALE'] = array('es_ES.ISO8859-1','es_ES.ISO-8859-1','es_ES')
 
 $languages ['es']['ALIAS'] = 'es_ES'
 
 $languages ['et_EE']['NAME'] = 'Estonian'
 
 $languages ['et_EE']['CHARSET'] = 'iso-8859-15'
 
 $languages ['et_EE']['LOCALE'] = array('et_EE.ISO8859-15','et_EE.ISO-8859-15','et_EE')
 
 $languages ['et']['ALIAS'] = 'et_EE'
 
 $languages ['eu_ES']['NAME'] = 'Basque'
 
 $languages ['eu_ES']['CHARSET'] = 'iso-8859-1'
 
 $languages ['eu_ES']['LOCALE'] = array('eu_ES.ISO8859-1','eu_ES.ISO-8859-1','eu_ES')
 
 $languages ['eu']['ALIAS'] = 'eu_ES'
 
 $languages ['fi_FI']['NAME'] = 'Finnish'
 
 $languages ['fi_FI']['CHARSET'] = 'iso-8859-1'
 
 $languages ['fi_FI']['LOCALE'] = array('fi_FI.ISO8859-1','fi_FI.ISO-8859-1','fi_FI')
 
 $languages ['fi']['ALIAS'] = 'fi_FI'
 
 $languages ['fo_FO']['NAME'] = 'Faroese'
 
 $languages ['fo_FO']['CHARSET'] = 'iso-8859-1'
 
 $languages ['fo_FO']['LOCALE'] = array('fo_FO.ISO8859-1','fo_FO.ISO-8859-1','fo_FO')
 
 $languages ['fo']['ALIAS'] = 'fo_FO'
 
 $languages ['fr_FR']['NAME'] = 'French'
 
 $languages ['fr_FR']['CHARSET'] = 'iso-8859-1'
 
 $languages ['fr_FR']['LOCALE'] = array('fr_FR.ISO8859-1','fr_FR.ISO-8859-1','fr_FR')
 
 $languages ['fr']['ALIAS'] = 'fr_FR'
 
 $languages ['fy']['NAME'] = 'Frisian'
 
 $languages ['fy']['CHARSET'] = 'utf-8'
 
 $languages ['fy']['LOCALE'] = array('fy.UTF-8', 'fy.UTF8', 'fy_NL.UTF-8', 'fy_NL.UTF8')
 
 $languages ['hr_HR']['NAME'] = 'Croatian'
 
 $languages ['hr_HR']['CHARSET'] = 'iso-8859-2'
 
 $languages ['hr_HR']['LOCALE'] = array('hr_HR.ISO8859-2','hr_HR.ISO-8859-2','hr_HR')
 
 $languages ['hr']['ALIAS'] = 'hr_HR'
 
 $languages ['hu_HU']['NAME'] = 'Hungarian'
 
 $languages ['hu_HU']['ALTNAME'] = 'Magyar'
 
 $languages ['hu_HU']['CHARSET'] = 'utf-8'
 
 $languages ['hu_HU']['LOCALE'] = array('hu_HU.UTF-8', 'hu_HU.UTF8', 'hu_HU')
 
 $languages ['hu']['ALIAS'] = 'hu_HU'
 
 $languages ['id_ID']['NAME'] = 'Bahasa Indonesia'
 
 $languages ['id_ID']['CHARSET'] = 'iso-8859-1'
 
 $languages ['id_ID']['LOCALE'] = array('id_ID.ISO8859-1','id_ID.ISO-8859-1','id_ID')
 
 $languages ['id']['ALIAS'] = 'id_ID'
 
 $languages ['is_IS']['NAME'] = 'Icelandic'
 
 $languages ['is_IS']['CHARSET'] = 'iso-8859-1'
 
 $languages ['is_IS']['LOCALE'] = array('is_IS.ISO8859-1','is_IS.ISO-8859-1','is_IS')
 
 $languages ['is']['ALIAS'] = 'is_IS'
 
 $languages ['it_IT']['NAME'] = 'Italian'
 
 $languages ['it_IT']['ALTNAME'] = 'Italiano'
 
 $languages ['it_IT']['CHARSET'] = 'utf-8'
 
 $languages ['it_IT']['LOCALE'] = array('it_IT.UTF-8','it_IT-UTF8','it_IT')
 
 $languages ['it']['ALIAS'] = 'it_IT'
 
 $languages ['ja_JP']['NAME'] = 'Japanese'
 
 $languages ['ja_JP']['CHARSET'] = 'iso-2022-jp'
 
 $languages ['ja_JP']['XTRA_CODE'] = 'japanese_charset_xtra'
 
 $languages ['ja']['ALIAS'] = 'ja_JP'
 
 $languages ['ka']['NAME'] = 'Georgian'
 
 $languages ['ka']['CHARSET'] = 'utf-8'
 
 $languages ['ka']['LOCALE'] = array('ka_GE.UTF-8', 'ka_GE.UTF8', 'ka_GE', 'ka')
 
 $languages ['ka_GE']['ALIAS'] = 'ka'
 
 $languages ['km']['NAME'] = 'Khmer'
 
 $languages ['km']['ALTNAME'] = 'ខ្មែរ'
 
 $languages ['km']['CHARSET'] = 'utf-8'
 
 $languages ['km']['LOCALE'] = array('km.UTF-8', 'km.UTF8', 'km_KH.UTF-8', 'km_KH.UTF8', 'km', 'km_KH')
 
 $languages ['km_KH']['ALIAS'] = 'km'
 
 $languages ['ko_KR']['NAME'] = 'Korean'
 
 $languages ['ko_KR']['CHARSET'] = 'euc-KR'
 
 $languages ['ko']['ALIAS'] = 'ko_KR'
 
 $languages ['lv_LV']['NAME'] = 'Latvian'
 
 $languages ['lv_LV']['ALTNAME'] = 'Latvių'
 
 $languages ['lv_LV']['CHARSET'] = 'utf-8'
 
 $languages ['lv_LV']['LOCALE'] = array('lv_LV.UTF-8', 'lv_LV.UTF8')
 
 $languages ['lv']['ALIAS'] = 'lv_LV'
 
 $languages ['lt_LT']['NAME'] = 'Lithuanian'
 
 $languages ['lt_LT']['CHARSET'] = 'utf-8'
 
 $languages ['lt_LT']['LOCALE'] = array('lt_LT.UTF-8', 'lt_LT.UTF8')
 
 $languages ['lt']['ALIAS'] = 'lt_LT'
 
 $languages ['mk']['NAME'] = 'Macedonian'
 
 $languages ['mk']['CHARSET'] = 'utf-8'
 
 $languages ['mk']['LOCALE'] = array('mk.UTF-8', 'mk.UTF8', 'mk_MK.UTF-8', 'mk_MK.UTF8')
 
 $languages ['ms_MY']['NAME'] = 'Bahasa Melayu'
 
 $languages ['ms_MY']['CHARSET'] = 'iso-8859-1'
 
 $languages ['ms_MY']['LOCALE'] = array('ms_MY.ISO8859-1','ms_MY.ISO-8859-1','ms_MY')
 
 $languages ['my']['ALIAS'] = 'ms_MY'
 
 $languages ['nl_NL']['NAME'] = 'Dutch'
 
 $languages ['nl_NL']['CHARSET'] = 'iso-8859-1'
 
 $languages ['nl_NL']['LOCALE'] = array('nl_NL.ISO8859-1','nl_NL.ISO-8859-1','nl_NL')
 
 $languages ['nl']['ALIAS'] = 'nl_NL'
 
 $languages ['nb_NO']['NAME'] = 'Norwegian (Bokmål)'
 
 $languages ['nb_NO']['CHARSET'] = 'utf-8'
 
 $languages ['nb_NO']['LOCALE'] = array('nb_NO.UTF-8', 'nb_NO.UTF8', 'nb_NO')
 
 $languages ['nb']['ALIAS'] = 'nb_NO'
 
 $languages ['nn_NO']['NAME'] = 'Norwegian (Nynorsk)'
 
 $languages ['nn_NO']['CHARSET'] = 'iso-8859-1'
 
 $languages ['nn_NO']['LOCALE'] = array('nn_NO.ISO8859-1','nn_NO.ISO-8859-1','nn_NO')
 
 $languages ['pl_PL']['NAME'] = 'Polish'
 
 $languages ['pl_PL']['CHARSET'] = 'iso-8859-2'
 
 $languages ['pl_PL']['LOCALE'] = array('pl_PL.ISO8859-2','pl_PL.ISO-8859-2','pl_PL')
 
 $languages ['pl']['ALIAS'] = 'pl_PL'
 
 $languages ['pt_PT']['NAME'] = 'Portuguese (Portugal)'
 
 $languages ['pt_PT']['CHARSET'] = 'iso-8859-1'
 
 $languages ['pt_PT']['LOCALE'] = array('pt_PT.ISO8859-1','pt_PT.ISO-8859-1','pt_PT')
 
 $languages ['pt']['ALIAS'] = 'pt_PT'
 
 $languages ['pt_BR']['NAME'] = 'Portuguese (Brazil)'
 
 $languages ['pt_BR']['CHARSET'] = 'iso-8859-1'
 
 $languages ['pt_BR']['LOCALE'] = array('pt_BR.ISO8859-1','pt_BR.ISO-8859-1','pt_BR')
 
 $languages ['ro_RO']['NAME'] = 'Romanian'
 
 $languages ['ro_RO']['CHARSET'] = 'utf-8'
 
 $languages ['ro_RO']['LOCALE'] = array('ro_RO.UTF-8', 'ro_RO.UTF8', 'ro_RO')
 
 $languages ['ro']['ALIAS'] = 'ro_RO'
 
 $languages ['ru_RU']['NAME'] = 'Russian'
 
 $languages ['ru_RU']['CHARSET'] = 'utf-8'
 
 $languages ['ru_RU']['LOCALE'] = array('ru_RU.UTF-8', 'ru_RU.UTF8')
 
 $languages ['ru']['ALIAS'] = 'ru_RU'
 
 $languages ['sk_SK']['NAME'] = 'Slovak'
 
 $languages ['sk_SK']['CHARSET'] = 'utf-8'
 
 $languages ['sk_SK']['LOCALE'] = array('sk_SK.UTF-8', 'sk_SK.UTF8', 'sk_SK')
 
 $languages ['sk']['ALIAS'] = 'sk_SK'
 
 $languages ['sl_SI']['NAME'] = 'Slovenian'
 
 $languages ['sl_SI']['CHARSET'] = 'iso-8859-2'
 
 $languages ['sl_SI']['LOCALE'] = array('sl_SI.ISO8859-2','sl_SI.ISO-8859-2','sl_SI')
 
 $languages ['sl']['ALIAS'] = 'sl_SI'
 
 $languages ['sr_YU']['NAME'] = 'Serbian'
 
 $languages ['sr_YU']['CHARSET'] = 'iso-8859-2'
 
 $languages ['sr_YU']['LOCALE'] = array('sr_YU.ISO8859-2','sr_YU.ISO-8859-2','sr_YU')
 
 $languages ['sr']['ALIAS'] = 'sr_YU'
 
 $languages ['sv_SE']['NAME'] = 'Swedish'
 
 $languages ['sv_SE']['CHARSET'] = 'utf-8'
 
 $languages ['sv_SE']['LOCALE'] = array('sv_SE.UTF-8', 'sv_SE.UTF8', 'sv_SE')
 
 $languages ['sv']['ALIAS'] = 'sv_SE'
 
 $languages ['ta_LK']['NAME'] = 'Tamil'
 
 $languages ['ta_LK']['ALTNAME'] = 'தமிழ்'
 
 $languages ['ta_LK']['CHARSET'] = 'utf-8'
 
 $languages ['ta_LK']['LOCALE'] = array('ta_LK.UTF-8', 'ta_LK.UTF8', 'ta_LK', 'ta.UTF-8', 'ta.UTF8', 'ta')
 
 $languages ['ta']['ALIAS'] = 'ta_LK'
 
 $languages ['tr_TR']['NAME'] = 'Turkish'
 
 $languages ['tr_TR']['CHARSET'] = 'iso-8859-9'
 
 $languages ['tr_TR']['LOCALE'] = array('tr_TR.ISO8859-9','tr_TR.ISO-8859-9','tr_TR')
 
 $languages ['tr']['ALIAS'] = 'tr_TR'
 
 $languages ['zh_TW']['NAME'] = 'Chinese Trad'
 
 $languages ['zh_TW']['CHARSET'] = 'utf-8'
 
 $languages ['zh_TW']['LOCALE'] = array('zh_TW.UTF-8', 'zh_TW.UTF8')
 
 $languages ['tw']['ALIAS'] = 'zh_TW'
 
 $languages ['zh_CN']['NAME'] = 'Chinese Simp'
 
 $languages ['zh_CN']['CHARSET'] = 'gb2312'
 
 $languages ['zh_CN']['LOCALE'] = 'zh_CN.GB2312'
 
 $languages ['cn']['ALIAS'] = 'zh_CN'
 
 $languages ['uk_UA']['NAME'] = 'Ukrainian'
 
 $languages ['uk_UA']['CHARSET'] = 'utf-8'
 
 $languages ['uk_UA']['LOCALE'] = array('uk_UA.UTF-8', 'uk_UA.UTF8', 'uk_UA', 'uk')
 
 $languages ['uk']['ALIAS'] = 'uk_UA'
 
 $languages ['vi_VN']['NAME'] = 'Vietnamese'
 
 $languages ['vi_VN']['CHARSET'] = 'utf-8'
 
 $languages ['vi']['ALIAS'] = 'vi_VN'
 
 $languages ['ar']['NAME'] = 'Arabic'
 
 $languages ['ar']['CHARSET'] = 'windows-1256'
 
 $languages ['ar']['DIR'] = 'rtl'
 
 $languages ['fa_IR']['NAME'] = 'Persian'
 
 $languages ['fa_IR']['CHARSET'] = 'utf-8'
 
 $languages ['fa_IR']['DIR'] = 'rtl'
 
 $languages ['fa_IR']['LOCALE'] = array('fa_IR.UTF-8', 'fa_IR.UTF8')
 
 $languages ['fa']['ALIAS'] = 'fa_IR'
 
 $languages ['he_IL']['NAME'] = 'Hebrew'
 
 $languages ['he_IL']['CHARSET'] = 'windows-1255'
 
 $languages ['he_IL']['DIR'] = 'rtl'
 
 $languages ['he']['ALIAS'] = 'he_IL'
 
 $languages ['ug']['NAME'] = 'Uighur'
 
 $languages ['ug']['CHARSET'] = 'utf-8'
 
 $languages ['ug']['DIR'] = 'rtl'
 
 $gettext_flags = 0
 

Function Documentation

◆ charset_convert()

charset_convert (   $in_charset,
  $string,
  $out_charset,
  $htmlencode = true 
)

Combined decoding and encoding functions

If conversion is done to charset different that utf-8, unsupported symbols will be replaced with question marks.

Since
1.4.4 and 1.5.1
Parameters
string$in_charsetinitial charset
string$stringstring that has to be converted
string$out_charsetfinal charset
boolean$htmlencodekeep htmlspecialchars encoding
Returns
string converted string

Definition at line 264 of file i18n.php.

References charset_decode(), and charset_encode().

Referenced by abook_ldap_server\charset_decode(), abook_ldap_server\charset_encode(), decodeHeader(), and newMail().

◆ charset_decode()

charset_decode (   $charset,
  $string,
  $force_decode = false,
  $save_html = false 
)

Converts string from given charset to charset, that can be displayed by user translation.

Function by default returns html encoded strings, if translation uses different encoding. If Japanese translation is used - function returns string converted to euc-jp If $charset is not supported - function returns unconverted string.

sanitizing of html tags is also done by this function.

Parameters
string$charset
string$stringText to be decoded
boolean$force_decodeconverts string to html without $charset!=$default_charset check. Argument is available since 1.4.5 and 1.5.1.
boolean$save_htmldisables htmlspecialchars() in order to preserve html formating. Use with care. Available since 1.4.6 and 1.5.1
Returns
string decoded string

Definition at line 178 of file i18n.php.

References $charset, $default_charset, $languages, $ret, $squirrelmail_language, fixcharset(), set_my_charset(), and SM_PATH.

Referenced by charset_convert(), decodeHeader(), formatBody(), Rfc822Header\processParameters(), and translateText().

◆ charset_encode()

charset_encode (   $string,
  $charset,
  $htmlencode = true 
)

Converts html string to given charset

Since
1.4.4 and 1.5.1
Parameters
string$string
string$charset
boolean$htmlencodekeep htmlspecialchars encoding
Returns
string

fix for yahoo users that remove all us-ascii related things

Undo html special chars, some places (like compose form) have own sanitizing functions and don't need html symbols. Undo chars only after encoding in order to prevent conversion of html entities in plain text emails.

Definition at line 220 of file i18n.php.

References $charset, $default_charset, $ret, charset_encode_us_ascii(), elseif, fixcharset(), and SM_PATH.

Referenced by charset_convert().

◆ fixcharset()

fixcharset (   $charset)

Makes charset name suitable for decoding cycles

ks_c_5601_1987, x-euc-* and x-windows-* charsets are supported since 1.4.6 and 1.5.1.

Since
1.4.4 and 1.5.0
Parameters
string$charsetName of charset
Returns
string $charset Adjusted name of charset

Definition at line 280 of file i18n.php.

References $charset.

Referenced by charset_decode(), and charset_encode().

◆ is_conversion_safe()

is_conversion_safe (   $input_charset)

Function informs if it is safe to convert given charset to the one that is used by user.

It is safe to use conversion only if user uses utf-8 encoding and when converted charset is similar to the one that is used by user.

Parameters
string$input_charsetCharset of text that needs to be converted
Returns
bool is it possible to convert to user's charset

Definition at line 540 of file i18n.php.

References $default_charset, $languages, and $lossy_encoding.

Referenced by decodeHeader(), and newMail().

◆ japanese_charset_xtra()

japanese_charset_xtra ( )

Japanese charset extra function

First argument ($ret) contains header string. SquirrelMail ja_JP translation uses euc-jp as internal encoding. euc-jp stores Japanese letters in 0xA1-0xFE block (source: JIS X 0208 unicode.org mapping. see euc_jp.php in extra decoding library). Standard SquirrelMail 8bit test should detect if text is in euc or in ascii.

Minimize dependency on mb_mime_encodeheader(). PHP 4.4.1 bug and maybe other bugs.

Convert text from euc-jp (internal encoding) to iso-2022-jp (commonly used Japanese encoding) with mbstring functions.

Use SquirrelMail internal B encoding function. 'encodeheader' XTRA_CODE is executed in encodeHeader() function, so functions/mime.php (encodeHeaderBase64) and functions/strings.php (sq_is8bit) are already loaded.

if text is in ascii, we leave it unchanged. If some ASCII chars must be encoded, add code here in else statement.

Definition at line 618 of file i18n.php.

References $ret, encodeHeaderBase64(), and sq_is8bit().

◆ korean_charset_xtra()

korean_charset_xtra ( )

Definition at line 749 of file i18n.php.

References $ret.

◆ set_my_charset()

set_my_charset ( )

Sets default_charset variable according to the one that is used by user's translations.

Function changes global $default_charset variable in order to be sure, that it contains charset used by user's translation. Sanity of $squirrelmail_language and $default_charset combination provided in the SquirrelMail configuration is also tested.

There can be a $default_charset setting in the config.php file, but the user may have a different language selected for a user interface. This function checks the language selected by the user and tags the outgoing messages with the appropriate charset corresponding to the language selection. This is "more right" (tm), than just stamping the message blindly with the system-wide $default_charset.

Definition at line 511 of file i18n.php.

References $data_dir, $default_charset, $languages, $my_language, $squirrelmail_language, $username, and getPref().

Referenced by charset_decode(), imap_utf7_decode_local(), imap_utf7_encode_local(), newMail(), and SendMDN().

◆ set_up_language()

set_up_language (   $sm_language,
  $do_search = false,
  $default = false 
)

Set up the language to be output if $do_search is true, then scan the browser information for a possible language that we know

Function sets system locale environment (LC_ALL, LANG, LANGUAGE), gettext translation bindings and html header information.

Function returns error codes, if there is some fatal error. 0 = no error, 1 = mbstring support is not present, 2 = mbstring support is not present, user's translation reverted to en_US.

Parameters
string$sm_languageTranslation used by user's interface
bool$do_searchUse browser's preferred language detection functions. Defaults to false.
bool$defaultSet $sm_language to $squirrelmail_default_language if language detection fails or language is not set. Defaults to false.
Returns
int function execution error codes.

If function is asked to detect preferred language OR SquirrelMail default language is set to empty string AND SquirrelMail language ($sm_language) is empty string (not set in user's prefs and no cookie with language info) AND browser provides list of preferred languages THEN get preferred language from HTTP_ACCEPT_LANGUAGE header

If language preference is not set OR script asks to use default language AND default SquirrelMail language is not set to empty string THEN use default SquirrelMail language value from configuration.

provide failsafe language when detection fails

mbstring.func_overload fix (#929644).

php mbstring extension can replace standard string functions with their multibyte equivalents. See http://php.net/ref.mbstring#mbstring.overload. This feature was added in php v.4.2.0

Some SquirrelMail functions work with 8bit strings in bytes. If interface is forced to use mbstring functions and mbstring internal encoding is set to multibyte charset, interface can't trust regular string functions. Due to mbstring overloading design limits php scripts can't control this setting.

This hack should fix some issues related to 8bit strings in passwords. Correct fix is to disable mbstring overloading. Japanese translation uses different internal encoding.

Definition at line 330 of file i18n.php.

References $default_charset, $languages, $squirrelmail_default_language, $squirrelmail_language, $use_gettext, $user_is_logged_in, _(), bindtextdomain(), check_php_version(), elseif, PAGE_NAME, SM_PATH, SQ_SERVER, SQ_SESSION, sq_setlocale(), sqgetGlobalVar(), and textdomain().

Referenced by is_logged_in(), logout_error(), sqimap_append_checkresponse(), sqimap_get_headerfield(), sqimap_get_small_header_list(), sqimap_login(), sqimap_read_data_list(), sqimap_run_command(), sqimap_run_command_list(), and sqimap_run_literal_command().

◆ sq_bindtextdomain()

sq_bindtextdomain (   $domain,
  $dir = '' 
)

Gettext bindtextdomain wrapper.

Wrapper solves differences between php versions in order to provide ngettext support. Should be used if translation uses ngettext functions.

This also provides a bind_textdomain_codeset call to make sure the domain's encoding will not be overridden.

Since
1.4.10 and 1.5.1
Parameters
string$domaingettext domain name
string$dirdirectory that contains all translations (OPTIONAL; if not specified, defaults to SquirrelMail locale directory)
Returns
string path to translation directory

Definition at line 94 of file i18n.php.

References $domain, $languages, bindtextdomain(), and SM_PATH.

Referenced by sq_change_text_domain().

◆ sq_change_text_domain()

sq_change_text_domain (   $domain_name,
  $directory = '' 
)

Everything uses global.php... Wrapper for textdomain(), bindtextdomain() and bind_textdomain_codeset() primarily intended for plugins when changing into their own text domain and back again.

Note that if plugins using this function have their translation files located in the SquirrelMail locale directory, the second argument is optional.

Parameters
string$domain_nameThe name of the text domain (usually the plugin name, or "squirrelmail") being switched to.
string$directoryThe directory that contains all translations for the domain (OPTIONAL; default is SquirrelMail locale directory).
Returns
string The name of the text domain that was set BEFORE it is changed herein - NOTE that this differs from PHP's textdomain()
Since
1.4.10 and 1.5.2

Definition at line 49 of file i18n.php.

References $use_gettext, NULL, SM_PATH, sq_bindtextdomain(), and textdomain().

Referenced by validate_mail_fetch_port_number(), and validate_mail_fetch_server_address().

◆ sq_setlocale()

sq_setlocale (   $category,
  $locale 
)

php setlocale function wrapper

From php 4.3.0 it is possible to use arrays in order to set locale. php gettext extension works only when locale is set. This wrapper function allows to use more than one locale name.

Parameters
int$categorylocale category name. Use php named constants (LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME)
mixed$localeoption contains array with possible locales or string with one locale
Returns
string name of set locale or false, if all locales fail.
Since
1.4.5 and 1.5.1
See also
http://php.net/setlocale

Welcome to We-Don't-Follow-Own-Fine-Manual department OpenBSD 3.8, 3.9-current and maybe later versions return invalid response to setlocale command. SM bug report #1427512.

Definition at line 131 of file i18n.php.

References $ret, check_php_version(), and elseif.

Referenced by set_up_language().

Variable Documentation

◆ $gettext_flags

$gettext_flags = 0

Definition at line 1107 of file i18n.php.

◆ $languages [1/209]

$languages[ 'ar'][ 'CHARSET'] = 'windows-1256'

Definition at line 1088 of file i18n.php.

◆ $languages [2/209]

$languages[ 'ar'][ 'DIR'] = 'rtl'

Definition at line 1089 of file i18n.php.

◆ $languages [3/209]

$languages[ 'ar'][ 'NAME'] = 'Arabic'

Definition at line 1087 of file i18n.php.

◆ $languages [4/209]

$languages[ 'bg'][ 'ALIAS'] = 'bg_BG'

Definition at line 803 of file i18n.php.

◆ $languages [5/209]

$languages[ 'bg_BG'][ 'CHARSET'] = 'windows-1251'

Definition at line 801 of file i18n.php.

◆ $languages [6/209]

$languages[ 'bg_BG'][ 'LOCALE'] = 'bg_BG.CP1251'

Definition at line 802 of file i18n.php.

◆ $languages [7/209]

$languages[ 'bg_BG'][ 'NAME'] = 'Bulgarian'

Definition at line 800 of file i18n.php.

◆ $languages [8/209]

$languages[ 'bn'][ 'ALIAS'] = 'bn_BD'

Definition at line 810 of file i18n.php.

◆ $languages [9/209]

$languages[ 'bn_BD'][ 'ALTNAME'] = 'বাংলা'

Definition at line 807 of file i18n.php.

◆ $languages [10/209]

$languages[ 'bn_BD'][ 'CHARSET'] = 'utf-8'

Definition at line 808 of file i18n.php.

◆ $languages [11/209]

$languages[ 'bn_BD'][ 'LOCALE'] = array('bn_BD.UTF-8', 'bn_BD.UTF8', 'bn_BD', 'bn.UTF-8', 'bn.UTF8', 'bn')

Definition at line 809 of file i18n.php.

◆ $languages [12/209]

$languages[ 'bn_BD'][ 'NAME'] = 'Bengali (Bangladesh)'

Definition at line 805 of file i18n.php.

◆ $languages [13/209]

$languages[ 'bn_IN'][ 'CHARSET'] = 'utf-8'

Definition at line 813 of file i18n.php.

◆ $languages [14/209]

$languages[ 'bn_IN'][ 'LOCALE'] = array('bn_IN.UTF-8', 'bn_IN.UTF8')

Definition at line 814 of file i18n.php.

◆ $languages [15/209]

$languages[ 'bn_IN'][ 'NAME'] = 'Bengali (India)'

Definition at line 812 of file i18n.php.

◆ $languages [16/209]

$languages[ 'ca'][ 'ALIAS'] = 'ca_ES'

Definition at line 819 of file i18n.php.

◆ $languages [17/209]

$languages[ 'ca_ES'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 817 of file i18n.php.

◆ $languages [18/209]

$languages[ 'ca_ES'][ 'LOCALE'] = array('ca_ES.ISO8859-1','ca_ES.ISO-8859-1','ca_ES')

Definition at line 818 of file i18n.php.

◆ $languages [19/209]

$languages[ 'ca_ES'][ 'NAME'] = 'Catalan'

Definition at line 816 of file i18n.php.

◆ $languages [20/209]

$languages[ 'cn'][ 'ALIAS'] = 'zh_CN'

Definition at line 1074 of file i18n.php.

◆ $languages [21/209]

$languages[ 'cs'][ 'ALIAS'] = 'cs_CZ'

Definition at line 825 of file i18n.php.

◆ $languages [22/209]

$languages[ 'cs_CZ'][ 'ALTNAME'] = 'Čeština'

Definition at line 822 of file i18n.php.

◆ $languages [23/209]

$languages[ 'cs_CZ'][ 'CHARSET'] = 'utf-8'

Definition at line 823 of file i18n.php.

◆ $languages [24/209]

$languages[ 'cs_CZ'][ 'LOCALE'] = array('cs_CZ.UTF-8', 'cs_CZ.UTF8', 'cs_CZ')

Definition at line 824 of file i18n.php.

◆ $languages [25/209]

$languages[ 'cs_CZ'][ 'NAME'] = 'Czech'

Definition at line 821 of file i18n.php.

◆ $languages [26/209]

$languages[ 'cy'][ 'ALIAS'] = 'cy_GB'

Definition at line 830 of file i18n.php.

◆ $languages [27/209]

$languages[ 'cy_GB'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 828 of file i18n.php.

◆ $languages [28/209]

$languages[ 'cy_GB'][ 'LOCALE'] = array('cy_GB.ISO8859-1','cy_GB.ISO-8859-1','cy_GB')

Definition at line 829 of file i18n.php.

◆ $languages [29/209]

$languages[ 'cy_GB'][ 'NAME'] = 'Welsh'

Definition at line 827 of file i18n.php.

◆ $languages [30/209]

$languages[ 'da'][ 'ALIAS'] = 'da_DK'

Definition at line 835 of file i18n.php.

◆ $languages [31/209]

$languages[ 'da_DK'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 833 of file i18n.php.

◆ $languages [32/209]

$languages[ 'da_DK'][ 'LOCALE'] = array('da_DK.ISO8859-1','da_DK.ISO-8859-1','da_DK')

Definition at line 834 of file i18n.php.

◆ $languages [33/209]

$languages[ 'da_DK'][ 'NAME'] = 'Danish'

Definition at line 832 of file i18n.php.

◆ $languages [34/209]

$languages[ 'de'][ 'ALIAS'] = 'de_DE'

Definition at line 841 of file i18n.php.

◆ $languages [35/209]

$languages[ 'de_DE'][ 'ALTNAME'] = 'Deutsch'

Definition at line 838 of file i18n.php.

◆ $languages [36/209]

$languages[ 'de_DE'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 839 of file i18n.php.

◆ $languages [37/209]

$languages[ 'de_DE'][ 'LOCALE'] = array('de_DE.ISO8859-1','de_DE.ISO-8859-1','de_DE')

Definition at line 840 of file i18n.php.

◆ $languages [38/209]

$languages[ 'de_DE'][ 'NAME'] = 'German'

Definition at line 837 of file i18n.php.

◆ $languages [39/209]

$languages[ 'el'][ 'ALIAS'] = 'el_GR'

Definition at line 846 of file i18n.php.

◆ $languages [40/209]

$languages[ 'el_GR'][ 'CHARSET'] = 'iso-8859-7'

Definition at line 844 of file i18n.php.

◆ $languages [41/209]

$languages[ 'el_GR'][ 'LOCALE'] = array('el_GR.ISO8859-7','el_GR.ISO-8859-7','el_GR')

Definition at line 845 of file i18n.php.

◆ $languages [42/209]

$languages[ 'el_GR'][ 'NAME'] = 'Greek'

Definition at line 843 of file i18n.php.

◆ $languages [43/209]

$languages[ 'en'][ 'ALIAS'] = 'en_US'

Definition at line 860 of file i18n.php.

◆ $languages [44/209]

$languages[ 'en_US'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 858 of file i18n.php.

◆ $languages [45/209]

$languages[ 'en_US'][ 'LOCALE'] = 'en_US.ISO8859-1'

Definition at line 859 of file i18n.php.

◆ $languages [46/209]

$languages[ 'en_US'][ 'NAME'] = 'English'

Definition at line 857 of file i18n.php.

◆ $languages [47/209]

$languages[ 'es'][ 'ALIAS'] = 'es_ES'

Definition at line 865 of file i18n.php.

◆ $languages [48/209]

$languages[ 'es_ES'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 863 of file i18n.php.

◆ $languages [49/209]

$languages[ 'es_ES'][ 'LOCALE'] = array('es_ES.ISO8859-1','es_ES.ISO-8859-1','es_ES')

Definition at line 864 of file i18n.php.

◆ $languages [50/209]

$languages[ 'es_ES'][ 'NAME'] = 'Spanish'

Definition at line 862 of file i18n.php.

◆ $languages [51/209]

$languages[ 'et'][ 'ALIAS'] = 'et_EE'

Definition at line 870 of file i18n.php.

◆ $languages [52/209]

$languages[ 'et_EE'][ 'CHARSET'] = 'iso-8859-15'

Definition at line 868 of file i18n.php.

◆ $languages [53/209]

$languages[ 'et_EE'][ 'LOCALE'] = array('et_EE.ISO8859-15','et_EE.ISO-8859-15','et_EE')

Definition at line 869 of file i18n.php.

◆ $languages [54/209]

$languages[ 'et_EE'][ 'NAME'] = 'Estonian'

Definition at line 867 of file i18n.php.

◆ $languages [55/209]

$languages[ 'eu'][ 'ALIAS'] = 'eu_ES'

Definition at line 875 of file i18n.php.

◆ $languages [56/209]

$languages[ 'eu_ES'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 873 of file i18n.php.

◆ $languages [57/209]

$languages[ 'eu_ES'][ 'LOCALE'] = array('eu_ES.ISO8859-1','eu_ES.ISO-8859-1','eu_ES')

Definition at line 874 of file i18n.php.

◆ $languages [58/209]

$languages[ 'eu_ES'][ 'NAME'] = 'Basque'

Definition at line 872 of file i18n.php.

◆ $languages [59/209]

$languages[ 'fa'][ 'ALIAS'] = 'fa_IR'

Definition at line 1095 of file i18n.php.

◆ $languages [60/209]

$languages[ 'fa_IR'][ 'CHARSET'] = 'utf-8'

Definition at line 1092 of file i18n.php.

◆ $languages [61/209]

$languages[ 'fa_IR'][ 'DIR'] = 'rtl'

Definition at line 1093 of file i18n.php.

◆ $languages [62/209]

$languages[ 'fa_IR'][ 'LOCALE'] = array('fa_IR.UTF-8', 'fa_IR.UTF8')

Definition at line 1094 of file i18n.php.

◆ $languages [63/209]

$languages[ 'fa_IR'][ 'NAME'] = 'Persian'

Definition at line 1091 of file i18n.php.

◆ $languages [64/209]

$languages[ 'fi'][ 'ALIAS'] = 'fi_FI'

Definition at line 880 of file i18n.php.

◆ $languages [65/209]

$languages[ 'fi_FI'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 878 of file i18n.php.

◆ $languages [66/209]

$languages[ 'fi_FI'][ 'LOCALE'] = array('fi_FI.ISO8859-1','fi_FI.ISO-8859-1','fi_FI')

Definition at line 879 of file i18n.php.

◆ $languages [67/209]

$languages[ 'fi_FI'][ 'NAME'] = 'Finnish'

Definition at line 877 of file i18n.php.

◆ $languages [68/209]

$languages[ 'fo'][ 'ALIAS'] = 'fo_FO'

Definition at line 885 of file i18n.php.

◆ $languages [69/209]

$languages[ 'fo_FO'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 883 of file i18n.php.

◆ $languages [70/209]

$languages[ 'fo_FO'][ 'LOCALE'] = array('fo_FO.ISO8859-1','fo_FO.ISO-8859-1','fo_FO')

Definition at line 884 of file i18n.php.

◆ $languages [71/209]

$languages[ 'fo_FO'][ 'NAME'] = 'Faroese'

Definition at line 882 of file i18n.php.

◆ $languages [72/209]

$languages[ 'fr'][ 'ALIAS'] = 'fr_FR'

Definition at line 890 of file i18n.php.

◆ $languages [73/209]

$languages[ 'fr_FR'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 888 of file i18n.php.

◆ $languages [74/209]

$languages[ 'fr_FR'][ 'LOCALE'] = array('fr_FR.ISO8859-1','fr_FR.ISO-8859-1','fr_FR')

Definition at line 889 of file i18n.php.

◆ $languages [75/209]

$languages[ 'fr_FR'][ 'NAME'] = 'French'

Definition at line 887 of file i18n.php.

◆ $languages [76/209]

$languages[ 'fy'][ 'CHARSET'] = 'utf-8'

Definition at line 893 of file i18n.php.

◆ $languages [77/209]

$languages[ 'fy'][ 'LOCALE'] = array('fy.UTF-8', 'fy.UTF8', 'fy_NL.UTF-8', 'fy_NL.UTF8')

Definition at line 894 of file i18n.php.

◆ $languages [78/209]

$languages[ 'fy'][ 'NAME'] = 'Frisian'

Definition at line 892 of file i18n.php.

◆ $languages [79/209]

$languages[ 'he'][ 'ALIAS'] = 'he_IL'

Definition at line 1100 of file i18n.php.

◆ $languages [80/209]

$languages[ 'he_IL'][ 'CHARSET'] = 'windows-1255'

Definition at line 1098 of file i18n.php.

◆ $languages [81/209]

$languages[ 'he_IL'][ 'DIR'] = 'rtl'

Definition at line 1099 of file i18n.php.

◆ $languages [82/209]

$languages[ 'he_IL'][ 'NAME'] = 'Hebrew'

Definition at line 1097 of file i18n.php.

◆ $languages [83/209]

$languages[ 'hr'][ 'ALIAS'] = 'hr_HR'

Definition at line 899 of file i18n.php.

◆ $languages [84/209]

$languages[ 'hr_HR'][ 'CHARSET'] = 'iso-8859-2'

Definition at line 897 of file i18n.php.

◆ $languages [85/209]

$languages[ 'hr_HR'][ 'LOCALE'] = array('hr_HR.ISO8859-2','hr_HR.ISO-8859-2','hr_HR')

Definition at line 898 of file i18n.php.

◆ $languages [86/209]

$languages[ 'hr_HR'][ 'NAME'] = 'Croatian'

Definition at line 896 of file i18n.php.

◆ $languages [87/209]

$languages[ 'hu'][ 'ALIAS'] = 'hu_HU'

Definition at line 905 of file i18n.php.

◆ $languages [88/209]

$languages[ 'hu_HU'][ 'ALTNAME'] = 'Magyar'

Definition at line 902 of file i18n.php.

◆ $languages [89/209]

$languages[ 'hu_HU'][ 'CHARSET'] = 'utf-8'

Definition at line 903 of file i18n.php.

◆ $languages [90/209]

$languages[ 'hu_HU'][ 'LOCALE'] = array('hu_HU.UTF-8', 'hu_HU.UTF8', 'hu_HU')

Definition at line 904 of file i18n.php.

◆ $languages [91/209]

$languages[ 'hu_HU'][ 'NAME'] = 'Hungarian'

Definition at line 901 of file i18n.php.

◆ $languages [92/209]

$languages[ 'id'][ 'ALIAS'] = 'id_ID'

Definition at line 910 of file i18n.php.

◆ $languages [93/209]

$languages[ 'id_ID'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 908 of file i18n.php.

◆ $languages [94/209]

$languages[ 'id_ID'][ 'LOCALE'] = array('id_ID.ISO8859-1','id_ID.ISO-8859-1','id_ID')

Definition at line 909 of file i18n.php.

◆ $languages [95/209]

$languages[ 'id_ID'][ 'NAME'] = 'Bahasa Indonesia'

Definition at line 907 of file i18n.php.

◆ $languages [96/209]

$languages[ 'is'][ 'ALIAS'] = 'is_IS'

Definition at line 915 of file i18n.php.

◆ $languages [97/209]

$languages[ 'is_IS'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 913 of file i18n.php.

◆ $languages [98/209]

$languages[ 'is_IS'][ 'LOCALE'] = array('is_IS.ISO8859-1','is_IS.ISO-8859-1','is_IS')

Definition at line 914 of file i18n.php.

◆ $languages [99/209]

$languages[ 'is_IS'][ 'NAME'] = 'Icelandic'

Definition at line 912 of file i18n.php.

◆ $languages [100/209]

$languages[ 'it'][ 'ALIAS'] = 'it_IT'

Definition at line 921 of file i18n.php.

◆ $languages [101/209]

$languages[ 'it_IT'][ 'ALTNAME'] = 'Italiano'

Definition at line 918 of file i18n.php.

◆ $languages [102/209]

$languages[ 'it_IT'][ 'CHARSET'] = 'utf-8'

Definition at line 919 of file i18n.php.

◆ $languages [103/209]

$languages[ 'it_IT'][ 'LOCALE'] = array('it_IT.UTF-8','it_IT-UTF8','it_IT')

Definition at line 920 of file i18n.php.

◆ $languages [104/209]

$languages[ 'it_IT'][ 'NAME'] = 'Italian'

Definition at line 917 of file i18n.php.

◆ $languages [105/209]

$languages[ 'ja'][ 'ALIAS'] = 'ja_JP'

Definition at line 926 of file i18n.php.

◆ $languages [106/209]

$languages[ 'ja_JP'][ 'CHARSET'] = 'iso-2022-jp'

Definition at line 924 of file i18n.php.

◆ $languages [107/209]

$languages[ 'ja_JP'][ 'NAME'] = 'Japanese'

Definition at line 923 of file i18n.php.

◆ $languages [108/209]

$languages[ 'ja_JP'][ 'XTRA_CODE'] = 'japanese_charset_xtra'

Definition at line 925 of file i18n.php.

◆ $languages [109/209]

$languages[ 'ka'][ 'CHARSET'] = 'utf-8'

Definition at line 929 of file i18n.php.

◆ $languages [110/209]

$languages[ 'ka'][ 'LOCALE'] = array('ka_GE.UTF-8', 'ka_GE.UTF8', 'ka_GE', 'ka')

Definition at line 930 of file i18n.php.

◆ $languages [111/209]

$languages[ 'ka'][ 'NAME'] = 'Georgian'

Definition at line 928 of file i18n.php.

◆ $languages [112/209]

$languages[ 'ka_GE'][ 'ALIAS'] = 'ka'

Definition at line 931 of file i18n.php.

◆ $languages [113/209]

$languages[ 'km'][ 'ALTNAME'] = 'ខ្មែរ'

Definition at line 934 of file i18n.php.

◆ $languages [114/209]

$languages[ 'km'][ 'CHARSET'] = 'utf-8'

Definition at line 935 of file i18n.php.

◆ $languages [115/209]

$languages[ 'km'][ 'LOCALE'] = array('km.UTF-8', 'km.UTF8', 'km_KH.UTF-8', 'km_KH.UTF8', 'km', 'km_KH')

Definition at line 936 of file i18n.php.

◆ $languages [116/209]

$languages[ 'km'][ 'NAME'] = 'Khmer'

Definition at line 933 of file i18n.php.

◆ $languages [117/209]

$languages[ 'km_KH'][ 'ALIAS'] = 'km'

Definition at line 937 of file i18n.php.

◆ $languages [118/209]

$languages[ 'ko'][ 'ALIAS'] = 'ko_KR'

Definition at line 943 of file i18n.php.

◆ $languages [119/209]

$languages[ 'ko_KR'][ 'CHARSET'] = 'euc-KR'

Definition at line 940 of file i18n.php.

◆ $languages [120/209]

$languages[ 'ko_KR'][ 'NAME'] = 'Korean'

Definition at line 939 of file i18n.php.

◆ $languages [121/209]

$languages[ 'lt'][ 'ALIAS'] = 'lt_LT'

Definition at line 954 of file i18n.php.

◆ $languages [122/209]

$languages[ 'lt_LT'][ 'CHARSET'] = 'utf-8'

Definition at line 952 of file i18n.php.

◆ $languages [123/209]

$languages[ 'lt_LT'][ 'LOCALE'] = array('lt_LT.UTF-8', 'lt_LT.UTF8')

Definition at line 953 of file i18n.php.

◆ $languages [124/209]

$languages[ 'lt_LT'][ 'NAME'] = 'Lithuanian'

Definition at line 951 of file i18n.php.

◆ $languages [125/209]

$languages[ 'lv'][ 'ALIAS'] = 'lv_LV'

Definition at line 949 of file i18n.php.

◆ $languages [126/209]

$languages[ 'lv_LV'][ 'ALTNAME'] = 'Latvių'

Definition at line 946 of file i18n.php.

◆ $languages [127/209]

$languages[ 'lv_LV'][ 'CHARSET'] = 'utf-8'

Definition at line 947 of file i18n.php.

◆ $languages [128/209]

$languages[ 'lv_LV'][ 'LOCALE'] = array('lv_LV.UTF-8', 'lv_LV.UTF8')

Definition at line 948 of file i18n.php.

◆ $languages [129/209]

$languages[ 'lv_LV'][ 'NAME'] = 'Latvian'

Definition at line 945 of file i18n.php.

◆ $languages [130/209]

$languages[ 'mk'][ 'CHARSET'] = 'utf-8'

Definition at line 957 of file i18n.php.

◆ $languages [131/209]

$languages[ 'mk'][ 'LOCALE'] = array('mk.UTF-8', 'mk.UTF8', 'mk_MK.UTF-8', 'mk_MK.UTF8')

Definition at line 958 of file i18n.php.

◆ $languages [132/209]

$languages[ 'mk'][ 'NAME'] = 'Macedonian'

Definition at line 956 of file i18n.php.

◆ $languages [133/209]

$languages[ 'ms_MY'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 961 of file i18n.php.

◆ $languages [134/209]

$languages[ 'ms_MY'][ 'LOCALE'] = array('ms_MY.ISO8859-1','ms_MY.ISO-8859-1','ms_MY')

Definition at line 962 of file i18n.php.

◆ $languages [135/209]

$languages[ 'ms_MY'][ 'NAME'] = 'Bahasa Melayu'

Definition at line 960 of file i18n.php.

◆ $languages [136/209]

$languages[ 'my'][ 'ALIAS'] = 'ms_MY'

Definition at line 963 of file i18n.php.

◆ $languages [137/209]

$languages[ 'nb'][ 'ALIAS'] = 'nb_NO'

Definition at line 973 of file i18n.php.

◆ $languages [138/209]

$languages[ 'nb_NO'][ 'CHARSET'] = 'utf-8'

Definition at line 971 of file i18n.php.

◆ $languages [139/209]

$languages[ 'nb_NO'][ 'LOCALE'] = array('nb_NO.UTF-8', 'nb_NO.UTF8', 'nb_NO')

Definition at line 972 of file i18n.php.

◆ $languages [140/209]

$languages[ 'nb_NO'][ 'NAME'] = 'Norwegian (Bokmål)'

Definition at line 970 of file i18n.php.

◆ $languages [141/209]

$languages[ 'nl'][ 'ALIAS'] = 'nl_NL'

Definition at line 968 of file i18n.php.

◆ $languages [142/209]

$languages[ 'nl_NL'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 966 of file i18n.php.

◆ $languages [143/209]

$languages[ 'nl_NL'][ 'LOCALE'] = array('nl_NL.ISO8859-1','nl_NL.ISO-8859-1','nl_NL')

Definition at line 967 of file i18n.php.

◆ $languages [144/209]

$languages[ 'nl_NL'][ 'NAME'] = 'Dutch'

Definition at line 965 of file i18n.php.

◆ $languages [145/209]

$languages[ 'nn_NO'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 976 of file i18n.php.

◆ $languages [146/209]

$languages[ 'nn_NO'][ 'LOCALE'] = array('nn_NO.ISO8859-1','nn_NO.ISO-8859-1','nn_NO')

Definition at line 977 of file i18n.php.

◆ $languages [147/209]

$languages[ 'nn_NO'][ 'NAME'] = 'Norwegian (Nynorsk)'

Definition at line 975 of file i18n.php.

◆ $languages [148/209]

$languages[ 'pl'][ 'ALIAS'] = 'pl_PL'

Definition at line 982 of file i18n.php.

◆ $languages [149/209]

$languages[ 'pl_PL'][ 'CHARSET'] = 'iso-8859-2'

Definition at line 980 of file i18n.php.

◆ $languages [150/209]

$languages[ 'pl_PL'][ 'LOCALE'] = array('pl_PL.ISO8859-2','pl_PL.ISO-8859-2','pl_PL')

Definition at line 981 of file i18n.php.

◆ $languages [151/209]

$languages[ 'pl_PL'][ 'NAME'] = 'Polish'

Definition at line 979 of file i18n.php.

◆ $languages [152/209]

$languages[ 'pt'][ 'ALIAS'] = 'pt_PT'

Definition at line 987 of file i18n.php.

◆ $languages [153/209]

$languages[ 'pt_BR'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 990 of file i18n.php.

◆ $languages [154/209]

$languages[ 'pt_BR'][ 'LOCALE'] = array('pt_BR.ISO8859-1','pt_BR.ISO-8859-1','pt_BR')

Definition at line 991 of file i18n.php.

◆ $languages [155/209]

$languages[ 'pt_BR'][ 'NAME'] = 'Portuguese (Brazil)'

Definition at line 989 of file i18n.php.

◆ $languages [156/209]

$languages[ 'pt_PT'][ 'CHARSET'] = 'iso-8859-1'

Definition at line 985 of file i18n.php.

◆ $languages [157/209]

$languages[ 'pt_PT'][ 'LOCALE'] = array('pt_PT.ISO8859-1','pt_PT.ISO-8859-1','pt_PT')

Definition at line 986 of file i18n.php.

◆ $languages [158/209]

$languages[ 'pt_PT'][ 'NAME'] = 'Portuguese (Portugal)'

Definition at line 984 of file i18n.php.

◆ $languages [159/209]

$languages[ 'ro'][ 'ALIAS'] = 'ro_RO'

Definition at line 996 of file i18n.php.

◆ $languages [160/209]

$languages[ 'ro_RO'][ 'CHARSET'] = 'utf-8'

Definition at line 994 of file i18n.php.

◆ $languages [161/209]

$languages[ 'ro_RO'][ 'LOCALE'] = array('ro_RO.UTF-8', 'ro_RO.UTF8', 'ro_RO')

Definition at line 995 of file i18n.php.

◆ $languages [162/209]

$languages[ 'ro_RO'][ 'NAME'] = 'Romanian'

Definition at line 993 of file i18n.php.

◆ $languages [163/209]

$languages[ 'ru'][ 'ALIAS'] = 'ru_RU'

Definition at line 1001 of file i18n.php.

◆ $languages [164/209]

$languages[ 'ru_RU'][ 'CHARSET'] = 'utf-8'

Definition at line 999 of file i18n.php.

◆ $languages [165/209]

$languages[ 'ru_RU'][ 'LOCALE'] = array('ru_RU.UTF-8', 'ru_RU.UTF8')

Definition at line 1000 of file i18n.php.

◆ $languages [166/209]

$languages[ 'ru_RU'][ 'NAME'] = 'Russian'

Definition at line 998 of file i18n.php.

◆ $languages [167/209]

$languages[ 'sk'][ 'ALIAS'] = 'sk_SK'

Definition at line 1022 of file i18n.php.

◆ $languages [168/209]

$languages[ 'sk_SK'][ 'CHARSET'] = 'utf-8'

Definition at line 1020 of file i18n.php.

◆ $languages [169/209]

$languages[ 'sk_SK'][ 'LOCALE'] = array('sk_SK.UTF-8', 'sk_SK.UTF8', 'sk_SK')

Definition at line 1021 of file i18n.php.

◆ $languages [170/209]

$languages[ 'sk_SK'][ 'NAME'] = 'Slovak'

Definition at line 1019 of file i18n.php.

◆ $languages [171/209]

$languages[ 'sl'][ 'ALIAS'] = 'sl_SI'

Definition at line 1027 of file i18n.php.

◆ $languages [172/209]

$languages[ 'sl_SI'][ 'CHARSET'] = 'iso-8859-2'

Definition at line 1025 of file i18n.php.

◆ $languages [173/209]

$languages[ 'sl_SI'][ 'LOCALE'] = array('sl_SI.ISO8859-2','sl_SI.ISO-8859-2','sl_SI')

Definition at line 1026 of file i18n.php.

◆ $languages [174/209]

$languages[ 'sl_SI'][ 'NAME'] = 'Slovenian'

Definition at line 1024 of file i18n.php.

◆ $languages [175/209]

$languages[ 'sr'][ 'ALIAS'] = 'sr_YU'

Definition at line 1032 of file i18n.php.

◆ $languages [176/209]

$languages[ 'sr_YU'][ 'CHARSET'] = 'iso-8859-2'

Definition at line 1030 of file i18n.php.

◆ $languages [177/209]

$languages[ 'sr_YU'][ 'LOCALE'] = array('sr_YU.ISO8859-2','sr_YU.ISO-8859-2','sr_YU')

Definition at line 1031 of file i18n.php.

◆ $languages [178/209]

$languages[ 'sr_YU'][ 'NAME'] = 'Serbian'

Definition at line 1029 of file i18n.php.

◆ $languages [179/209]

$languages[ 'sv'][ 'ALIAS'] = 'sv_SE'

Definition at line 1037 of file i18n.php.

◆ $languages [180/209]

$languages[ 'sv_SE'][ 'CHARSET'] = 'utf-8'

Definition at line 1035 of file i18n.php.

◆ $languages [181/209]

$languages[ 'sv_SE'][ 'LOCALE'] = array('sv_SE.UTF-8', 'sv_SE.UTF8', 'sv_SE')

Definition at line 1036 of file i18n.php.

◆ $languages [182/209]

$languages[ 'sv_SE'][ 'NAME'] = 'Swedish'

Definition at line 1034 of file i18n.php.

◆ $languages [183/209]

$languages[ 'ta'][ 'ALIAS'] = 'ta_LK'

Definition at line 1043 of file i18n.php.

◆ $languages [184/209]

$languages[ 'ta_LK'][ 'ALTNAME'] = 'தமிழ்'

Definition at line 1040 of file i18n.php.

◆ $languages [185/209]

$languages[ 'ta_LK'][ 'CHARSET'] = 'utf-8'

Definition at line 1041 of file i18n.php.

◆ $languages [186/209]

$languages[ 'ta_LK'][ 'LOCALE'] = array('ta_LK.UTF-8', 'ta_LK.UTF8', 'ta_LK', 'ta.UTF-8', 'ta.UTF8', 'ta')

Definition at line 1042 of file i18n.php.

◆ $languages [187/209]

$languages[ 'ta_LK'][ 'NAME'] = 'Tamil'

Definition at line 1039 of file i18n.php.

◆ $languages [188/209]

$languages[ 'tr'][ 'ALIAS'] = 'tr_TR'

Definition at line 1064 of file i18n.php.

◆ $languages [189/209]

$languages[ 'tr_TR'][ 'CHARSET'] = 'iso-8859-9'

Definition at line 1062 of file i18n.php.

◆ $languages [190/209]

$languages[ 'tr_TR'][ 'LOCALE'] = array('tr_TR.ISO8859-9','tr_TR.ISO-8859-9','tr_TR')

Definition at line 1063 of file i18n.php.

◆ $languages [191/209]

$languages[ 'tr_TR'][ 'NAME'] = 'Turkish'

Definition at line 1061 of file i18n.php.

◆ $languages [192/209]

$languages[ 'tw'][ 'ALIAS'] = 'zh_TW'

Definition at line 1069 of file i18n.php.

◆ $languages [193/209]

$languages[ 'ug'][ 'CHARSET'] = 'utf-8'

Definition at line 1103 of file i18n.php.

◆ $languages [194/209]

$languages[ 'ug'][ 'DIR'] = 'rtl'

Definition at line 1104 of file i18n.php.

◆ $languages [195/209]

$languages[ 'ug'][ 'NAME'] = 'Uighur'

Definition at line 1102 of file i18n.php.

◆ $languages [196/209]

$languages[ 'uk'][ 'ALIAS'] = 'uk_UA'

Definition at line 1079 of file i18n.php.

◆ $languages [197/209]

$languages[ 'uk_UA'][ 'CHARSET'] = 'utf-8'

Definition at line 1077 of file i18n.php.

◆ $languages [198/209]

$languages[ 'uk_UA'][ 'LOCALE'] = array('uk_UA.UTF-8', 'uk_UA.UTF8', 'uk_UA', 'uk')

Definition at line 1078 of file i18n.php.

◆ $languages [199/209]

$languages[ 'uk_UA'][ 'NAME'] = 'Ukrainian'

Definition at line 1076 of file i18n.php.

◆ $languages [200/209]

$languages[ 'vi'][ 'ALIAS'] = 'vi_VN'

Definition at line 1083 of file i18n.php.

◆ $languages [201/209]

$languages[ 'vi_VN'][ 'CHARSET'] = 'utf-8'

Definition at line 1082 of file i18n.php.

◆ $languages [202/209]

$languages[ 'vi_VN'][ 'NAME'] = 'Vietnamese'

Definition at line 1081 of file i18n.php.

◆ $languages [203/209]

$languages[ 'zh_CN'][ 'CHARSET'] = 'gb2312'

Definition at line 1072 of file i18n.php.

◆ $languages [204/209]

$languages[ 'zh_CN'][ 'LOCALE'] = 'zh_CN.GB2312'

Definition at line 1073 of file i18n.php.

◆ $languages [205/209]

$languages[ 'zh_CN'][ 'NAME'] = 'Chinese Simp'

Definition at line 1071 of file i18n.php.

◆ $languages [206/209]

$languages[ 'zh_TW'][ 'CHARSET'] = 'utf-8'

Definition at line 1067 of file i18n.php.

◆ $languages [207/209]

$languages[ 'zh_TW'][ 'LOCALE'] = array('zh_TW.UTF-8', 'zh_TW.UTF8')

Definition at line 1068 of file i18n.php.

◆ $languages [208/209]

$languages[ 'zh_TW'][ 'NAME'] = 'Chinese Trad'

Definition at line 1066 of file i18n.php.

◆ $languages [209/209]

◆ $squirrelmail_language

◆ $use_gettext

global $use_gettext

Definition at line 774 of file i18n.php.

Referenced by set_up_language(), and sq_change_text_domain().

◆ if

if(!defined('SM_PATH')) define('SM_PATH'

@ignore

Definition at line 20 of file i18n.php.