gle_code = 'lv'; $lv->facebook_locale = 'lv_LV'; $me = new GP_Locale(); $me->english_name = 'Montenegrin'; $me->native_name = 'Crnogorski jezik'; $me->lang_code_iso_639_1 = 'me'; $me->country_code = 'me'; $me->wp_locale = 'me_ME'; $me->slug = 'me'; $me->nplurals = 3; $me->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; $mfe = new GP_Locale(); $mfe->english_name = 'Mauritian Creole'; $mfe->native_name = 'Kreol Morisien'; $mfe->lang_code_iso_639_3 = 'mfe'; $mfe->country_code = 'mu'; $mfe->wp_locale = 'mfe'; $mfe->slug = 'mfe'; $mfe->nplurals = 1; $mfe->plural_expression = '0'; $mg = new GP_Locale(); $mg->english_name = 'Malagasy'; $mg->native_name = 'Malagasy'; $mg->lang_code_iso_639_1 = 'mg'; $mg->lang_code_iso_639_2 = 'mlg'; $mg->country_code = 'mg'; $mg->wp_locale = 'mg_MG'; $mg->slug = 'mg'; $mg->google_code = 'mg'; $mg->facebook_locale = 'mg_MG'; $mhr = new GP_Locale(); $mhr->english_name = 'Mari (Meadow)'; $mhr->native_name = 'Олык марий'; $mhr->lang_code_iso_639_3 = 'mhr'; $mhr->country_code = 'ru'; $mhr->slug = 'mhr'; $mk = new GP_Locale(); $mk->english_name = 'Macedonian'; $mk->native_name = 'Македонски јазик'; $mk->lang_code_iso_639_1 = 'mk'; $mk->lang_code_iso_639_2 = 'mkd'; $mk->country_code = 'mk'; $mk->wp_locale = 'mk_MK'; $mk->slug = 'mk'; $mk->nplurals = 2; $mk->plural_expression = 'n==1 || n%10==1 ? 0 : 1'; $mk->google_code = 'mk'; $mk->facebook_locale = 'mk_MK'; $ml = new GP_Locale(); $ml->english_name = 'Malayalam'; $ml->native_name = 'മലയാളം'; $ml->lang_code_iso_639_1 = 'ml'; $ml->lang_code_iso_639_2 = 'mal'; $ml->country_code = 'in'; $ml->wp_locale = 'ml_IN'; $ml->slug = 'ml'; $ml->google_code = 'ml'; $ml->facebook_locale = 'ml_IN'; $mlt = new GP_Locale(); $mlt->english_name = 'Maltese'; $mlt->native_name = 'Malti'; $mlt->lang_code_iso_639_1 = 'mt'; $mlt->lang_code_iso_639_2 = 'mlt'; $mlt->lang_code_iso_639_3 = 'mlt'; $mlt->country_code = 'mt'; $mlt->wp_locale = 'mlt'; $mlt->slug = 'mlt'; $mlt->nplurals = 4; $mlt->plural_expression = '(n==1 ? 0 : n==0 || ( n%100>1 && n%100<11) ? 1 : (n%100>10 && n%100<20 ) ? 2 : 3)'; $mlt->google_code = 'mt'; $mlt->facebook_locale = 'mt_MT'; $mn = new GP_Locale(); $mn->english_name = 'Mongolian'; $mn->native_name = 'Монгол'; $mn->lang_code_iso_639_1 = 'mn'; $mn->lang_code_iso_639_2 = 'mon'; $mn->country_code = 'mn'; $mn->wp_locale = 'mn'; $mn->slug = 'mn'; $mn->google_code = 'mn'; $mn->facebook_locale = 'mn_MN'; $mr = new GP_Locale(); $mr->english_name = 'Marathi'; $mr->native_name = 'मराठी'; $mr->lang_code_iso_639_1 = 'mr'; $mr->lang_code_iso_639_2 = 'mar'; $mr->wp_locale = 'mr'; $mr->slug = 'mr'; $mr->google_code = 'mr'; $mr->facebook_locale = 'mr_IN'; $mri = new GP_Locale(); $mri->english_name = 'Maori'; $mri->native_name = 'Te Reo Māori'; $mri->lang_code_iso_639_1 = 'mi'; $mri->lang_code_iso_639_3 = 'mri'; $mri->country_code = 'nz'; $mri->slug = 'mri'; $mri->wp_locale = 'mri'; $mri->nplurals = 2; $mri->plural_expression = '(n > 1)'; $mri->google_code = 'mi'; $mrj = new GP_Locale(); $mrj->english_name = 'Mari (Hill)'; $mrj->native_name = 'Кырык мары'; $mrj->lang_code_iso_639_3 = 'mrj'; $mrj->country_code = 'ru'; $mrj->slug = 'mrj'; $ms = new GP_Locale(); $ms->english_name = 'Malay'; $ms->native_name = 'Bahasa Melayu'; $ms->lang_code_iso_639_1 = 'ms'; $ms->lang_code_iso_639_2 = 'msa'; $ms->wp_locale = 'ms_MY'; $ms->slug = 'ms'; $ms->nplurals = 1; $ms->plural_expression = '0'; $ms->google_code = 'ms'; $ms->facebook_locale = 'ms_MY'; $mwl = new GP_Locale(); $mwl->english_name = 'Mirandese'; $mwl->native_name = 'Mirandés'; $mwl->lang_code_iso_639_2 = 'mwl'; $mwl->slug = 'mwl'; $my = new GP_Locale(); $my->english_name = 'Myanmar (Burmese)'; $my->native_name = 'ဗမာစာ'; $my->lang_code_iso_639_1 = 'my'; $my->lang_code_iso_639_2 = 'mya'; $my->country_code = 'mm'; $my->wp_locale = 'my_MM'; $my->slug = 'mya'; $my->google_code = 'my'; $ne = new GP_Locale(); $ne->english_name = 'Nepali'; $ne->native_name = 'नेपाली'; $ne->lang_code_iso_639_1 = 'ne'; $ne->lang_code_iso_639_2 = 'nep'; $ne->country_code = 'np'; $ne->wp_locale = 'ne_NP'; $ne->slug = 'ne'; $ne->google_code = 'ne'; $ne->facebook_locale = 'ne_NP'; $nb = new GP_Locale(); $nb->english_name = 'Norwegian (Bokmål)'; $nb->native_name = 'Norsk bokmål'; $nb->lang_code_iso_639_1 = 'nb'; $nb->lang_code_iso_639_2 = 'nob'; $nb->country_code = 'no'; $nb->wp_locale = 'nb_NO'; $nb->slug = 'nb'; $nb->google_code = 'no'; $nb->facebook_locale = 'nb_NO'; $nl = new GP_Locale(); $nl->english_name = 'Dutch'; $nl->native_name = 'Nederlands'; $nl->lang_code_iso_639_1 = 'nl'; $nl->lang_code_iso_639_2 = 'nld'; $nl->country_code = 'nl'; $nl->wp_locale = 'nl_NL'; $nl->slug = 'nl'; $nl->google_code = 'nl'; $nl->facebook_locale = 'nl_NL'; $nl_be = new GP_Locale(); $nl_be->english_name = 'Dutch (Belgium)'; $nl_be->native_name = 'Nederlands (België)'; $nl_be->lang_code_iso_639_1 = 'nl'; $nl_be->lang_code_iso_639_2 = 'nld'; $nl_be->country_code = 'be'; $nl_be->wp_locale = 'nl_BE'; $nl_be->slug = 'nl-be'; $nl_be->google_code = 'nl'; $nn = new GP_Locale(); $nn->english_name = 'Norwegian (Nynorsk)'; $nn->native_name = 'Norsk nynorsk'; $nn->lang_code_iso_639_1 = 'nn'; $nn->lang_code_iso_639_2 = 'nno'; $nn->country_code = 'no'; $nn->wp_locale = 'nn_NO'; $nn->slug = 'nn'; $nn->google_code = 'no'; $nn->facebook_locale = 'nn_NO'; $no = new GP_Locale(); $no->english_name = 'Norwegian'; $no->native_name = 'Norsk'; $no->lang_code_iso_639_1 = 'no'; $no->lang_code_iso_639_2 = 'nor'; $no->country_code = 'no'; $no->slug = 'no'; $no->google_code = 'no'; $oci = new GP_Locale(); $oci->english_name = 'Occitan'; $oci->native_name = 'Occitan'; $oci->lang_code_iso_639_1 = 'oc'; $oci->lang_code_iso_639_2 = 'oci'; $oci->country_code = 'fr'; $oci->wp_locale = 'oci'; $oci->slug = 'oci'; $oci->nplurals = 2; $oci->plural_expression = '(n > 1)'; $orm = new GP_Locale(); $orm->english_name = 'Oromo'; $orm->native_name = 'Afaan Oromo'; $orm->lang_code_iso_639_1 = 'om'; $orm->lang_code_iso_639_2 = 'orm'; $orm->lang_code_iso_639_3 = 'orm'; $orm->slug = 'orm'; $orm->plural_expression = '(n > 1)'; $ory = new GP_Locale(); $ory->english_name = 'Oriya'; $ory->native_name = 'ଓଡ଼ିଆ'; $ory->lang_code_iso_639_1 = 'or'; $ory->lang_code_iso_639_2 = 'ory'; $ory->country_code = 'in'; $ory->wp_locale = 'ory'; $ory->slug = 'ory'; $ory->facebook_locale = 'or_IN'; $os = new GP_Locale(); $os->english_name = 'Ossetic'; $os->native_name = 'Ирон'; $os->lang_code_iso_639_1 = 'os'; $os->lang_code_iso_639_2 = 'oss'; $os->wp_locale = 'os'; $os->slug = 'os'; $pa = new GP_Locale(); $pa->english_name = 'Punjabi'; $pa->native_name = 'ਪੰਜਾਬੀ'; $pa->lang_code_iso_639_1 = 'pa'; $pa->lang_code_iso_639_2 = 'pan'; $pa->country_code = 'in'; $pa->wp_locale = 'pa_IN'; $pa->slug = 'pa'; $pa->google_code = 'pa'; $pa->facebook_locale = 'pa_IN'; $pap = new GP_Locale(); $pap->english_name = 'Papiamento'; $pap->native_name = 'Papiamentu'; $pap->lang_code_iso_639_2 = 'pap'; $pap->lang_code_iso_639_3 = 'pap'; $pap->country_code = 'cw'; $pap->wp_locale = 'pap'; $pap->slug = 'pap'; $pirate = new GP_Locale(); $pirate->english_name = 'English (Pirate)'; $pirate->native_name = 'English (Pirate)'; $pirate->lang_code_iso_639_2 = 'art'; $pirate->wp_locale = 'art_xpirate'; $pirate->slug = 'pirate'; $pirate->google_code = 'xx-pirate'; $pirate->facebook_locale = 'en_PI'; $pl = new GP_Locale(); $pl->english_name = 'Polish'; $pl->native_name = 'Polski'; $pl->lang_code_iso_639_1 = 'pl'; $pl->lang_code_iso_639_2 = 'pol'; $pl->country_code = 'pl'; $pl->wp_locale = 'pl_PL'; $pl->slug = 'pl'; $pl->nplurals = 3; $pl->plural_expression = '(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; $pl->google_code = 'pl'; $pl->facebook_locale = 'pl_PL'; $pt_br = new GP_Locale(); $pt_br->english_name = 'Portuguese (Brazil)'; $pt_br->native_name = 'Português do Brasil'; $pt_br->lang_code_iso_639_1 = 'pt'; $pt_br->lang_code_iso_639_2 = 'por'; $pt_br->country_code = 'br'; $pt_br->wp_locale = 'pt_BR'; $pt_br->slug = 'pt-br'; $pt_br->nplurals = 2; $pt_br->plural_expression = '(n > 1)'; $pt_br->google_code = 'pt-BR'; $pt_br->facebook_locale = 'pt_BR'; $pt = new GP_Locale(); $pt->english_name = 'Portuguese (Portugal)'; $pt->native_name = 'Português'; $pt->lang_code_iso_639_1 = 'pt'; $pt->country_code = 'pt'; $pt->wp_locale = 'pt_PT'; $pt->slug = 'pt'; $pt->google_code = 'pt-PT'; $pt->facebook_locale = 'pt_PT'; $ps = new GP_Locale(); $ps->english_name = 'Pashto'; $ps->native_name = 'پښتو'; $ps->lang_code_iso_639_1 = 'ps'; $ps->lang_code_iso_639_2 = 'pus'; $ps->country_code = 'af'; $ps->wp_locale = 'ps'; $ps->slug = 'ps'; $ps->text_direction = 'rtl'; $ps->facebook_locale = 'ps_AF'; $rhg = new GP_Locale(); $rhg->english_name = 'Rohingya'; $rhg->native_name = 'Ruáinga'; $rhg->lang_code_iso_639_3 = 'rhg'; $rhg->country_code = 'mm'; $rhg->wp_locale = 'rhg'; $rhg->slug = 'rhg'; $rhg->nplurals = 1; $rhg->plural_expression = '0'; $ro = new GP_Locale(); $ro->english_name = 'Romanian'; $ro->native_name = 'Română'; $ro->lang_code_iso_639_1 = 'ro'; $ro->lang_code_iso_639_2 = 'ron'; $ro->country_code = 'ro'; $ro->wp_locale = 'ro_RO'; $ro->slug = 'ro'; $ro->nplurals = 3; $ro->plural_expression = '(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2)'; $ro->google_code = 'ro'; $ro->facebook_locale = 'ro_RO'; $roh = new GP_Locale(); $roh->english_name = 'Romansh'; $roh->native_name = 'Rumantsch'; $roh->lang_code_iso_639_2 = 'rm'; $roh->lang_code_iso_639_3 = 'roh'; $roh->country_code = 'ch'; $roh->wp_locale = 'roh'; $roh->slug = 'roh'; $ru = new GP_Locale(); $ru->english_name = 'Russian'; $ru->native_name = 'Русский'; $ru->lang_code_iso_639_1 = 'ru'; $ru->lang_code_iso_639_2 = 'rus'; $ru->country_code = 'ru'; $ru->wp_locale = 'ru_RU'; $ru->slug = 'ru'; $ru->nplurals = 3; $ru->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; $ru->google_code = 'ru'; $ru->facebook_locale = 'ru_RU'; $rue = new GP_Locale(); $rue->english_name = 'Rusyn'; $rue->native_name = 'Русиньскый'; $rue->lang_code_iso_639_3 = 'rue'; $rue->wp_locale = 'rue'; $rue->slug = 'rue'; $rue->nplurals = 3; $rue->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; $rup = new GP_Locale(); $rup->english_name = 'Aromanian'; $rup->native_name = 'Armãneashce'; $rup->lang_code_iso_639_2 = 'rup'; $rup->lang_code_iso_639_3 = 'rup'; $rup->country_code = 'mk'; $rup->wp_locale = 'rup_MK'; $rup->slug = 'rup'; $sah = new GP_Locale(); $sah->english_name = 'Sakha'; $sah->native_name = 'Сахалыы'; $sah->lang_code_iso_639_2 = 'sah'; $sah->lang_code_iso_639_3 = 'sah'; $sah->country_code = 'ru'; $sah->wp_locale = 'sah'; $sah->slug = 'sah'; $sa_in = new GP_Locale(); $sa_in->english_name = 'Sanskrit'; $sa_in->native_name = 'भारतम्'; $sa_in->lang_code_iso_639_1 = 'sa'; $sa_in->lang_code_iso_639_2 = 'san'; $sa_in->lang_code_iso_639_3 = 'san'; $sa_in->country_code = 'in'; $sa_in->wp_locale = 'sa_IN'; $sa_in->slug = 'sa-in'; $sa_in->facebook_locale = 'sa_IN'; $scn = new GP_Locale(); $scn->english_name = 'Sicilian'; $scn->native_name = 'Sicilianu'; $scn->lang_code_iso_639_3 = 'scn'; $scn->country_code = 'it'; $scn->wp_locale = 'scn'; $scn->slug = 'scn'; $si = new GP_Locale(); $si->english_name = 'Sinhala'; $si->native_name = 'සිංහල'; $si->lang_code_iso_639_1 = 'si'; $si->lang_code_iso_639_2 = 'sin'; $si->country_code = 'lk'; $si->wp_locale = 'si_LK'; $si->slug = 'si'; $si->google_code = 'si'; $si->facebook_locale = 'si_LK'; $sk = new GP_Locale(); $sk->english_name = 'Slovak'; $sk->native_name = 'Slovenčina'; $sk->lang_code_iso_639_1 = 'sk'; $sk->lang_code_iso_639_2 = 'slk'; $sk->country_code = 'sk'; $sk->slug = 'sk'; $sk->wp_locale = 'sk_SK'; $sk->nplurals = 3; $sk->plural_expression = '(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2'; $sk->google_code = 'sk'; $sk->facebook_locale = 'sk_SK'; $skr = new GP_Locale(); $skr->english_name = 'Saraiki'; $skr->native_name = 'سرائیکی'; $skr->lang_code_iso_639_3 = 'skr'; $skr->country_code = 'pk'; $skr->wp_locale = 'skr'; $skr->slug = 'skr'; $skr->nplurals = 2; $skr->plural_expression = '(n > 1)'; $skr->text_direction = 'rtl'; $sl = new GP_Locale(); $sl->english_name = 'Slovenian'; $sl->native_name = 'Slovenščina'; $sl->lang_code_iso_639_1 = 'sl'; $sl->lang_code_iso_639_2 = 'slv'; $sl->country_code = 'si'; $sl->wp_locale = 'sl_SI'; $sl->slug = 'sl'; $sl->nplurals = 4; $sl->plural_expression = '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3)'; $sl->google_code = 'sl'; $sl->facebook_locale = 'sl_SI'; $sna = new GP_Locale(); $sna->english_name = 'Shona'; $sna->native_name = 'ChiShona'; $sna->lang_code_iso_639_1 = 'sn'; $sna->lang_code_iso_639_3 = 'sna'; $sna->country_code = 'zw'; $sna->wp_locale = 'sna'; $sna->slug = 'sna'; $snd = new GP_Locale(); $snd->english_name = 'Sindhi'; $snd->native_name = 'سنڌي'; $snd->lang_code_iso_639_1 = 'sd'; $snd->lang_code_iso_639_2 = 'sd'; $snd->lang_code_iso_639_3 = 'snd'; $snd->country_code = 'pk'; $snd->wp_locale = 'snd'; $snd->slug = 'snd'; $snd->text_direction = 'rtl'; $so = new GP_Locale(); $so->english_name = 'Somali'; $so->native_name = 'Afsoomaali'; $so->lang_code_iso_639_1 = 'so'; $so->lang_code_iso_639_2 = 'som'; $so->lang_code_iso_639_3 = 'som'; $so->country_code = 'so'; $so->wp_locale = 'so_SO'; $so->slug = 'so'; $so->google_code = 'so'; $so->facebook_locale = 'so_SO'; $sq = new GP_Locale(); $sq->english_name = 'Albanian'; $sq->native_name = 'Shqip'; $sq->lang_code_iso_639_1 = 'sq'; $sq->lang_code_iso_639_2 = 'sqi'; $sq->wp_locale = 'sq'; $sq->country_code = 'al'; $sq->slug = 'sq'; $sq->google_code = 'sq'; $sq->facebook_locale = 'sq_AL'; $sq_xk = new GP_Locale(); $sq_xk->english_name = 'Shqip (Kosovo)'; $sq_xk->native_name = 'Për Kosovën Shqip'; $sq_xk->lang_code_iso_639_1 = 'sq'; $sq_xk->country_code = 'xk'; // Temporary country code until Kosovo is assigned an ISO code. $sq_xk->wp_locale = 'sq_XK'; $sq_xk->slug = 'sq-xk'; $sr = new GP_Locale(); $sr->english_name = 'Serbian'; $sr->native_name = 'Српски језик'; $sr->lang_code_iso_639_1 = 'sr'; $sr->lang_code_iso_639_2 = 'srp'; $sr->country_code = 'rs'; $sr->wp_locale = 'sr_RS'; $sr->slug = 'sr'; $sr->nplurals = 3; $sr->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; $sr->google_code = 'sr'; $sr->facebook_locale = 'sr_RS'; $srd = new GP_Locale(); $srd->english_name = 'Sardinian'; $srd->native_name = 'Sardu'; $srd->lang_code_iso_639_1 = 'sc'; $srd->lang_code_iso_639_2 = 'srd'; $srd->country_code = 'it'; $srd->wp_locale = 'srd'; $srd->slug = 'srd'; $srd->facebook_locale = 'sc_IT'; $ssw = new GP_Locale(); $ssw->english_name = 'Swati'; $ssw->native_name = 'SiSwati'; $ssw->lang_code_iso_639_1 = 'ss'; $ssw->lang_code_iso_639_2 = 'ssw'; $ssw->lang_code_iso_639_3 = 'ssw'; $ssw->country_code = 'sz'; $ssw->wp_locale = 'ssw'; $ssw->slug = 'ssw'; $su = new GP_Locale(); $su->english_name = 'Sundanese'; $su->native_name = 'Basa Sunda'; $su->lang_code_iso_639_1 = 'su'; $su->lang_code_iso_639_2 = 'sun'; $su->country_code = 'id'; $su->wp_locale = 'su_ID'; $su->slug = 'su'; $su->nplurals = 1; $su->plural_expression = '0'; $su->google_code = 'su'; $sv = new GP_Locale(); $sv->english_name = 'Swedish'; $sv->native_name = 'Svenska'; $sv->lang_code_iso_639_1 = 'sv'; $sv->lang_code_iso_639_2 = 'swe'; $sv->country_code = 'se'; $sv->wp_locale = 'sv_SE'; $sv->slug = 'sv'; $sv->google_code = 'sv'; $sv->facebook_locale = 'sv_SE'; $sw = new GP_Locale(); $sw->english_name = 'Swahili'; $sw->native_name = 'Kiswahili'; $sw->lang_code_iso_639_1 = 'sw'; $sw->lang_code_iso_639_2 = 'swa'; $sw->wp_locale = 'sw'; $sw->slug = 'sw'; $sw->google_code = 'sw'; $sw->facebook_locale = 'sw_KE'; $syr = new GP_Locale(); $syr->english_name = 'Syriac'; $syr->native_name = 'Syriac'; $syr->lang_code_iso_639_3 = 'syr'; $syr->country_code = 'iq'; $syr->wp_locale = 'syr'; $syr->slug = 'syr'; $szl = new GP_Locale(); $szl->english_name = 'Silesian'; $szl->native_name = 'Ślōnskŏ gŏdka'; $szl->lang_code_iso_639_3 = 'szl'; $szl->country_code = 'pl'; $szl->wp_locale = 'szl'; $szl->slug = 'szl'; $szl->nplurals = 3; $szl->plural_expression = '(n==1 ? 0 : n%10>=2 && n%10<=4 && n%100==20 ? 1 : 2)'; $szl->facebook_locale = 'sz_PL'; $ta = new GP_Locale(); $ta->english_name = 'Tamil'; $ta->native_name = 'தமிழ்'; $ta->lang_code_iso_639_1 = 'ta'; $ta->lang_code_iso_639_2 = 'tam'; $ta->country_code = 'in'; $ta->wp_locale = 'ta_IN'; $ta->slug = 'ta'; $ta->google_code = 'ta'; $ta->facebook_locale = 'ta_IN'; $ta_lk = new GP_Locale(); $ta_lk->english_name = 'Tamil (Sri Lanka)'; $ta_lk->native_name = 'தமிழ்'; $ta_lk->lang_code_iso_639_1 = 'ta'; $ta_lk->lang_code_iso_639_2 = 'tam'; $ta_lk->country_code = 'lk'; $ta_lk->wp_locale = 'ta_LK'; $ta_lk->slug = 'ta-lk'; $ta_lk->google_code = 'ta'; $tah = new GP_Locale(); $tah->english_name = 'Tahitian'; $tah->native_name = 'Reo Tahiti'; $tah->lang_code_iso_639_1 = 'ty'; $tah->lang_code_iso_639_2 = 'tah'; $tah->lang_code_iso_639_3 = 'tah'; $tah->country_code = 'fr'; $tah->wp_locale = 'tah'; $tah->slug = 'tah'; $tah->nplurals = 2; $tah->plural_expression = '(n > 1)'; $te = new GP_Locale(); $te->english_name = 'Telugu'; $te->native_name = 'తెలుగు'; $te->lang_code_iso_639_1 = 'te'; $te->lang_code_iso_639_2 = 'tel'; $te->wp_locale = 'te'; $te->slug = 'te'; $te->google_code = 'te'; $te->facebook_locale = 'te_IN'; $tg = new GP_Locale(); $tg->english_name = 'Tajik'; $tg->native_name = 'Тоҷикӣ'; $tg->lang_code_iso_639_1 = 'tg'; $tg->lang_code_iso_639_2 = 'tgk'; $tah->country_code = 'tj'; $tg->wp_locale = 'tg'; $tg->slug = 'tg'; $tg->google_code = 'tg'; $tg->facebook_locale = 'tg_TJ'; $th = new GP_Locale(); $th->english_name = 'Thai'; $th->native_name = 'ไทย'; $th->lang_code_iso_639_1 = 'th'; $th->lang_code_iso_639_2 = 'tha'; $th->wp_locale = 'th'; $th->slug = 'th'; $th->nplurals = 1; $th->plural_expression = '0'; $th->google_code = 'th'; $th->facebook_locale = 'th_TH'; $tir = new GP_Locale(); $tir->english_name = 'Tigrinya'; $tir->native_name = 'ትግርኛ'; $tir->lang_code_iso_639_1 = 'ti'; $tir->lang_code_iso_639_2 = 'tir'; $tir->country_code = 'er'; $tir->wp_locale = 'tir'; $tir->slug = 'tir'; $tir->nplurals = 1; $tir->plural_expression = '0'; $tlh = new GP_Locale(); $tlh->english_name = 'Klingon'; $tlh->native_name = 'TlhIngan'; $tlh->lang_code_iso_639_2 = 'tlh'; $tlh->slug = 'tlh'; $tlh->nplurals = 1; $tlh->plural_expression = '0'; $tlh->facebook_locale = 'tl_ST'; $tl = new GP_Locale(); $tl->english_name = 'Tagalog'; $tl->native_name = 'Tagalog'; $tl->lang_code_iso_639_1 = 'tl'; $tl->lang_code_iso_639_2 = 'tgl'; $tl->country_code = 'ph'; $tl->wp_locale = 'tl'; $tl->slug = 'tl'; $tl->google_code = 'tl'; $tl->facebook_locale = 'tl_PH'; $tr = new GP_Locale(); $tr->english_name = 'Turkish'; $tr->native_name = 'Türkçe'; $tr->lang_code_iso_639_1 = 'tr'; $tr->lang_code_iso_639_2 = 'tur'; $tr->country_code = 'tr'; $tr->wp_locale = 'tr_TR'; $tr->slug = 'tr'; $tr->nplurals = 2; $tr->plural_expression = '(n > 1)'; $tr->google_code = 'tr'; $tr->facebook_locale = 'tr_TR'; $tt_ru = new GP_Locale(); $tt_ru->english_name = 'Tatar'; $tt_ru->native_name = 'Татар теле'; $tt_ru->lang_code_iso_639_1 = 'tt'; $tt_ru->lang_code_iso_639_2 = 'tat'; $tt_ru->country_code = 'ru'; $tt_ru->wp_locale = 'tt_RU'; $tt_ru->slug = 'tt'; $tt_ru->nplurals = 1; $tt_ru->plural_expression = '0'; $tt_ru->facebook_locale = 'tt_RU'; $tuk = new GP_Locale(); $tuk->english_name = 'Turkmen'; $tuk->native_name = 'Türkmençe'; $tuk->lang_code_iso_639_1 = 'tk'; $tuk->lang_code_iso_639_2 = 'tuk'; $tuk->country_code = 'tm'; $tuk->wp_locale = 'tuk'; $tuk->slug = 'tuk'; $tuk->nplurals = 2; $tuk->plural_expression = '(n > 1)'; $tuk->facebook_locale = 'tk_TM'; $twd = new GP_Locale(); $twd->english_name = 'Tweants'; $twd->native_name = 'Twents'; $twd->lang_code_iso_639_3 = 'twd'; $twd->country_code = 'nl'; $twd->wp_locale = 'twd'; $twd->slug = 'twd'; $tzm = new GP_Locale(); $tzm->english_name = 'Tamazight (Central Atlas)'; $tzm->native_name = 'ⵜⴰⵎⴰⵣⵉⵖⵜ'; $tzm->lang_code_iso_639_2 = 'tzm'; $tzm->country_code = 'ma'; $tzm->wp_locale = 'tzm'; $tzm->slug = 'tzm'; $tzm->nplurals = 2; $tzm->plural_expression = '(n > 1)'; $udm = new GP_Locale(); $udm->english_name = 'Udmurt'; $udm->native_name = 'Удмурт кыл'; $udm->lang_code_iso_639_2 = 'udm'; $udm->slug = 'udm'; $ug = new GP_Locale(); $ug->english_name = 'Uighur'; $ug->native_name = 'ئۇيغۇرچە'; $ug->lang_code_iso_639_1 = 'ug'; $ug->lang_code_iso_639_2 = 'uig'; $ug->country_code = 'cn'; $ug->wp_locale = 'ug_CN'; $ug->slug = 'ug'; $ug->text_direction = 'rtl'; $uk = new GP_Locale(); $uk->english_name = 'Ukrainian'; $uk->native_name = 'Українська'; $uk->lang_code_iso_639_1 = 'uk'; $uk->lang_code_iso_639_2 = 'ukr'; $uk->country_code = 'ua'; $uk->wp_locale = 'uk'; $uk->slug = 'uk'; $uk->nplurals = 3; $uk->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'; $uk->google_code = 'uk'; $uk->facebook_locale = 'uk_UA'; $ur = new GP_Locale(); $ur->english_name = 'Urdu'; $ur->native_name = 'اردو'; $ur->lang_code_iso_639_1 = 'ur'; $ur->lang_code_iso_639_2 = 'urd'; $ur->country_code = 'pk'; $ur->wp_locale = 'ur'; $ur->slug = 'ur'; $ur->text_direction = 'rtl'; $ur->google_code = 'ur'; $ur->facebook_locale = 'ur_PK'; $uz = new GP_Locale(); $uz->english_name = 'Uzbek'; $uz->native_name = 'O‘zbekcha'; $uz->lang_code_iso_639_1 = 'uz'; $uz->lang_code_iso_639_2 = 'uzb'; $uz->country_code = 'uz'; $uz->wp_locale = 'uz_UZ'; $uz->slug = 'uz'; $uz->nplurals = 1; $uz->plural_expression = '0'; $uz->google_code = 'uz'; $uz->facebook_locale = 'uz_UZ'; $vec = new GP_Locale(); $vec->english_name = 'Venetian'; $vec->native_name = 'Vèneta'; $vec->lang_code_iso_639_2 = 'roa'; $vec->lang_code_iso_639_3 = 'vec'; $vec->country_code = 'it'; $vec->slug = 'vec'; $vi = new GP_Locale(); $vi->english_name = 'Vietnamese'; $vi->native_name = 'Tiếng Việt'; $vi->lang_code_iso_639_1 = 'vi'; $vi->lang_code_iso_639_2 = 'vie'; $vi->country_code = 'vn'; $vi->wp_locale = 'vi'; $vi->slug = 'vi'; $vi->nplurals = 1; $vi->plural_expression = '0'; $vi->google_code = 'vi'; $vi->facebook_locale = 'vi_VN'; $wa = new GP_Locale(); $wa->english_name = 'Walloon'; $wa->native_name = 'Walon'; $wa->lang_code_iso_639_1 = 'wa'; $wa->lang_code_iso_639_2 = 'wln'; $wa->country_code = 'be'; $wa->wp_locale = 'wa'; $wa->slug = 'wa'; $xho = new GP_Locale(); $xho->english_name = 'Xhosa'; $xho->native_name = 'isiXhosa'; $xho->lang_code_iso_639_1 = 'xh'; $xho->lang_code_iso_639_2 = 'xho'; $xho->lang_code_iso_639_3 = 'xho'; $xho->country_code = 'za'; $xho->wp_locale = 'xho'; $xho->slug = 'xho'; $xho->google_code = 'xh'; $xho->facebook_locale = 'xh_ZA'; $xmf = new GP_Locale(); $xmf->english_name = 'Mingrelian'; $xmf->native_name = 'მარგალური ნინა'; $xmf->lang_code_iso_639_3 = 'xmf'; $xmf->country_code = 'ge'; $xmf->wp_locale = 'xmf'; $xmf->slug = 'xmf'; $yi = new GP_Locale(); $yi->english_name = 'Yiddish'; $yi->native_name = 'ייִדיש'; $yi->lang_code_iso_639_1 = 'yi'; $yi->lang_code_iso_639_2 = 'yid'; $yi->slug = 'yi'; $yi->text_direction = 'rtl'; $yi->google_code = 'yi'; $yor = new GP_Locale(); $yor->english_name = 'Yoruba'; $yor->native_name = 'Yorùbá'; $yor->lang_code_iso_639_1 = 'yo'; $yor->lang_code_iso_639_2 = 'yor'; $yor->lang_code_iso_639_3 = 'yor'; $yor->country_code = 'ng'; $yor->wp_locale = 'yor'; $yor->slug = 'yor'; $yor->google_code = 'yo'; $yor->facebook_locale = 'yo_NG'; $zh_cn = new GP_Locale(); $zh_cn->english_name = 'Chinese (China)'; $zh_cn->native_name = '简体中文'; $zh_cn->lang_code_iso_639_1 = 'zh'; $zh_cn->lang_code_iso_639_2 = 'zho'; $zh_cn->country_code = 'cn'; $zh_cn->wp_locale = 'zh_CN'; $zh_cn->slug = 'zh-cn'; $zh_cn->nplurals = 1; $zh_cn->plural_expression = '0'; $zh_cn->google_code = 'zh-CN'; $zh_cn->facebook_locale = 'zh_CN'; $zh_hk = new GP_Locale(); $zh_hk->english_name = 'Chinese (Hong Kong)'; $zh_hk->native_name = '香港中文版 '; $zh_hk->lang_code_iso_639_1 = 'zh'; $zh_hk->lang_code_iso_639_2 = 'zho'; $zh_hk->country_code = 'hk'; $zh_hk->wp_locale = 'zh_HK'; $zh_hk->slug = 'zh-hk'; $zh_hk->nplurals = 1; $zh_hk->plural_expression = '0'; $zh_hk->facebook_locale = 'zh_HK'; $zh_sg = new GP_Locale(); $zh_sg->english_name = 'Chinese (Singapore)'; $zh_sg->native_name = '中文'; $zh_sg->lang_code_iso_639_1 = 'zh'; $zh_sg->lang_code_iso_639_2 = 'zho'; $zh_sg->country_code = 'sg'; $zh_sg->wp_locale = 'zh_SG'; $zh_sg->slug = 'zh-sg'; $zh_sg->nplurals = 1; $zh_sg->plural_expression = '0'; $zh_tw = new GP_Locale(); $zh_tw->english_name = 'Chinese (Taiwan)'; $zh_tw->native_name = '繁體中文'; $zh_tw->lang_code_iso_639_1 = 'zh'; $zh_tw->lang_code_iso_639_2 = 'zho'; $zh_tw->country_code = 'tw'; $zh_tw->slug = 'zh-tw'; $zh_tw->wp_locale= 'zh_TW'; $zh_tw->nplurals = 1; $zh_tw->plural_expression = '0'; $zh_tw->google_code = 'zh-TW'; $zh_tw->facebook_locale = 'zh_TW'; $zh = new GP_Locale(); $zh->english_name = 'Chinese'; $zh->native_name = '中文'; $zh->lang_code_iso_639_1 = 'zh'; $zh->lang_code_iso_639_2 = 'zho'; $zh->slug = 'zh'; $zh->nplurals = 1; $zh->plural_expression = '0'; $zul = new GP_Locale(); $zul->english_name = 'Zulu'; $zul->native_name = 'isiZulu'; $zul->lang_code_iso_639_1 = 'zu'; $zul->lang_code_iso_639_2 = 'zul'; $zul->lang_code_iso_639_3 = 'zul'; $zul->country_code = 'za'; $zul->wp_locale = 'zul'; $zul->slug = 'zul'; $zul->google_code = 'zu'; foreach( get_defined_vars() as $locale ) { $this->locales[ $locale->slug ] = $locale; } } public static function &instance() { if ( ! isset( $GLOBALS['gp_locales'] ) ) $GLOBALS['gp_locales'] = new GP_Locales; return $GLOBALS['gp_locales']; } public static function locales() { $instance = GP_Locales::instance(); return $instance->locales; } public static function exists( $slug ) { $instance = GP_Locales::instance(); return isset( $instance->locales[ $slug ] ); } public static function by_slug( $slug ) { $instance = GP_Locales::instance(); return isset( $instance->locales[ $slug ] )? $instance->locales[ $slug ] : null; } public static function by_field( $field_name, $field_value ) { $instance = GP_Locales::instance(); $result = false; foreach( $instance->locales() as $locale ) { if ( isset( $locale->$field_name ) && $locale->$field_name == $field_value ) { $result = $locale; break; } } return $result; } } endif;