[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/locales/ -> locales.php (source)

   1  <?php
   2  class GP_Locale {
   3      var $english_name;
   4      var $native_name;
   5      var $text_direction = 'ltr';
   6      var $lang_code_iso_639_1 = null;
   7      var $country_code;
   8      var $wp_locale;
   9      var $slug;
  10      var $nplurals = 2;
  11      var $plural_expression = 'n != 1';
  12      var $google_code = null;
  13      var $preferred_sans_serif_font_family = null;
  14      // TODO: days, months, decimals, quotes
  15      
  16  	function GP_Locale( $args = array() ) {
  17          foreach( $args as $key => $value ) {
  18              $this->$key = $value;
  19          }
  20      }
  21      
  22  	static function __set_state( $state ) {
  23          return new GP_Locale( $state );
  24      }
  25      
  26  	function combined_name() {
  27          /* translators: combined name for locales: 1: name in English, 2: native name */
  28          return sprintf( _x( '%1$s/%2$s', 'locales' ), $this->english_name, $this->native_name );
  29      }
  30      
  31  	function numbers_for_index( $index, $how_many = 3, $test_up_to = 1000 ) {
  32          $numbers = array();
  33          for( $number = 0; $number < $test_up_to; ++$number ) {
  34              if ( $this->index_for_number( $number ) == $index ) {
  35                  $numbers[] = $number;
  36                  if ( count( $numbers ) >= $how_many ) break;
  37              }
  38          }
  39          return $numbers;
  40      }
  41      
  42  	function index_for_number( $number ) {
  43          if ( !isset( $this->_index_for_number ) ) {
  44              $expression = Gettext_Translations::parenthesize_plural_exression( $this->plural_expression );
  45              $this->_index_for_number = Gettext_Translations::make_plural_form_function( $this->nplurals, $expression );
  46          }
  47          $f = $this->_index_for_number;
  48          return $f( $number );
  49      }
  50  }
  51  
  52  class GP_Locales {
  53      
  54      var $locales = array();
  55      
  56  	function GP_Locales() {
  57          $aa = new GP_Locale();
  58          $aa->english_name = 'Afar';
  59          $aa->native_name = 'Afaraf';
  60          $aa->lang_code_iso_639_1 = 'aa';
  61          $aa->lang_code_iso_639_2 = 'aar';
  62          $aa->country_code = '';
  63          $aa->slug = 'aa';
  64  
  65          $ae = new GP_Locale();
  66          $ae->english_name = 'Avestan';
  67          $ae->native_name = 'avesta';
  68          $ae->lang_code_iso_639_1 = 'ae';
  69          $ae->lang_code_iso_639_2 = 'ave';
  70          $ae->country_code = '';
  71          $ae->slug = 'ae';
  72  
  73          $af = new GP_Locale();
  74          $af->english_name = 'Afrikaans';
  75          $af->native_name = 'Afrikaans';
  76          $af->lang_code_iso_639_1 = 'af';
  77          $af->lang_code_iso_639_2 = 'afr';
  78          $af->country_code = 'za';
  79          $af->wp_locale = 'af';
  80          $af->slug = 'af';
  81          $af->google_code = 'af';
  82  
  83          $ak = new GP_Locale();
  84          $ak->english_name = 'Akan';
  85          $ak->native_name = 'Akan';
  86          $ak->lang_code_iso_639_1 = 'ak';
  87          $ak->lang_code_iso_639_2 = 'aka';
  88          $ak->country_code = '';
  89          $ak->wp_locale = 'ak';
  90          $ak->slug = 'ak';
  91  
  92          $am = new GP_Locale();
  93          $am->english_name = 'Amharic';
  94          $am->native_name = 'አማርኛ';
  95          $am->lang_code_iso_639_1 = 'am';
  96          $am->lang_code_iso_639_2 = 'amh';
  97          $am->country_code = 'et';
  98          $am->slug = 'am';
  99          $am->google_code = 'am';
 100  
 101          $an = new GP_Locale();
 102          $an->english_name = 'Aragonese';
 103          $an->native_name = 'Aragonés';
 104          $an->lang_code_iso_639_1 = 'an';
 105          $an->lang_code_iso_639_2 = 'arg';
 106          $an->country_code = 'es';
 107          $an->slug = 'an';
 108  
 109          $ar = new GP_Locale();
 110          $ar->english_name = 'Arabic';
 111          $ar->native_name = 'العربية';
 112          $ar->lang_code_iso_639_1 = 'ar';
 113          $ar->lang_code_iso_639_2 = 'ara';
 114          $ar->country_code = '';
 115          $ar->wp_locale = 'ar';
 116          $ar->slug = 'ar';
 117          $ar->google_code = 'ar';
 118          $ar->nplurals = 6;
 119          $ar->plural_expression = 'n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5';
 120          $ar->rtl = true;
 121          $ar->preferred_sans_serif_font_family = 'Tahoma';
 122  
 123          $as= new GP_Locale();
 124          $as->english_name = 'Assamese';
 125          $as->native_name = 'অসমীয়া';
 126          $as->lang_code_iso_639_1 = 'asm';
 127          $as->lang_code_iso_639_2 = 'as';
 128          $as->country_code = 'in';
 129          $as->slug = 'as';
 130  
 131          $ast = new GP_Locale();
 132          $ast->english_name = 'Asturian';
 133          $ast->native_name = 'Asturianu';
 134          $ast->lang_code_iso_639_1 = null;
 135          $ast->lang_code_iso_639_2 = 'ast';
 136          $ast->country_code = 'es';
 137          $ast->slug = 'ast';
 138  
 139          $av = new GP_Locale();
 140          $av->english_name = 'Avaric';
 141          $av->native_name = 'авар мацӀ';
 142          $av->lang_code_iso_639_1 = 'av';
 143          $av->lang_code_iso_639_2 = 'ava';
 144          $av->country_code = '';        
 145          $av->slug = 'av';
 146  
 147          $ay = new GP_Locale();
 148          $ay->english_name = 'Aymara';
 149          $ay->native_name = 'aymar aru';
 150          $ay->lang_code_iso_639_1 = 'ay';
 151          $ay->lang_code_iso_639_2 = 'aym';
 152          $ay->country_code = '';
 153          $ay->slug = 'ay';
 154          $ay->nplurals = 1;
 155          $ay->plural_expression = '0';
 156  
 157          $az = new GP_Locale();
 158          $az->english_name = 'Azerbaijani';
 159          $az->native_name = 'Azərbaycan dili';
 160          $az->lang_code_iso_639_1 = 'az';
 161          $az->lang_code_iso_639_2 = 'aze';
 162          $az->country_code = 'az';
 163          $az->wp_locale = 'az';
 164          $az->slug = 'az';
 165          $az->google_code = 'az';
 166          
 167          $az_tr = new GP_Locale();
 168          $az_tr->english_name = 'Azerbaijani (Turkey)';
 169          $az_tr->native_name = 'Azərbaycan Türkcəsi';
 170          $az_tr->lang_code_iso_639_1 = 'az';
 171          $az_tr->lang_code_iso_639_2 = 'aze';
 172          $az_tr->country_code = 'tr';
 173          $az_tr->wp_locale = 'az_TR';
 174          $az_tr->slug = 'az-tr';
 175  
 176          $ba = new GP_Locale();
 177          $ba->english_name = 'Bashkir';
 178          $ba->native_name = 'башҡорт теле';
 179          $ba->lang_code_iso_639_1 = 'ba';
 180          $ba->lang_code_iso_639_2 = 'bak';
 181          $ba->country_code = '';
 182          $ba->wp_locale = 'ba';
 183          $ba->slug = 'ba';
 184  
 185          $bal = new GP_Locale();
 186          $bal->english_name = 'Catalan (Balear)';
 187          $bal->native_name = 'Català (Balear)';
 188          $bal->lang_code_iso_639_1 = null;
 189          $bal->lang_code_iso_639_2 = 'bal';
 190          $bal->country_code = 'es';
 191          $bal->wp_locale = 'bal';
 192          $bal->slug = 'bal';
 193  
 194          $be = new GP_Locale();
 195          $be->english_name = 'Belarusian';
 196          $be->native_name = 'Беларуская мова';
 197          $be->lang_code_iso_639_1 = 'be';
 198          $be->lang_code_iso_639_2 = 'bel';
 199          $be->country_code = 'by';
 200          $be->slug = 'be';
 201          $be->google_code = 'be';
 202          $be->nplurals = 3;
 203          $be->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
 204  
 205          $bg = new GP_Locale();
 206          $bg->english_name = 'Bulgarian';
 207          $bg->native_name = 'Български';
 208          $bg->lang_code_iso_639_1 = 'bg';
 209          $bg->lang_code_iso_639_2 = 'bul';
 210          $bg->country_code = 'bg';
 211          $bg->wp_locale = 'bg_BG';
 212          $bg->slug = 'bg';
 213          $bg->google_code = 'bg';
 214  
 215          $bh = new GP_Locale();
 216          $bh->english_name = 'Bihari';
 217          $bh->native_name = 'भोजपुरी';
 218          $bh->lang_code_iso_639_1 = 'bh';
 219          $bh->lang_code_iso_639_2 = 'bih';
 220          $bh->country_code = '';
 221          $bh->slug = 'bh';
 222  
 223          $bi = new GP_Locale();
 224          $bi->english_name = 'Bislama';
 225          $bi->native_name = 'Bislama';
 226          $bi->lang_code_iso_639_1 = 'bi';
 227          $bi->lang_code_iso_639_2 = 'bis';
 228          $bi->country_code = 'vu';
 229          $bi->slug = 'bi';
 230  
 231          $bm = new GP_Locale();
 232          $bm->english_name = 'Bambara';
 233          $bm->native_name = 'Bamanankan';
 234          $bm->lang_code_iso_639_1 = 'bm';
 235          $bm->lang_code_iso_639_2 = 'bam';
 236          $bm->country_code = '';
 237          $bm->slug = 'bm';
 238  
 239          $bn_bd = new GP_Locale();
 240          $bn_bd->english_name = 'Bengali';
 241          $bn_bd->native_name = 'বাংলা';
 242          $bn_bd->lang_code_iso_639_1 = 'bn';
 243          $bn_bd->country_code = 'bn';
 244          $bn_bd->wp_locale = 'bn_BD';
 245          $bn_bd->slug = 'bn';
 246          $bn_bd->google_code = 'bn';
 247  
 248          $bo = new GP_Locale();
 249          $bo->english_name = 'Tibetan';
 250          $bo->native_name = 'བོད་སྐད';
 251          $bo->lang_code_iso_639_1 = 'bo';
 252          $bo->lang_code_iso_639_2 = 'tib';
 253          $bo->country_code = '';
 254          $bo->slug = 'bo';
 255          $bo->google_code = 'bo';
 256          $bo->nplurals = 1;
 257          $bo->plural_expression = '0';
 258  
 259          $br = new GP_Locale();
 260          $br->english_name = 'Breton';
 261          $br->native_name = 'brezhoneg';
 262          $br->lang_code_iso_639_1 = 'br';
 263          $br->lang_code_iso_639_2 = 'bre';
 264          $br->country_code = 'fr';
 265          $br->slug = 'br';
 266          $br->nplurals = 2;
 267          $br->plural_expression = '(n > 1)';
 268  
 269          $bs = new GP_Locale();
 270          $bs->english_name = 'Bosnian';
 271          $bs->native_name = 'Bosanski';
 272          $bs->lang_code_iso_639_1 = 'bs';
 273          $bs->lang_code_iso_639_2 = 'bos';
 274          $bs->country_code = 'ba';
 275          $bs->wp_locale = 'bs_BA';
 276          $bs->slug = 'bs';
 277          $bs->nplurals = 3;
 278          $bs->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
 279  
 280          $ca = new GP_Locale();
 281          $ca->english_name = 'Catalan';
 282          $ca->native_name = 'Català';
 283          $ca->lang_code_iso_639_1 = 'ca';
 284          $ca->lang_code_iso_639_2 = 'cat';
 285          $ca->country_code = '';
 286          $ca->wp_locale = 'ca';
 287          $ca->slug = 'ca';
 288  
 289          $ce = new GP_Locale();
 290          $ce->english_name = 'Chechen';
 291          $ce->native_name = 'Нохчийн мотт';
 292          $ce->lang_code_iso_639_1 = 'ce';
 293          $ce->lang_code_iso_639_2 = 'che';
 294          $ce->country_code = '';
 295          $ce->slug = 'ce';
 296  
 297          $ch = new GP_Locale();
 298          $ch->english_name = 'Chamorro';
 299          $ch->native_name = 'Chamoru';
 300          $ch->lang_code_iso_639_1 = 'ch';
 301          $ch->lang_code_iso_639_2 = 'cha';
 302          $ch->slug = 'ch';
 303  
 304          $ckb = new GP_Locale();
 305          $ckb->english_name = 'Kurdish (Sorani)';
 306          $ckb->native_name = 'كوردی‎';
 307          $ckb->lang_code_iso_639_1 = 'ku';
 308          $ckb->lang_code_iso_639_2 = 'ckb';
 309          $ckb->country_code = 'ku';
 310          $ckb->wp_locale = 'ckb';
 311          $ckb->slug = 'ckb';
 312  
 313          $co = new GP_Locale();
 314          $co->english_name = 'Corsican';
 315          $co->native_name = 'corsu';
 316          $co->lang_code_iso_639_1 = 'co';
 317          $co->lang_code_iso_639_2 = 'cos';
 318          $co->country_code = 'it';
 319          $co->wp_locale = 'co';
 320          $co->slug = 'co';
 321  
 322          $cr = new GP_Locale();
 323          $cr->english_name = 'Cree';
 324          $cr->native_name = 'ᓀᐦᐃᔭᐍᐏᐣ';
 325          $cr->lang_code_iso_639_1 = 'cr';
 326          $cr->lang_code_iso_639_2 = 'cre';
 327          $cr->country_code = 'ca';
 328          $cr->slug = 'cr';
 329  
 330          $cs = new GP_Locale();
 331          $cs->english_name = 'Czech';
 332          $cs->native_name = 'čeština‎';
 333          $cs->lang_code_iso_639_1 = 'cs';
 334          $cs->lang_code_iso_639_2 = 'ces';
 335          $cs->country_code = 'cz';
 336          $cs->wp_locale = 'cs_CZ';
 337          $cs->slug = 'cs';
 338          $cs->google_code = 'cs';
 339          $cs->nplurals = 3;
 340          $cs->plural_expression = '(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2';
 341  
 342          $csb = new GP_Locale();
 343          $csb->english_name = 'Kashubian';
 344          $csb->native_name = 'Kaszëbsczi';
 345          $csb->lang_code_iso_639_1 = null;
 346          $csb->lang_code_iso_639_2 = 'csb';
 347          $csb->country_code = '';
 348          $csb->slug = 'csb';
 349          $csb->nplurals = 3;
 350          $csb->plural_expression = 'n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2';
 351  
 352          $cu = new GP_Locale();
 353          $cu->english_name = 'Church Slavic';
 354          $cu->native_name = 'ѩзыкъ словѣньскъ';
 355          $cu->lang_code_iso_639_1 = 'cu';
 356          $cu->lang_code_iso_639_2 = 'chu';
 357          $cu->country_code = '';
 358          $cu->slug = 'cu';
 359  
 360          $cv = new GP_Locale();
 361          $cv->english_name = 'Chuvash';
 362          $cv->native_name = 'чӑваш чӗлхи';
 363          $cv->lang_code_iso_639_1 = 'cv';
 364          $cv->lang_code_iso_639_2 = 'chv';
 365          $cv->country_code = 'ru';
 366          $cv->slug = 'cv';
 367  
 368          $cy = new GP_Locale();
 369          $cy->english_name = 'Welsh';
 370          $cy->native_name = 'Cymraeg';
 371          $cy->lang_code_iso_639_1 = 'cy';
 372          $cy->lang_code_iso_639_2 = 'cym';
 373          $cy->country_code = 'uk';
 374          $cy->wp_locale = 'cy';
 375          $cy->slug = 'cy';
 376          $cy->google_code = 'cy';
 377          $cy->nplurals = 4;
 378          $cy->plural_expression = '(n==1) ? 0 : (n==2) ? 1 : (n != 8 && n != 11) ? 2 : 3';
 379  
 380          $da = new GP_Locale();
 381          $da->english_name = 'Danish';
 382          $da->native_name = 'Dansk';
 383          $da->lang_code_iso_639_1 = 'da';
 384          $da->lang_code_iso_639_2 = 'dan';
 385          $da->country_code = 'dk';
 386          $da->wp_locale = 'da_DK';
 387          $da->slug = 'da';
 388          $da->google_code = 'da';
 389          
 390          $de = new GP_Locale();
 391          $de->english_name = 'German';
 392          $de->native_name = 'Deutsch';
 393          $de->lang_code_iso_639_1 = 'de';
 394          $de->country_code = 'de';
 395          $de->wp_locale = 'de_DE';
 396          $de->slug = 'de';
 397          $de->google_code = 'de';
 398          
 399          $dv = new GP_Locale();
 400          $dv->english_name = 'Divehi';
 401          $dv->native_name = 'ދިވެހި';
 402          $dv->lang_code_iso_639_1 = 'dv';
 403          $dv->lang_code_iso_639_1 = 'div';
 404          $dv->country_code = 'mv';
 405          $dv->wp_locale = 'dv';
 406          $dv->slug = 'dv';
 407          $dv->google_code = 'dv';
 408          $dv->rtl = true;
 409          
 410          $dz = new GP_Locale();
 411          $dz->english_name = 'Dzongkha';
 412          $dz->native_name = 'རྫོང་ཁ';
 413          $dz->lang_code_iso_639_1 = 'dz';
 414          $dz->lang_code_iso_639_1 = 'dzo';
 415          $dz->country_code = 'bt';
 416          $dz->slug = 'dz';
 417          $dz->nplurals = 1;
 418          $dz->plural_expression = '0';
 419          
 420          $ee = new GP_Locale();
 421          $ee->english_name = 'Ewe';
 422          $ee->native_name = 'Eʋegbe';
 423          $ee->lang_code_iso_639_1 = 'ee';
 424          $ee->lang_code_iso_639_1 = 'ewe';
 425          $ee->country_code = '';
 426          $ee->slug = 'ee';
 427  
 428          $el_po = new GP_Locale();
 429          $el_po->english_name = 'Greek (Polytonic)';
 430          $el_po->native_name = 'Greek (Polytonic)'; // TODO
 431          $el_po->lang_code_po_iso_639_1 = null;
 432          $el_po->lang_code_po_iso_639_2 = null;
 433          $el_po->country_code = 'gr';
 434          $el_po->slug = 'el-po';
 435  
 436          $el = new GP_Locale();
 437          $el->english_name = 'Greek';
 438          $el->native_name = 'Ελληνικά';
 439          $el->lang_code_iso_639_1 = 'el';
 440          $el->lang_code_iso_639_2 = 'ell';
 441          $el->country_code = 'gr';
 442          $el->wp_locale = 'el';
 443          $el->slug = 'el';
 444          $el->google_code = 'el';
 445          
 446          $en = new GP_Locale();
 447          $en->english_name = 'English';
 448          $en->native_name = 'English';
 449          $en->lang_code_iso_639_1 = 'en';
 450          $en->country_code = 'us';
 451          $en->wp_locale = 'en_US';
 452          $en->slug = 'en';
 453          $en->google_code = 'en';
 454          
 455          $en_ca = new GP_Locale();
 456          $en_ca->english_name = 'English (Canada)';
 457          $en_ca->native_name = 'English (Canada)';
 458          $en_ca->lang_code_iso_639_1 = 'en';
 459          $en_ca->lang_code_iso_639_2 = 'eng';        
 460          $en_ca->lang_code_iso_639_3 = 'eng';
 461          $en_ca->country_code = 'ca';
 462          $en_ca->wp_locale = 'en_CA';
 463          $en_ca->slug = 'en-ca';
 464          $en_ca->google_code = 'en';
 465                  
 466          $en_gb = new GP_Locale();
 467          $en_gb->english_name = 'English (UK)';
 468          $en_gb->native_name = 'English (UK)';
 469          $en_gb->lang_code_iso_639_1 = 'en';
 470          $en_gb->lang_code_iso_639_2 = 'eng';        
 471          $en_gb->lang_code_iso_639_3 = 'eng';
 472          $en_gb->country_code = 'gb';
 473          $en_gb->wp_locale = 'en_GB';
 474          $en_gb->slug = 'en-gb';
 475          $en_gb->google_code = 'en';        
 476  
 477          $eo = new GP_Locale();
 478          $eo->english_name = 'Esperanto';
 479          $eo->native_name = 'Esperanto';
 480          $eo->lang_code_iso_639_1 = 'eo';
 481          $eo->lang_code_iso_639_2 = 'epo';
 482          $eo->country_code = '';
 483          $eo->wp_locale = 'eo';
 484          $eo->slug = 'eo';
 485          $eo->google_code = 'eo';
 486  
 487          $es_cl = new GP_Locale();
 488          $es_cl->english_name = 'Spanish (Chile)';
 489          $es_cl->native_name = 'Español de Chile';
 490          $es_cl->lang_code_iso_639_1 = 'es';
 491          $es_cl->lang_code_iso_639_2 = 'spa';
 492          $es_cl->country_code = 'cl';
 493          $es_cl->wp_locale = 'es_CL';
 494          $es_cl->slug = 'es-cl';
 495          $es_cl->google_code = 'es';
 496  
 497          $es_pe = new GP_Locale();
 498          $es_pe->english_name = 'Spanish (Peru)';
 499          $es_pe->native_name = 'Español de Perú';
 500          $es_pe->lang_code_iso_639_1 = 'es';
 501          $es_pe->lang_code_iso_639_2 = 'spa';
 502          $es_pe->country_code = 'pe';
 503          $es_pe->wp_locale = 'es_PE';
 504          $es_pe->slug = 'es-pe';
 505          $es_pe->google_code = 'es';
 506  
 507          $es_pr = new GP_Locale();
 508          $es_pr->english_name = 'Spanish (Puerto Rico)';
 509          $es_pr->native_name = 'Español de Puerto Rico';
 510          $es_pr->lang_code_iso_639_1 = 'es';
 511          $es_pr->lang_code_iso_639_2 = 'spa';
 512          $es_pr->country_code = 'pr';
 513          $es_pr->wp_locale = 'es_PR';
 514          $es_pr->slug = 'es-pr';
 515          $es_pr->google_code = 'es';
 516          
 517          $es_ve = new GP_Locale();
 518          $es_ve->english_name = 'Spanish (Venezuela)';
 519          $es_ve->native_name = 'Español de Venezuela';
 520          $es_ve->lang_code_iso_639_1 = 'es';
 521          $es_ve->lang_code_iso_639_2 = 'spa';
 522          $es_ve->country_code = 'pe';
 523          $es_ve->wp_locale = 'es_VE';
 524          $es_ve->slug = 'es-ve';
 525          $es_ve->google_code = 'es';
 526  
 527          $es_co = new GP_Locale();
 528          $es_co->english_name = 'Spanish (Colombia)';
 529          $es_co->native_name = 'Español de Colombia';
 530          $es_co->lang_code_iso_639_1 = 'es';
 531          $es_co->lang_code_iso_639_2 = 'spa';
 532          $es_co->country_code = 'co';
 533          $es_co->wp_locale = 'es_CO';
 534          $es_co->slug = 'es-co';
 535          $es_co->google_code = 'es';
 536  
 537          $es = new GP_Locale();
 538          $es->english_name = 'Spanish (Spain)';
 539          $es->native_name = 'Español';
 540          $es->lang_code_iso_639_1 = 'es';
 541          $es->country_code = 'es';
 542          $es->wp_locale = 'es_ES';
 543          $es->slug = 'es';
 544          $es->google_code = 'es';
 545          
 546          $et = new GP_Locale();
 547          $et->english_name = 'Estonian';
 548          $et->native_name = 'Eesti';
 549          $et->lang_code_iso_639_1 = 'et';
 550          $et->lang_code_iso_639_2 = 'est';
 551          $et->country_code = 'ee';
 552          $et->wp_locale = 'et';
 553          $et->slug = 'et';
 554          $et->google_code = 'et';
 555  
 556          $eu = new GP_Locale();
 557          $eu->english_name = 'Basque';
 558          $eu->native_name = 'Euskara';
 559          $eu->lang_code_iso_639_1 = 'eu';
 560          $eu->lang_code_iso_639_2 = 'eus';
 561          $eu->country_code = 'es';
 562          $eu->wp_locale = 'eu';
 563          $eu->slug = 'eu';
 564          $eu->google_code = 'eu';
 565  
 566          $fa = new GP_Locale();
 567          $fa->english_name = 'Persian';
 568          $fa->native_name = 'فارسی';
 569          $fa->lang_code_iso_639_1 = 'fa';
 570          $fa->lang_code_iso_639_2 = 'fas';
 571          $fa->country_code = '';
 572          $fa->wp_locale = 'fa_IR';
 573          $fa->slug = 'fa';
 574          $fa->google_code = 'fa';
 575          $fa->nplurals = 1;
 576          $fa->plural_expression = '0';
 577          $fa->rtl = true;
 578          
 579          $fa_af = new GP_Locale();
 580          $fa_af->english_name = 'Persian (Afghanistan)';
 581          $fa_af->native_name = '(فارسی (افغانستان';
 582          $fa_af->lang_code_iso_639_1 = 'fa';
 583          $fa_af->lang_code_iso_639_2 = 'fas';
 584          $fa_af->country_code = '';
 585          $fa_af->wp_locale = 'fa_AF';
 586          $fa_af->slug = 'fa-af';
 587          $fa_af->google_code = 'fa';
 588          $fa_af->nplurals = 1;
 589          $fa_af->plural_expression = '0';
 590          $fa_af->rtl = true;
 591          
 592          $fi = new GP_Locale();
 593          $fi->english_name = 'Finnish';
 594          $fi->native_name = 'Suomi';
 595          $fi->lang_code_iso_639_1 = 'fi';
 596          $fi->lang_code_iso_639_2 = 'fin';
 597          $fi->country_code = 'fi';
 598          $fi->wp_locale = 'fi';
 599          $fi->slug = 'fi';
 600          $fi->google_code = 'fi';
 601  
 602          $fj = new GP_Locale();
 603          $fj->english_name = 'Fijian';
 604          $fj->native_name = 'vosa Vakaviti';
 605          $fj->lang_code_iso_639_1 = 'fj';
 606          $fj->lang_code_iso_639_2 = 'fij';
 607          $fj->country_code = 'fj';
 608          $fj->slug = 'fj';
 609  
 610          $fo = new GP_Locale();
 611          $fo->english_name = 'Faroese';
 612          $fo->native_name = 'føroyskt';
 613          $fo->lang_code_iso_639_1 = 'fo';
 614          $fo->lang_code_iso_639_2 = 'fao';
 615          $fo->country_code = 'fo';
 616          $fo->wp_locale = 'fo';
 617          $fo->slug = 'fo';
 618          
 619          $fr = new GP_Locale();
 620          $fr->english_name = 'French (France)';
 621          $fr->native_name = 'Français';
 622          $fr->lang_code_iso_639_1 = 'fr';
 623          $fr->country_code = 'fr';
 624          $fr->wp_locale = 'fr_FR';
 625          $fr->slug = 'fr';
 626          $fr->google_code = 'fr';
 627          $fr->nplurals = 2;
 628          $fr->plural_expression = 'n > 1';
 629  
 630          $fr_be = new GP_Locale();
 631          $fr_be->english_name = 'French (Belgium)';
 632          $fr_be->native_name = 'Français de Belgique';
 633          $fr_be->lang_code_iso_639_1 = 'fr';
 634          $fr_be->lang_code_iso_639_2 = 'fra';
 635          $fr_be->country_code = 'be';
 636          $fr_be->wp_locale = 'fr_BE';
 637          $fr_be->slug = 'fr-be';
 638  
 639          $fr_ca = new GP_Locale();
 640           $fr_ca->english_name = 'French (Canada)';
 641           $fr_ca->native_name = 'Français du Canada';
 642           $fr_ca->lang_code_iso_639_1 = 'fr';
 643           $fr_ca->lang_code_iso_639_2 = 'fra';
 644           $fr_ca->country_code = 'ca';
 645           $fr_ca->slug = 'fr-ca';
 646  
 647          $fr_ch = new GP_Locale();
 648           $fr_ch->english_name = 'French (Switzerland)';
 649           $fr_ch->native_name = 'Français de Suisse';
 650           $fr_ch->lang_code_iso_639_1 = 'fr';
 651           $fr_ch->lang_code_iso_639_2 = 'fra';
 652           $fr_ch->country_code = 'ch';
 653           $fr_ch->slug = 'fr-ch';
 654  
 655          $fy = new GP_Locale();
 656           $fy->english_name = 'Frisian';
 657           $fy->native_name = 'Frysk';
 658           $fy->lang_code_iso_639_1 = 'fy';
 659           $fy->lang_code_iso_639_2 = 'fry';
 660           $fy->country_code = 'fy';
 661           $fy->slug = 'fy';
 662           $fy->wp_locale = 'fy';
 663                  
 664          $ga = new GP_Locale();
 665          $ga->english_name = 'Irish';
 666          $ga->native_name = 'Gaelige';
 667          $ga->lang_code_iso_639_1 = 'ga';
 668          $ga->lang_code_iso_639_2 = 'gle';
 669          $ga->country_code = 'ie';
 670          $ga->slug = 'ga';
 671          $ga->google_code = 'ga';
 672          $ga->nplurals = 5;
 673          $ga->plural_expression = 'n==1 ? 0 : n==2 ? 1 : n<7 ? 2 : n<11 ? 3 : 4';
 674          
 675          $gd = new GP_Locale();
 676          $gd->english_name = 'Scottish Gaelic';
 677          $gd->native_name = 'Gàidhlig';
 678          $gd->lang_code_iso_639_1 = 'gd';
 679          $gd->lang_code_iso_639_2 = 'gla';
 680          $gd->lang_code_iso_639_3 = 'gla';
 681          $gd->country_code = 'uk';
 682          $gd->wp_locale = 'gd';
 683          $gd->slug = 'gd';
 684          $gd->google_code = 'gd';
 685          $gd->nplurals = 4;
 686          $gd->plural_expression = '(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n < 20) ? 2 : 3';        
 687  
 688          $gl = new GP_Locale();
 689          $gl->english_name = 'Galician';
 690          $gl->native_name = 'Galego';
 691          $gl->lang_code_iso_639_1 = 'gl';
 692          $gl->lang_code_iso_639_2 = 'glg';
 693          $gl->country_code = 'es';
 694          $gl->wp_locale = 'gl_ES';
 695          $gl->slug = 'gl';
 696          $gl->google_code = 'gl';
 697  
 698          $gn = new GP_Locale();
 699          $gn->english_name = 'Guaraní';
 700          $gn->native_name = 'Avañe\'ẽ';
 701          $gn->lang_code_iso_639_1 = 'gn';
 702          $gn->lang_code_iso_639_2 = 'grn';
 703          $gn->country_code = '';
 704          $gn->wp_locale = 'gn';
 705          $gn->slug = 'gn';
 706          $gn->google_code = 'gn';
 707  
 708          $gu = new GP_Locale();
 709          $gu->english_name = 'Gujarati';
 710          $gu->native_name = 'ગુજરાતી';
 711          $gu->lang_code_iso_639_1 = 'gu';
 712          $gu->lang_code_iso_639_2 = 'guj';
 713          $gu->country_code = '';
 714          $gu->slug = 'gu';
 715          $gu->google_code = 'gu';
 716  
 717          $ha = new GP_Locale();
 718          $ha->english_name = 'Hausa';
 719          $ha->native_name = 'هَوُسَ';
 720          $ha->lang_code_iso_639_1 = 'he';
 721          $ha->lang_code_iso_639_2 = 'hau';
 722          $ha->country_code = '';
 723          $ha->slug = 'ha';
 724          $ha->rtl = true;
 725          
 726          $haw = new GP_Locale();
 727          $haw->english_name = 'Hawaiian';
 728          $haw->native_name = 'Ōlelo Hawaiʻi';
 729          $haw->lang_code_iso_639_1 = null;
 730          $haw->lang_code_iso_639_2 = 'haw';
 731          $haw->country_code = 'us';
 732          $haw->wp_locale = 'haw_US';
 733          $haw->slug = 'haw';
 734  
 735          $he = new GP_Locale();
 736          $he->english_name = 'Hebrew';
 737          $he->native_name = 'עִבְרִית';
 738          $he->lang_code_iso_639_1 = 'he';
 739          $he->country_code = 'il';
 740          $he->wp_locale = 'he_IL';
 741          $he->slug = 'he';
 742          $he->google_code = 'iw';
 743          $he->rtl = true;
 744  
 745          $hi = new GP_Locale();
 746          $hi->english_name = 'Hindi';
 747          $hi->native_name = 'हिन्दी';
 748          $hi->lang_code_iso_639_1 = 'hi';
 749          $hi->lang_code_iso_639_2 = 'hin';
 750          $hi->country_code = 'in';
 751          $hi->wp_locale = 'hi_IN';
 752          $hi->slug = 'hi';
 753          $hi->google_code = 'hi';
 754  
 755          $hr = new GP_Locale();
 756          $hr->english_name = 'Croatian';
 757          $hr->native_name = 'Hrvatski';
 758          $hr->lang_code_iso_639_1 = 'hr';
 759          $hr->lang_code_iso_639_2 = 'hrv';
 760          $hr->country_code = 'hr';
 761          $hr->wp_locale = 'hr';
 762          $hr->slug = 'hr';
 763          $hr->google_code = 'hr';
 764          $hr->nplurals = 3;
 765          $hr->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
 766  
 767          $hu = new GP_Locale();
 768          $hu->english_name = 'Hungarian';
 769          $hu->native_name = 'Magyar';
 770          $hu->lang_code_iso_639_1 = 'hu';
 771          $hu->lang_code_iso_639_2 = 'hun';
 772          $hu->country_code = 'hu';
 773          $hu->wp_locale = 'hu_HU';
 774          $hu->slug = 'hu';
 775          $hu->google_code = 'hu';
 776  
 777          $hy = new GP_Locale();
 778          $hy->english_name = 'Armenian';
 779          $hy->native_name = 'Հայերեն';
 780          $hy->lang_code_iso_639_1 = 'hy';
 781          $hy->lang_code_iso_639_2 = 'hye';
 782          $hy->country_code = 'am';
 783          $hy->wp_locale = 'hy';
 784          $hy->slug = 'hy';
 785          $hy->nplurals = 2;
 786  
 787          $ia = new GP_Locale();
 788          $ia->english_name = 'Interlingua';
 789          $ia->native_name = 'Interlingua';
 790          $ia->lang_code_iso_639_1 = 'ia';
 791          $ia->lang_code_iso_639_2 = 'ina';
 792          $ia->country_code = '';
 793          $ia->slug = 'ia';
 794  
 795          $id = new GP_Locale();
 796          $id->english_name = 'Indonesian';
 797          $id->native_name = 'Bahasa Indonesia';
 798          $id->lang_code_iso_639_1 = 'id';
 799          $id->lang_code_iso_639_2 = 'ind';
 800          $id->country_code = 'id';
 801          $id->wp_locale = 'id_ID';
 802          $id->slug = 'id';
 803          $id->google_code = 'id';
 804          $id->nplurals = 2;
 805          $id->plural_expression = 'n > 1';
 806  
 807          $ike = new GP_Locale();
 808          $ike->english_name = 'Inuktitut';
 809          $ike->native_name = 'ᐃᓄᒃᑎᑐᑦ';
 810          $ike->lang_code_iso_639_1 = 'iu';
 811          $ike->lang_code_iso_639_2 = 'iku';
 812          $ike->country_code = 'ca';
 813          $ike->slug = 'ike';
 814  
 815          $ilo = new GP_Locale();
 816          $ilo->english_name = 'Iloko';
 817          $ilo->native_name = 'Pagsasao nga Iloko';
 818          $ilo->lang_code_iso_639_1 = null;
 819          $ilo->lang_code_iso_639_2 = 'ilo';
 820          $ilo->country_code = 'ph';
 821          $ilo->slug = 'ilo';
 822  
 823          $is = new GP_Locale();
 824          $is->english_name = 'Icelandic';
 825          $is->native_name = 'Íslenska';
 826          $is->lang_code_iso_639_1 = 'is';
 827          $is->lang_code_iso_639_2 = 'isl';
 828          $is->country_code = 'is';
 829          $is->slug = 'is';
 830          $is->google_code = 'is';
 831          $is->wp_locale = 'is_IS';
 832          $is->nplurals = 2;
 833          $is->plural_expression = '(n % 100 != 1 && n % 100 != 21 && n % 100 != 31 && n % 100 != 41 && n % 100 != 51 && n % 100 != 61 && n % 100 != 71 && n % 100 != 81 && n % 100 != 91)';
 834  
 835          $it = new GP_Locale();
 836          $it->english_name = 'Italian';
 837          $it->native_name = 'Italiano';
 838          $it->lang_code_iso_639_1 = 'it';
 839          $it->lang_code_iso_639_2 = 'ita';
 840          $it->country_code = 'it';
 841          $it->wp_locale = 'it_IT';
 842          $it->slug = 'it';
 843          $it->google_code = 'it';
 844  
 845          $ja = new GP_Locale();
 846          $ja->english_name = 'Japanese';
 847          $ja->native_name = '日本語';
 848          $ja->lang_code_iso_639_1 = 'ja';
 849          $ja->country_code = 'jp';
 850          $ja->wp_locale = 'ja';
 851          $ja->slug = 'ja';
 852          $ja->google_code = 'ja';
 853          $ja->nplurals = 1;
 854          $ja->plural_expression = '0';
 855  
 856          $jv = new GP_Locale();
 857          $jv->english_name = 'Javanese';
 858          $jv->native_name = 'Basa Jawa';
 859          $jv->lang_code_iso_639_1 = 'jv';
 860          $jv->lang_code_iso_639_1 = 'jav';
 861          $jv->country_code = 'id';
 862          $jv->wp_locale = 'jv_ID';
 863          $jv->slug = 'jv';
 864  
 865          $ka = new GP_Locale();
 866          $ka->english_name = 'Georgian';
 867          $ka->native_name = 'ქართული';
 868          $ka->lang_code_iso_639_1 = 'ka';
 869          $ka->lang_code_iso_639_2 = 'kat';
 870          $ka->country_code = 'ge';
 871          $ka->wp_locale = 'ka_GE';
 872          $ka->slug = 'ka';
 873          $ka->google_code = 'ka';
 874          $ka->nplurals = 1;
 875          $ka->plural_expression = '0';
 876  
 877          $kk = new GP_Locale();
 878          $kk->english_name = 'Kazakh';
 879          $kk->native_name = 'Қазақ тілі';
 880          $kk->lang_code_iso_639_1 = 'kk';
 881          $kk->lang_code_iso_639_2 = 'kaz';
 882          $kk->country_code = 'kz';
 883          $kk->wp_locale = 'kk';
 884          $kk->slug = 'kk';
 885          $kk->google_code = 'kk';
 886  
 887          $km = new GP_Locale();
 888          $km->english_name = 'Khmer';
 889          $km->native_name = 'ភាសាខ្មែរ';
 890          $km->lang_code_iso_639_1 = 'km';
 891          $km->lang_code_iso_639_2 = 'khm';
 892          $km->country_code = 'kh';
 893          $km->slug = 'km';
 894          $km->google_code = 'km';
 895          $km->nplurals = 1;
 896          $km->plural_expression = '0';
 897  
 898          $kn = new GP_Locale();
 899          $kn->english_name = 'Kannada';
 900          $kn->native_name = 'ಕನ್ನಡ';
 901          $kn->lang_code_iso_639_1 = 'kn';
 902          $kn->lang_code_iso_639_2 = 'kan';
 903          $kn->country_code = 'in';
 904          $kn->wp_locale = 'kn';
 905          $kn->slug = 'kn';
 906          $kn->google_code = 'kn';
 907  
 908          $ko = new GP_Locale();
 909          $ko->english_name = 'Korean';
 910          $ko->native_name = '한국어';
 911          $ko->lang_code_iso_639_1 = 'ko';
 912          $ko->lang_code_iso_639_2 = 'kor';
 913          $ko->country_code = 'kr';
 914          $ko->wp_locale = 'ko_KR';
 915          $ko->slug = 'ko';
 916          $ko->google_code = 'ko';
 917          $ko->nplurals = 1;
 918          $ko->plural_expression = '0';
 919  
 920          $ks = new GP_Locale();
 921          $ks->english_name = 'Kashmiri';
 922          $ks->native_name = 'कश्मीरी';
 923          $ks->lang_code_iso_639_1 = 'ks';
 924          $ks->lang_code_iso_639_2 = 'kas';
 925          $ks->country_code = '';
 926          $ks->slug = 'ks';
 927  
 928          $ku = new GP_Locale();
 929          $ku->english_name = 'Kurdish (Kurmanji)';
 930          $ku->native_name = 'Kurdî';
 931          $ku->lang_code_iso_639_1 = 'ku';
 932          $ku->lang_code_iso_639_2 = 'kur';
 933          $ku->country_code = 'ku';
 934          $ku->slug = 'ku';
 935          $ku->google_code = 'ku';
 936  
 937          $ky = new GP_Locale();
 938          $ky->english_name = 'Kirghiz';
 939          $ky->native_name = 'кыргыз тили';
 940          $ky->lang_code_iso_639_1 = 'ky';
 941          $ky->lang_code_iso_639_2 = 'kir';
 942          $ky->country_code = 'kg';
 943          $ky->wp_locale = 'ky_KY';
 944          $ky->slug = 'ky';
 945          $ky->nplurals = 1;
 946          $ky->plural_expression = '0';
 947  
 948          $la = new GP_Locale();
 949          $la->english_name = 'Latin';
 950          $la->native_name = 'latine';
 951          $la->lang_code_iso_639_1 = 'la';
 952          $la->lang_code_iso_639_2 = 'lat';
 953          $la->country_code = '';
 954          $la->slug = 'la';
 955  
 956          $lb = new GP_Locale();
 957          $lb->english_name = 'Luxembourgish';
 958          $lb->native_name = 'Lëtzebuergesch';
 959          $lb->lang_code_iso_639_1 = 'lb';
 960          $lb->country_code = 'lu';
 961          $lb->wp_locale = 'lb_LU';
 962          $lb->slug = 'lb';
 963          
 964          $li = new GP_Locale();
 965          $li->english_name = 'Limburgish';
 966          $li->native_name = 'Limburgs';
 967          $li->lang_code_iso_639_1 = 'li';
 968          $li->lang_code_iso_639_2 = 'lim';
 969          $li->lang_code_iso_639_3 = 'lim';        
 970          $li->country_code = 'nl';
 971          $li->wp_locale = 'li';
 972          $li->slug = 'li';
 973          $li->google_code = 'li';
 974          
 975          $lo = new GP_Locale();
 976          $lo->english_name = 'Lao';
 977          $lo->native_name = 'ພາສາລາວ';
 978          $lo->lang_code_iso_639_1 = 'lo';
 979          $lo->lang_code_iso_639_2 = 'lao';
 980          $lo->country_code = '';
 981          $lo->wp_locale = 'lo';
 982          $lo->slug = 'lo';
 983          $lo->google_code = 'lo';
 984          $lo->nplurals = 1;
 985          $lo->plural_expression = '0';
 986  
 987          $lt = new GP_Locale();
 988          $lt->english_name = 'Lithuanian';
 989          $lt->native_name = 'Lietuvių kalba';
 990          $lt->lang_code_iso_639_1 = 'lt';
 991          $lt->lang_code_iso_639_2 = 'lit';
 992          $lt->country_code = 'lt';
 993          $lt->slug = 'lt';
 994          $lt->google_code = 'lt';
 995          $lt->nplurals = 3;
 996          $lt->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2)';
 997  
 998          $lv = new GP_Locale();
 999          $lv->english_name = 'Latvian';
1000          $lv->native_name = 'latviešu valoda';
1001          $lv->lang_code_iso_639_1 = 'lv';
1002          $lv->lang_code_iso_639_2 = 'lav';
1003          $lv->country_code = 'lv';
1004          $lv->wp_locale = 'lv';
1005          $lv->slug = 'lv';
1006          $lv->google_code = 'lv';
1007          $lv->nplurals = 3;
1008          $lv->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2)';
1009          
1010          $me = new GP_Locale();
1011          $me->english_name = 'Montenegrin';
1012          $me->native_name = 'Crnogorski jezik';
1013          $me->lang_code_iso_639_1 = 'me';
1014          $me->country_code = 'me';
1015          $me->wp_locale = 'me_ME';
1016          $me->google_code = 'srp';
1017          $me->slug = 'me';
1018          
1019          $mg = new GP_Locale();
1020          $mg->english_name = 'Malagasy';
1021          $mg->native_name = 'Malagasy';
1022          $mg->lang_code_iso_639_1 = 'mg';
1023          $mg->lang_code_iso_639_2 = 'mlg';
1024          $mg->country_code = 'mg';
1025          $mg->wp_locale = 'mg_MG';
1026          $mg->slug = 'mg';
1027          
1028          $mhr = new GP_Locale();
1029          $mhr->english_name = 'Mari (Meadow)';
1030          $mhr->native_name = 'олык марий';
1031          $mhr->lang_code_iso_639_1 = null;
1032          $mhr->lang_code_iso_639_2 = null;
1033          $mhr->lang_code_iso_639_3 = 'mhr';
1034          $mhr->country_code = 'ru';
1035          $mhr->slug = 'mhr';
1036          $mhr->google_code = 'chm';    
1037                  
1038          $mk = new GP_Locale();
1039          $mk->english_name = 'Macedonian';
1040          $mk->native_name = 'македонски јазик';
1041          $mk->lang_code_iso_639_1 = 'mk';
1042          $mk->lang_code_iso_639_2 = 'mkd';
1043          $mk->country_code = 'mk';
1044          $mk->wp_locale = 'mk_MK';
1045          $mk->slug = 'mk';
1046          $mk->google_code = 'mk';
1047          $mk->nplurals = 2;
1048          $mk->plural_expression = 'n==1 || n%10==1 ? 0 : 1';
1049  
1050          $ml = new GP_Locale();
1051          $ml->english_name = 'Malayalam';
1052          $ml->native_name = 'മലയാളം';
1053          $ml->lang_code_iso_639_1 = 'ml';
1054          $ml->lang_code_iso_639_2 = 'mal';
1055          $ml->country_code = 'in';
1056          $ml->wp_locale = 'ml_IN';
1057          $ml->slug = 'ml';
1058          $ml->google_code = 'ml';
1059  
1060          $mn = new GP_Locale();
1061          $mn->english_name = 'Mongolian';
1062          $mn->native_name = 'Монгол';
1063          $mn->lang_code_iso_639_1 = 'mn';
1064          $mn->lang_code_iso_639_2 = 'mon';
1065          $mn->country_code = 'mn';
1066          $mn->slug = 'mn';
1067          $mn->google_code = 'mn';
1068  
1069          $mr = new GP_Locale();
1070          $mr->english_name = 'Marathi';
1071          $mr->native_name = 'मराठी';
1072          $mr->lang_code_iso_639_1 = 'mr';
1073          $mr->lang_code_iso_639_2 = 'mar';
1074          $mr->country_code = '';
1075          $mr->slug = 'mr';
1076          $mr->google_code = 'mr';
1077          
1078          $mrj = new GP_Locale();
1079          $mrj->english_name = 'Mari (Hill)';
1080          $mrj->native_name = 'кырык мары';
1081          $mrj->lang_code_iso_639_1 = null;
1082          $mrj->lang_code_iso_639_2 = null;
1083          $mrj->lang_code_iso_639_3 = 'mrj';
1084          $mrj->country_code = 'ru';
1085          $mrj->slug = 'mrj';
1086          $mrj->google_code = 'chm';        
1087  
1088          $ms = new GP_Locale();
1089          $ms->english_name = 'Malay';
1090          $ms->native_name = 'Bahasa Melayu';
1091          $ms->lang_code_iso_639_1 = 'ms';
1092          $ms->lang_code_iso_639_2 = 'msa';
1093          $ms->country_code = '';
1094          $ms->wp_locale = 'ms_MY';
1095          $ms->slug = 'ms';
1096          $ms->google_code = 'ms';
1097          $ms->nplurals = 1;
1098          $ms->plural_expression = '0';
1099  
1100          $mwl = new GP_Locale();
1101          $mwl->english_name = 'Mirandese';
1102          $mwl->native_name = 'Mirandés';
1103          $mwl->lang_code_iso_639_1 = null;
1104          $mwl->lang_code_iso_639_2 = 'mwl';
1105          $mwl->country_code = '';
1106          $mwl->slug = 'mwl';
1107  
1108          $my = new GP_Locale();
1109          $my->english_name = 'Burmese';
1110          $my->native_name = 'ဗမာစာ';
1111          $my->lang_code_iso_639_1 = 'my';
1112          $my->lang_code_iso_639_2 = 'mya';
1113          $my->country_code = 'mm';
1114          $my->wp_locale = 'my_MM';
1115          $my->slug = 'mya';
1116          $my->google_code = 'my';
1117  
1118          $ne = new GP_Locale();
1119          $ne->english_name = 'Nepali';
1120          $ne->native_name = 'नेपाली';
1121          $ne->lang_code_iso_639_1 = 'ne';
1122          $ne->lang_code_iso_639_2 = 'nep';
1123          $ne->country_code = 'np';
1124          $ne->wp_locale = 'ne_NP';
1125          $ne->slug = 'ne';
1126  
1127          $nb = new GP_Locale();
1128          $nb->english_name = 'Norwegian (Bokmål)';
1129          $nb->native_name = 'Norsk bokmål';
1130          $nb->lang_code_iso_639_1 = 'nb';
1131          $nb->lang_code_iso_639_2 = 'nob';
1132          $nb->country_code = 'no';
1133          $nb->wp_locale = 'nb_NO';
1134          $nb->slug = 'nb';
1135          $nb->google_code = 'no';
1136  
1137          $nl = new GP_Locale();
1138          $nl->english_name = 'Dutch';
1139          $nl->native_name = 'Nederlands';
1140          $nl->lang_code_iso_639_1 = 'nl';
1141          $nl->lang_code_iso_639_2 = 'nld';
1142          $nl->country_code = 'nl';
1143          $nl->wp_locale = 'nl_NL';
1144          $nl->slug = 'nl';
1145          $nl->google_code = 'nl';
1146  
1147          $nl_be = new GP_Locale();
1148          $nl_be->english_name = 'Dutch (Belgium)';
1149          $nl_be->native_name = 'Nederlands (België)';
1150          $nl_be->lang_code_iso_639_1 = 'nl';
1151          $nl_be->lang_code_iso_639_2 = 'nld';
1152          $nl_be->country_code = 'be';
1153          $nl_be->wp_locale = 'nl_BE';
1154          $nl_be->slug = 'nl-be';
1155          $nl_be->google_code = 'nl';
1156          
1157          $nn = new GP_Locale();
1158          $nn->english_name = 'Norwegian (Nynorsk)';
1159          $nn->native_name = 'Norsk nynorsk';
1160          $nn->lang_code_iso_639_1 = 'nn';
1161          $nn->lang_code_iso_639_2 = 'nno';
1162          $nn->country_code = 'no';
1163          $nn->wp_locale = 'nn_NO';
1164          $nn->slug = 'nn';
1165  
1166          $no = new GP_Locale();
1167          $no->english_name = 'Norwegian';
1168          $no->native_name = 'Norsk';
1169          $no->lang_code_iso_639_1 = 'no';
1170          $no->lang_code_iso_639_2 = 'nor';
1171          $no->country_code = 'no';
1172          $no->slug = 'no';
1173          $no->google_code = 'no';
1174  
1175          $oc = new GP_Locale();
1176          $oc->english_name = 'Occitan';
1177          $oc->native_name = 'Occitan';
1178          $oc->lang_code_iso_639_1 = 'oc';
1179          $oc->lang_code_iso_639_2 = 'oci';
1180          $oc->country_code = '';
1181          $oc->slug = 'oc';
1182  
1183          $os = new GP_Locale();
1184          $os->english_name = 'Ossetic';
1185          $os->native_name = 'Ирон';
1186          $os->lang_code_iso_639_1 = 'os';
1187          $os->lang_code_iso_639_2 = 'oss';
1188          $os->wp_locale = 'os';
1189          $os->country_code = '';
1190          $os->slug = 'os';
1191          
1192          $pa = new GP_Locale();
1193          $pa->english_name = 'Punjabi';
1194          $pa->native_name = 'ਪੰਜਾਬੀ';
1195          $pa->lang_code_iso_639_1 = 'pa';
1196          $pa->lang_code_iso_639_2 = 'pan';
1197          $pa->country_code = 'in';
1198          $pa->wp_locale = 'pa_IN';
1199          $pa->slug = 'pa';
1200  
1201          $pl = new GP_Locale();
1202          $pl->english_name = 'Polish';
1203          $pl->native_name = 'Polski';
1204          $pl->lang_code_iso_639_1 = 'pl';
1205          $pl->lang_code_iso_639_2 = 'pol';
1206          $pl->country_code = 'pl';
1207          $pl->wp_locale = 'pl_PL';
1208          $pl->slug = 'pl';
1209          $pl->google_code = 'pl';
1210          $pl->nplurals = 3;
1211          $pl->plural_expression = '(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1212  
1213  
1214          $pt_br = new GP_Locale();
1215          $pt_br->english_name = 'Portuguese (Brazil)';
1216          $pt_br->native_name = 'Português do Brasil';
1217          $pt_br->lang_code_iso_639_1 = 'pt';
1218          $pt_br->lang_code_iso_639_2 = 'por';
1219          $pt_br->country_code = 'br';
1220          $pt_br->wp_locale = 'pt_BR';
1221          $pt_br->slug = 'pt-br';
1222          $pt_br->google_code = 'pt-PT';
1223          $pt_br->nplurals = 2;
1224          $pt_br->plural_expression = '(n > 1)';
1225          
1226          $pt = new GP_Locale();
1227          $pt->english_name = 'Portuguese (Portugal)';
1228          $pt->native_name = 'Português';
1229          $pt->lang_code_iso_639_1 = 'pt';
1230          $pt->country_code = 'pt';
1231          $pt->wp_locale = 'pt_PT';
1232          $pt->slug = 'pt';
1233          $pt->google_code = 'pt-PT';
1234          
1235          $ps = new GP_Locale();
1236          $ps->english_name = 'Pashto';
1237          $ps->native_name = 'پښتو';
1238          $ps->lang_code_iso_639_1 = 'ps';
1239          $ps->country_code = '';
1240          $ps->wp_locale = 'ps';
1241          $ps->slug = 'ps';
1242          $ps->google_code = 'ps';
1243          $ps->rtl = true;        
1244  
1245          $ro = new GP_Locale();
1246          $ro->english_name = 'Romanian';
1247          $ro->native_name = 'Română';
1248          $ro->lang_code_iso_639_1 = 'ro';
1249          $ro->lang_code_iso_639_2 = 'ron';
1250          $ro->country_code = 'ro';
1251          $ro->wp_locale = 'ro_RO';
1252          $ro->slug = 'ro';
1253          $ro->google_code = 'ro';
1254          $ro->nplurals = 3;
1255          $ro->plural_expression = '(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2)';
1256  
1257          $ru = new GP_Locale();
1258          $ru->english_name = 'Russian';
1259          $ru->native_name = 'Русский';
1260          $ru->lang_code_iso_639_1 = 'ru';
1261          $ru->lang_code_iso_639_2 = 'rus';
1262          $ru->country_code = 'ru';
1263          $ru->wp_locale = 'ru_RU';
1264          $ru->slug = 'ru';
1265          $ru->google_code = 'ru';
1266          $ru->nplurals = 3;
1267          $ru->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1268  
1269          $ru_ua = new GP_Locale();
1270          $ru_ua->english_name = 'Russian (Ukraine)';
1271          $ru_ua->native_name = 'украї́нська мо́ва';
1272          $ru_ua->lang_code_iso_639_1 = 'ru';
1273          $ru_ua->lang_code_iso_639_2 = 'rus';
1274          $ru_ua->country_code = 'ua';
1275          $ru_ua->wp_locale = 'ru_UA';
1276          $ru_ua->slug = 'ru-ua';
1277          $ru_ua->google_code = 'ru';
1278          $ru_ua->nplurals = 3;
1279          $ru_ua->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1280      
1281          $rue = new GP_Locale();
1282          $rue->english_name = 'Rusyn';
1283          $rue->native_name = 'Русиньскый';
1284          $rue->lang_code_iso_639_1 = null;
1285          $rue->lang_code_iso_639_2 = null;
1286          $rue->lang_code_iso_639_3 = 'rue';
1287          $rue->country_code = null;
1288          $rue->wp_locale = 'rue';
1289          $rue->slug = 'rue';
1290          $rue->nplurals = 3;
1291          $rue->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';        
1292          
1293          $rup = new GP_Locale();
1294          $rup->english_name = 'Aromanian';
1295          $rup->native_name = 'Armãneashce';
1296          $rup->lang_code_iso_639_2 = 'rup';
1297          $rup->lang_code_iso_639_3 = 'rup';
1298          $rup->country_code = 'mk';
1299          $rup->wp_locale = 'rup_MK';
1300          $rup->slug = 'rup';
1301  
1302          $sah = new GP_Locale();
1303          $sah->english_name = 'Sakha';
1304          $sah->native_name = 'Sakha';
1305          $sah->lang_code_iso_639_1 = null;
1306          $sah->lang_code_iso_639_2 = 'sah';
1307          $sah->lang_code_iso_639_3 = 'sah';
1308          $sah->country_code = 'ru';
1309          $sah->wp_locale = 'sah';
1310          $sah->slug = 'sah';
1311  
1312          $sa_in = new GP_Locale();
1313          $sa_in->english_name = 'Sanskrit';
1314          $sa_in->native_name = 'भारतम्';
1315          $sa_in->lang_code_iso_639_1 = null;
1316          $sa_in->lang_code_iso_639_2 = 'san';
1317          $sa_in->lang_code_iso_639_3 = 'san';
1318          $sa_in->country_code = 'in';
1319          $sa_in->wp_locale = 'sa_IN';
1320          $sa_in->slug = 'sa-in';
1321  
1322          $sd = new GP_Locale();
1323          $sd->english_name = 'Sindhi';
1324          $sd->native_name = 'سندھ';
1325          $sd->lang_code_iso_639_1 = 'sd';
1326          $sd->lang_code_iso_639_2 = 'snd';
1327          $sd->country_code = 'pk';
1328          $sd->wp_locale = 'sd_PK';
1329          $sd->slug = 'sd';
1330          $sd->google_code = 'sd';
1331  
1332          $si = new GP_Locale();
1333          $si->english_name = 'Sinhala';
1334          $si->native_name = 'සිංහල';
1335          $si->lang_code_iso_639_1 = 'si';
1336          $si->lang_code_iso_639_2 = 'sin';
1337          $si->country_code = 'lk';
1338          $si->wp_locale = 'si_LK';
1339          $si->slug = 'si';
1340          $si->google_code = 'si';
1341  
1342          $sk = new GP_Locale();
1343          $sk->english_name = 'Slovak';
1344          $sk->native_name = 'Slovenčina';
1345          $sk->lang_code_iso_639_1 = 'sk';
1346          $sk->lang_code_iso_639_2 = 'slk';
1347          $sk->country_code = 'sk';
1348          $sk->slug = 'sk';
1349          $sk->wp_locale = 'sk_SK';
1350          $sk->google_code = 'sk';
1351          $sk->nplurals = 3;
1352          $sk->plural_expression = '(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2';
1353  
1354          $sl = new GP_Locale();
1355          $sl->english_name = 'Slovenian';
1356          $sl->native_name = 'slovenščina';
1357          $sl->lang_code_iso_639_1 = 'sl';
1358          $sl->lang_code_iso_639_2 = 'slv';
1359          $sl->country_code = 'si';
1360          $sl->wp_locale = 'sl_SI';
1361          $sl->slug = 'sl';
1362          $sl->google_code = 'sl';
1363          $sl->nplurals = 4;
1364          $sl->plural_expression = '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3)';
1365          
1366          $so = new GP_Locale();
1367          $so->english_name = 'Somali';
1368          $so->native_name = 'Afsoomaali';
1369          $so->lang_code_iso_639_1 = 'so';
1370          $so->lang_code_iso_639_2 = 'som';
1371          $so->lang_code_iso_639_3 = 'som';        
1372          $so->country_code = 'so';
1373          $so->wp_locale = 'so_SO';
1374          $so->slug = 'so';
1375          $so->google_code = 'so';
1376          
1377          $sq = new GP_Locale();
1378          $sq->english_name = 'Albanian';
1379          $sq->native_name = 'Shqip';
1380          $sq->lang_code_iso_639_1 = 'sq';
1381          $sq->lang_code_iso_639_2 = 'sqi';
1382          $sq->wp_locale = 'sq';
1383          $sq->country_code = 'al';
1384          $sq->slug = 'sq';
1385          $sq->google_code = 'sq';
1386  
1387          $sr = new GP_Locale();
1388          $sr->english_name = 'Serbian';
1389          $sr->native_name = 'Српски језик';
1390          $sr->lang_code_iso_639_1 = 'sr';
1391          $sr->lang_code_iso_639_2 = 'srp';
1392          $sr->country_code = 'rs';
1393          $sr->wp_locale = 'sr_RS';
1394          $sr->slug = 'sr';
1395          $sr->google_code = 'sr';
1396          $sr->nplurals = 3;
1397          $sr->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1398  
1399          $srd = new GP_Locale();
1400          $srd->english_name = 'Sardinian';
1401          $srd->native_name = 'sardu';
1402          $srd->lang_code_iso_639_1 = 'sc';
1403          $srd->lang_code_iso_639_2 = 'srd';
1404          $srd->country_code = 'srd';
1405          $srd->wp_locale = 'srd';
1406          $srd->slug = 'srd';
1407  
1408          $su = new GP_Locale();
1409          $su->english_name = 'Sundanese';
1410          $su->native_name = 'Basa Sunda';
1411          $su->lang_code_iso_639_1 = 'su';
1412          $su->lang_code_iso_639_2 = 'sun';
1413          $su->country_code = 'id';
1414          $su->wp_locale = 'su_ID';
1415          $su->slug = 'su';
1416          $su->nplurals = 1;
1417          $su->plural_expression = '0';
1418  
1419          $sv = new GP_Locale();
1420          $sv->english_name = 'Swedish';
1421          $sv->native_name = 'Svenska';
1422          $sv->lang_code_iso_639_1 = 'sv';
1423          $sv->lang_code_iso_639_2 = 'swe';
1424          $sv->country_code = 'se';
1425          $sv->wp_locale = 'sv_SE';
1426          $sv->slug = 'sv';
1427          $sv->google_code = 'sv';
1428  
1429          $sw = new GP_Locale();
1430          $sw->english_name = 'Swahili';
1431          $sw->native_name = 'Kiswahili';
1432          $sw->lang_code_iso_639_1 = 'sw';
1433          $sw->lang_code_iso_639_2 = 'swa';
1434          $sw->country_code = '';
1435          $sw->wp_locale = 'sw';
1436          $sw->slug = 'sw';
1437          $sw->google_code = 'sw';
1438  
1439          $ta = new GP_Locale();
1440          $ta->english_name = 'Tamil';
1441          $ta->native_name = 'தமிழ்';
1442          $ta->lang_code_iso_639_1 = 'ta';
1443          $ta->lang_code_iso_639_2 = 'tam';
1444          $ta->country_code = 'IN';
1445          $ta->wp_locale = 'ta_IN';
1446          $ta->slug = 'ta';
1447          $ta->google_code = 'ta';
1448          
1449          $ta_lk = new GP_Locale();
1450          $ta_lk->english_name = 'Tamil (Sri Lanka)';
1451          $ta_lk->native_name = 'தமிழ்';
1452          $ta_lk->lang_code_iso_639_1 = 'ta';
1453          $ta_lk->lang_code_iso_639_2 = 'tam';
1454          $ta_lk->country_code = 'LK';
1455          $ta_lk->wp_locale = 'ta_LK';
1456          $ta_lk->slug = 'ta-lk';
1457          $ta_lk->google_code = 'ta';
1458  
1459          $te = new GP_Locale();
1460          $te->english_name = 'Telugu';
1461          $te->native_name = 'తెలుగు';
1462          $te->lang_code_iso_639_1 = 'te';
1463          $te->lang_code_iso_639_2 = 'tel';
1464          $te->country_code = '';
1465          $te->wp_locale = 'te';
1466          $te->slug = 'te';
1467          $te->google_code = 'te';
1468  
1469          $th = new GP_Locale();
1470          $th->english_name = 'Thai';
1471          $th->native_name = 'ไทย';
1472          $th->lang_code_iso_639_1 = 'th';
1473          $th->lang_code_iso_639_2 = 'tha';
1474          $th->country_code = '';
1475          $th->wp_locale = 'th';
1476          $th->slug = 'th';
1477          $th->google_code = 'th';
1478          $th->nplurals = 1;
1479          $th->plural_expression = '0';
1480          
1481          $tlh = new GP_Locale();
1482          $tlh->english_name = 'Klingon';
1483          $tlh->native_name = 'TlhIngan';
1484          $tlh->lang_code_iso_639_1 = '';
1485          $tlh->lang_code_iso_639_2 = 'tlh';
1486          $tlh->country_code = '';
1487          $tlh->slug = 'tlh';
1488          $tlh->nplurals = 1;
1489          $tlh->plural_expression = '0';
1490  
1491          $tl = new GP_Locale();
1492          $tl->english_name = 'Tagalog';
1493          $tl->native_name = 'Tagalog';
1494          $tl->lang_code_iso_639_1 = 'tl';
1495          $tl->lang_code_iso_639_2 = 'tgl';
1496          $tl->country_code = 'ph';
1497          $tl->slug = 'tl';
1498          $tl->google_code = 'tl';
1499  
1500          $tr = new GP_Locale();
1501          $tr->english_name = 'Turkish';
1502          $tr->native_name = 'Türkçe';
1503          $tr->lang_code_iso_639_1 = 'tr';
1504          $tr->lang_code_iso_639_2 = 'tur';
1505          $tr->country_code = 'tr';
1506          $tr->wp_locale = 'tr_TR';
1507          $tr->slug = 'tr';
1508          $tr->google_code = 'tr';
1509          $tr->nplurals = 2;
1510          $tr->plural_expression = '(n > 1)';
1511  
1512          $udm = new GP_Locale();
1513          $udm->english_name = 'Udmurt';
1514          $udm->native_name = 'удмурт кыл';
1515          $udm->lang_code_iso_639_1 = null;
1516          $udm->lang_code_iso_639_2 = 'udm';
1517          $udm->country_code = '';
1518          $udm->slug = 'udm';
1519  
1520          $ug = new GP_Locale();
1521          $ug->english_name = 'Uighur';
1522          $ug->native_name = 'Uyƣurqə';
1523          $ug->lang_code_iso_639_1 = 'ug';
1524          $ug->lang_code_iso_639_2 = 'uig';
1525          $ug->country_code = 'cn';
1526          $ug->wp_locale = 'ug_CN';
1527          $ug->slug = 'ug';
1528          $ug->google_code = 'ug';
1529  
1530          $uk = new GP_Locale();
1531          $uk->english_name = 'Ukrainian';
1532          $uk->native_name = 'Українська';
1533          $uk->lang_code_iso_639_1 = 'uk';
1534          $uk->lang_code_iso_639_2 = 'ukr';
1535          $uk->country_code = 'ua';
1536          $uk->wp_locale = 'uk';
1537          $uk->slug = 'uk';
1538          $uk->google_code = 'uk';
1539          $uk->nplurals = 3;
1540          $uk->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1541  
1542          $ur = new GP_Locale();
1543          $ur->english_name = 'Urdu';
1544          $ur->native_name = 'اردو';
1545          $ur->lang_code_iso_639_1 = 'ur';
1546          $ur->lang_code_iso_639_2 = 'urd';
1547          $ur->country_code = '';
1548          $ur->wp_locale = 'ur';
1549          $ur->slug = 'ur';
1550          $ur->google_code = 'ur';
1551  
1552          $uz = new GP_Locale();
1553          $uz->english_name = 'Uzbek';
1554          $uz->native_name = 'O‘zbekcha';
1555          $uz->lang_code_iso_639_1 = 'uz';
1556          $uz->lang_code_iso_639_2 = 'uzb';
1557          $uz->country_code = 'uz';
1558          $uz->wp_locale = 'uz_UZ';
1559          $uz->slug = 'uz';
1560          $uz->google_code = 'uz';
1561          $uz->rtl = true;
1562          $uz->nplurals = 1;
1563          $uz->plural_expression = '0';
1564  
1565          $vec = new GP_Locale();
1566          $vec->english_name = 'Venetian';
1567          $vec->native_name = 'vèneta';
1568          $vec->lang_code_iso_639_1 = null;
1569          $vec->lang_code_iso_639_2 = 'roa';
1570          $vec->country_code = 'uz';
1571          $vec->slug = 'vec';
1572  
1573          $vi = new GP_Locale();
1574          $vi->english_name = 'Vietnamese';
1575          $vi->native_name = 'Tiếng Việt';
1576          $vi->lang_code_iso_639_1 = 'vi';
1577          $vi->lang_code_iso_639_2 = 'vie';
1578          $vi->country_code = 'vn';
1579          $vi->wp_locale = 'vi';
1580          $vi->slug = 'vi';
1581          $vi->google_code = 'vi';
1582          $vi->nplurals = 1;
1583          $vi->plural_expression = '0';
1584  
1585          $wa = new GP_Locale();
1586          $wa->english_name = 'Walloon';
1587          $wa->native_name = 'Walon';
1588          $wa->lang_code_iso_639_1 = 'wa';
1589          $wa->lang_code_iso_639_2 = 'wln';
1590          $wa->country_code = 'be';
1591          $wa->wp_locale = 'wa';
1592          $wa->slug = 'wa';
1593  
1594          $xmf = new GP_Locale();
1595          $xmf->english_name = 'Mingrelian';
1596          $xmf->native_name = 'მარგალური ნინა';
1597          $xmf->lang_code_iso_639_1 = null;
1598          $xmf->lang_code_iso_639_2 = null;
1599          $xmf->lang_code_iso_639_3 = 'xmf';
1600          $xmf->country_code = 'ge';
1601          $xmf->wp_locale = 'xmf';
1602          $xmf->slug = 'xmf';
1603  
1604          $yi = new GP_Locale();
1605          $yi->english_name = 'Yiddish';
1606          $yi->native_name = 'ייִדיש';
1607          $yi->lang_code_iso_639_1 = 'yi';
1608          $yi->lang_code_iso_639_2 = 'yid';
1609          $yi->country_code = '';
1610          $yi->slug = 'yi';
1611          $yi->google_code = 'yi';
1612          $yi->rtl = true;
1613  
1614          $zh_cn = new GP_Locale();
1615          $zh_cn->english_name = 'Chinese (China)';
1616          $zh_cn->native_name = '中文';
1617          $zh_cn->lang_code_iso_639_1 = 'zh';
1618          $zh_cn->lang_code_iso_639_2 = 'zho';
1619          $zh_cn->country_code = 'cn';
1620          $zh_cn->wp_locale = 'zh_CN';
1621          $zh_cn->slug = 'zh-cn';
1622          $zh_cn->google_code = 'zh-CN';
1623          $zh_cn->nplurals = 1;
1624          $zh_cn->plural_expression = '0';
1625  
1626          $zh_hk = new GP_Locale();
1627          $zh_hk->english_name = 'Chinese (Hong Kong)';
1628          $zh_hk->native_name = '香港中文版    ';
1629          $zh_hk->lang_code_iso_639_1 = 'zh';
1630          $zh_hk->lang_code_iso_639_2 = 'zho';
1631          $zh_hk->country_code = 'hk';
1632          $zh_hk->wp_locale = 'zh_HK';
1633          $zh_hk->slug = 'zh-hk';
1634          $zh_hk->nplurals = 1;
1635          $zh_hk->plural_expression = '0';
1636  
1637          $zh_sg = new GP_Locale();
1638          $zh_sg->english_name = 'Chinese (Singapore)';
1639          $zh_sg->native_name = '中文';
1640          $zh_sg->lang_code_iso_639_1 = 'zh';
1641          $zh_sg->lang_code_iso_639_2 = 'zho';
1642          $zh_sg->country_code = 'sg';
1643          $zh_sg->slug = 'zh-sg';
1644          $zh_sg->nplurals = 1;
1645          $zh_sg->plural_expression = '0';
1646  
1647          $zh_tw = new GP_Locale();
1648          $zh_tw->english_name = 'Chinese (Taiwan)';
1649          $zh_tw->native_name = '中文';
1650          $zh_tw->lang_code_iso_639_1 = 'zh';
1651          $zh_tw->lang_code_iso_639_2 = 'zho';
1652          $zh_tw->country_code = 'tw';
1653          $zh_tw->slug = 'zh-tw';
1654          $zh_tw->wp_locale= 'zh_TW';
1655          $zh_tw->google_code = 'zh-TW';
1656          $zh_tw->nplurals = 1;
1657          $zh_tw->plural_expression = '0';
1658  
1659          $zh = new GP_Locale();
1660          $zh->english_name = 'Chinese';
1661          $zh->native_name = '中文';
1662          $zh->lang_code_iso_639_1 = 'zh';
1663          $zh->lang_code_iso_639_2 = 'zho';
1664          $zh->country_code = '';
1665          $zh->slug = 'zh';
1666          $zh->nplurals = 1;
1667          $zh->plural_expression = '0';
1668          
1669          foreach( get_defined_vars() as $locale ) {
1670              $this->locales[$locale->slug] = $locale;
1671          }
1672      }
1673      
1674      function &instance() {
1675          if ( !isset( $GLOBALS['gp_locales'] ) )
1676              $GLOBALS['gp_locales'] = &new GP_Locales();
1677          return $GLOBALS['gp_locales'];
1678      }
1679      
1680  	function locales() {
1681          $instance = GP_Locales::instance();
1682          return $instance->locales;
1683      }
1684      
1685  	function exists( $slug ) {
1686          $instance = GP_Locales::instance();
1687          return isset( $instance->locales[$slug] );
1688      }
1689      
1690  	function by_slug( $slug ) {
1691          $instance = GP_Locales::instance();
1692          return isset( $instance->locales[$slug] )? $instance->locales[$slug] : null;
1693      }
1694  
1695  	function by_field( $field_name, $field_value ) {
1696          $instance = GP_Locales::instance();
1697          $result = false;
1698          foreach( $instance->locales() as $locale ) {
1699              if ( isset( $locale->$field_name ) && $locale->$field_name == $field_value ) {
1700                  $result = $locale;
1701                  break;
1702              }
1703          }
1704          return $result;
1705      }
1706  }


Generated: Thu May 24 03:59:35 2012 Hosted by follow the white rabbit.