function fb_admin_i18n_map in Drupal for Facebook 6.3
Same name and namespace in other branches
- 7.3 fb.admin.inc \fb_admin_i18n_map()
1 call to fb_admin_i18n_map()
- fb_admin_settings in ./
fb.admin.inc - Form callback for general settings.
File
- ./
fb.admin.inc, line 558 - Admin pages and forms for Drupal for Facebook.
Code
function fb_admin_i18n_map($lang_code) {
$languages_map = array(
'af' => 'af_ZA',
'ar' => 'ar_AR',
'ay' => 'ay_BO',
'az' => 'az_AZ',
'be' => 'be_BY',
'bg' => 'bg_BG',
'bn' => 'bn_IN',
'bs' => 'bs_BA',
'ca' => 'ca_ES',
'cs' => 'cs_CZ',
'cy' => 'cy_GB',
'da' => 'da_DK',
'de' => 'de_DE',
'el' => 'el_GR',
'en' => 'en_US',
'eo' => 'eo_EO',
'es' => 'es_ES',
'et' => 'et_EE',
'eu' => 'eu_ES',
'fa' => 'fa_IR',
'fi' => 'fi_FI',
'fo' => 'fo_FO',
'fr' => 'fr_FR',
'ga' => 'ga_IE',
'gl' => 'gl_ES',
'gn' => 'gn_PY',
'gu' => 'gu_IN',
'he' => 'he_IL',
'hi' => 'hi_IN',
'hr' => 'hr_HR',
'hu' => 'hu_HU',
'hy' => 'hy_AM',
'id' => 'id_ID',
'is' => 'is_IS',
'it' => 'it_IT',
'ja' => 'ja_JP',
'jv' => 'jv_ID',
'ka' => 'ka_GE',
'kk' => 'kk_KZ',
'km' => 'km_KH',
'kn' => 'kn_IN',
'ko' => 'ko_KR',
'ku' => 'ku_TR',
'la' => 'la_VA',
'lt' => 'lt_LT',
'lv' => 'lv_LV',
'mg' => 'mg_MG',
'mk' => 'mk_MK',
'ml' => 'ml_IN',
'mn' => 'mn_MN',
'mr' => 'mr_IN',
'ms' => 'ms_MY',
'mt' => 'mt_MT',
'nb' => 'nb_NO',
'ne' => 'ne_NP',
'nl' => 'nl_BE',
'nn' => 'nn_NO',
'pa' => 'pa_IN',
'pl' => 'pl_PL',
'ps' => 'ps_AF',
'qu' => 'qu_PE',
'rm' => 'rm_CH',
'ro' => 'ro_RO',
'ru' => 'ru_RU',
'sa' => 'sa_IN',
'se' => 'se_NO',
'sk' => 'sk_SK',
'sl' => 'sl_SI',
'so' => 'so_SO',
'sq' => 'sq_AL',
'sr' => 'sr_RS',
'sv' => 'sv_SE',
'sw' => 'sw_KE',
'ta' => 'ta_IN',
'te' => 'te_IN',
'tg' => 'tg_TJ',
'th' => 'th_TH',
'tl' => 'tl_ST',
'tr' => 'tr_TR',
'tt' => 'tt_RU',
'uk' => 'uk_UA',
'ur' => 'ur_PK',
'uz' => 'uz_UZ',
'vi' => 'vi_VN',
'xh' => 'xh_ZA',
'yi' => 'yi_DE',
'zh-hans' => 'zh_CN',
'zh-hant' => 'zh_TW',
'zu' => 'zu_ZA',
);
return isset($languages_map[$lang_code]) ? $languages_map[$lang_code] : 'en_US';
}