You are here

function _facebook_comments_get_language_codes in Facebook Comments Social Plugin 8

Same name and namespace in other branches
  1. 7 facebook_comments.module \_facebook_comments_get_language_codes()

Returns an array with the relation of the languages with its pt_PT code.

1 call to _facebook_comments_get_language_codes()
_facebook_comments_get_language_code in ./facebook_comments.module
Returns a Language code format pt_PT. If the current language code is not in the conversion array it returns English as default language.

File

./facebook_comments.module, line 88
Enables users to use Facebook comments on content.

Code

function _facebook_comments_get_language_codes() {
  return array(
    'af' => array(
      'af_ZA' => 'Afrikaans',
    ),
    'ar' => array(
      'ar_AR' => 'Arabic',
    ),
    'ay' => array(
      'ay_BO' => 'Aymara',
    ),
    'az' => array(
      'az_AZ' => 'Azeri',
    ),
    'be' => array(
      'be_BY' => 'Belarusian',
    ),
    'bg' => array(
      'bg_BG' => 'Bulgarian',
    ),
    'bn' => array(
      'bn_IN' => 'Bengali',
    ),
    'bs' => array(
      'bs_BA' => 'Bosnian',
    ),
    'ca' => array(
      'ca_ES' => 'Catalan',
    ),
    'ck' => array(
      'ck_US' => 'Cherokee',
    ),
    'cs' => array(
      'cs_CZ' => 'Czech',
    ),
    'cy' => array(
      'cy_GB' => 'Welsh',
    ),
    'da' => array(
      'da_DK' => 'Danish',
    ),
    'de' => array(
      'de_DE' => 'German',
    ),
    'el' => array(
      'el_GR' => 'Greek',
    ),
    'en' => array(
      'en_GB' => 'English (UK)',
      'en_PI' => 'English (Pirate)',
      'en_UD' => 'English (Upside Down)',
      'en_US' => 'English (US)',
    ),
    'eo' => array(
      'eo_EO' => 'Esperanto',
    ),
    'es' => array(
      'es_LA' => 'Spanish',
      'es_CL' => 'Spanish (Chile)',
      'es_CO' => 'Spanish (Colombia)',
      'es_MX' => 'Spanish (Mexico)',
      'es_VE' => 'Spanish (Venezuela)',
    ),
    'et' => array(
      'et_EE' => 'Estonian',
    ),
    'eu' => array(
      'eu_ES' => 'Basque',
    ),
    'fa' => array(
      'fa_IR' => 'Persian',
    ),
    'fb' => array(
      'fb_FI' => 'Finnish (test)',
      'fb_LT' => 'Leet Speak',
    ),
    'fi' => array(
      'fi_FI' => 'Finnish',
    ),
    'fo' => array(
      'fo_FO' => 'Faroese',
    ),
    'fr' => array(
      'fr_FR' => 'French (France)',
      'fr_CA' => 'French (Canada)',
    ),
    'ga' => array(
      'ga_IE' => 'Irish',
    ),
    'gl' => array(
      'gl_ES' => 'Galician',
    ),
    'gn' => array(
      'gn_PY' => 'Guarani',
    ),
    'gu' => array(
      'gu_IN' => 'Gujarati',
    ),
    'he' => array(
      'he_IL' => 'Hebrew',
    ),
    'hi' => array(
      'hi_IN' => 'Hindi',
    ),
    'hr' => array(
      'hr_HR' => 'Croatian',
    ),
    'hu' => array(
      'hu_HU' => 'Hungarian',
    ),
    'hy' => array(
      'hy_AM' => 'Armenian',
    ),
    'id' => array(
      'id_ID' => 'Indonesian',
    ),
    'is' => array(
      'is_IS' => 'Icelandic',
    ),
    'it' => array(
      'it_IT' => 'Italian',
    ),
    'ja' => array(
      'ja_JP' => 'Japanese',
    ),
    'jv' => array(
      'jv_ID' => 'Javanese',
    ),
    'ka' => array(
      'ka_GE' => 'Georgian',
    ),
    'kk' => array(
      'kk_KZ' => 'Kazakh',
    ),
    'km' => array(
      'km_KH' => 'Khmer',
    ),
    'kn' => array(
      'kn_IN' => 'Kannada',
    ),
    'ko' => array(
      'ko_KR' => 'Korean',
    ),
    'ku' => array(
      'ku_TR' => 'Kurdish',
    ),
    'la' => array(
      'la_VA' => 'Latin',
    ),
    'li' => array(
      'li_NL' => 'Limburgish',
    ),
    'lt' => array(
      'lt_LT' => 'Lithuanian',
    ),
    'lv' => array(
      'lv_LV' => 'Latvian',
    ),
    'mg' => array(
      'mg_MG' => 'Malagasy',
    ),
    'mk' => array(
      'mk_MK' => 'Macedonian',
    ),
    'ml' => array(
      'ml_IN' => 'Malayalam',
    ),
    'mn' => array(
      'mn_MN' => 'Mongolian',
    ),
    'mr' => array(
      'mr_IN' => 'Marathi',
    ),
    'ms' => array(
      'ms_MY' => 'Malay',
    ),
    'mt' => array(
      'mt_MT' => 'Maltese',
    ),
    'nb' => array(
      'nb_NO' => 'Norwegian (bokmal)',
    ),
    'ne' => array(
      'ne_NP' => 'Nepali',
    ),
    'nl' => array(
      'nl_NL' => 'Dutch',
      'nl_BE' => 'Dutch (Belgium)',
    ),
    'nn' => array(
      'nn_NO' => 'Norwegian (nynorsk)',
    ),
    'pa' => array(
      'pa_IN' => 'Punjabi',
    ),
    'pl' => array(
      'pl_PL' => 'Polish',
    ),
    'ps' => array(
      'ps_AF' => 'Pashto',
    ),
    'pt' => array(
      'pt_BR' => 'Portuguese (Brazil)',
    ),
    'pt' => array(
      'pt_PT' => 'Portuguese (Portugal)',
    ),
    'qu' => array(
      'qu_PE' => 'Quechua',
    ),
    'rm' => array(
      'rm_CH' => 'Romansh',
    ),
    'ro' => array(
      'ro_RO' => 'Romanian',
    ),
    'ru' => array(
      'ru_RU' => 'Russian',
    ),
    'sa' => array(
      'sa_IN' => 'Sanskrit',
    ),
    'se' => array(
      'se_NO' => 'Northern Sami',
    ),
    'sk' => array(
      'sk_SK' => 'Slovak',
    ),
    'sl' => array(
      'sl_SI' => 'Slovenian',
    ),
    'so' => array(
      'so_SO' => 'Somali',
    ),
    'sq' => array(
      'sq_AL' => 'Albanian',
    ),
    'sr' => array(
      'sr_RS' => 'Serbian',
    ),
    'sv' => array(
      'sv_SE' => 'Swedish',
    ),
    'sw' => array(
      'sw_KE' => 'Swahili',
    ),
    'sy' => array(
      'sy_SY' => 'Syriac',
    ),
    'ta' => array(
      'ta_IN' => 'Tamil',
    ),
    'te' => array(
      'te_IN' => 'Telugu',
    ),
    'tg' => array(
      'tg_TJ' => 'Tajik',
    ),
    'th' => array(
      'th_TH' => 'Thai',
    ),
    'tl' => array(
      'tl_PH' => 'Filipino',
      'tl_ST' => 'Klingon',
    ),
    'tr' => array(
      'tr_TR' => 'Turkish',
    ),
    'tt' => array(
      'tt_RU' => 'Tatar',
    ),
    'uk' => array(
      'uk_UA' => 'Ukrainian',
    ),
    'ur' => array(
      'ur_PK' => 'Urdu',
    ),
    'uz' => array(
      'uz_UZ' => 'Uzbek',
    ),
    'vi' => array(
      'vi_VN' => 'Vietnamese',
    ),
    'xh' => array(
      'xh_ZA' => 'Xhosa',
    ),
    'yi' => array(
      'yi_DE' => 'Yiddish',
    ),
    'zh' => array(
      'zh_CN' => 'Simplified Chinese (China)',
      'zh_HK' => 'Traditional Chinese (Hong Kong)',
      'zh_TW' => 'Traditional Chinese (Taiwan)',
    ),
    'zu' => array(
      'zu_ZA' => 'Zulu',
    ),
  );
}