[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/locales/ -> locales.php (source)

   1  <?php
   2  if ( ! class_exists( 'GP_Locale' ) ) :
   3  
   4  class GP_Locale {
   5      public $english_name;
   6      public $native_name;
   7      public $text_direction = 'ltr';
   8      public $lang_code_iso_639_1 = null;
   9      public $lang_code_iso_639_2 = null;
  10      public $lang_code_iso_639_3 = null;
  11      public $country_code;
  12      public $wp_locale;
  13      public $slug;
  14      public $nplurals = 2;
  15      public $plural_expression = 'n != 1';
  16      public $google_code = null;
  17      public $preferred_sans_serif_font_family = null;
  18      public $facebook_locale = null;
  19  
  20      /**
  21       * The variant root for this locale.
  22       *
  23       * @since 3.0.0
  24       *
  25       * @var string
  26       */
  27      public $variant_root = null;
  28  
  29      /**
  30       * The variants of this locale.
  31       *
  32       * @since 3.0.0
  33       *
  34       * @var array
  35       */
  36      public $variants = null;
  37  
  38      // TODO: days, months, decimals, quotes
  39  
  40      private $_index_for_number;
  41  
  42  	public function __construct( $args = array() ) {
  43          foreach( $args as $key => $value ) {
  44              $this->$key = $value;
  45          }
  46      }
  47  
  48  	public static function __set_state( $state ) {
  49          return new GP_Locale( $state );
  50      }
  51  
  52      /**
  53       * Make deprecated properties checkable for backwards compatibility.
  54       *
  55       * @param string $name Property to check if set.
  56       * @return bool Whether the property is set.
  57       */
  58  	public function __isset( $name ) {
  59          if ( 'rtl' == $name ) {
  60              return isset( $this->text_direction );
  61          }
  62      }
  63  
  64      /**
  65       * Make deprecated properties readable for backwards compatibility.
  66       *
  67       * @param string $name Property to get.
  68       * @return mixed Property.
  69       */
  70  	public function __get( $name ) {
  71          if ( 'rtl' == $name ) {
  72              return ( 'rtl' === $this->text_direction );
  73          }
  74      }
  75  
  76  	public function combined_name() {
  77          /* translators: combined name for locales: 1: name in English, 2: native name */
  78          return sprintf( _x( '%1$s/%2$s', 'locales' ), $this->english_name, $this->native_name );
  79      }
  80  
  81  	public function numbers_for_index( $index, $how_many = 3, $test_up_to = 1000 ) {
  82          $numbers = array();
  83  
  84          for( $number = 0; $number < $test_up_to; ++$number ) {
  85              if ( $this->index_for_number( $number ) == $index ) {
  86                  $numbers[] = $number;
  87  
  88                  if ( count( $numbers ) >= $how_many ) {
  89                      break;
  90                  }
  91              }
  92          }
  93  
  94          return $numbers;
  95      }
  96  
  97  	public function index_for_number( $number ) {
  98          if ( ! isset( $this->_index_for_number ) ) {
  99              $gettext = new Gettext_Translations;
 100              $expression = $gettext->parenthesize_plural_exression( $this->plural_expression );
 101              $this->_index_for_number = $gettext->make_plural_form_function( $this->nplurals, $expression );
 102          }
 103  
 104          $f = $this->_index_for_number;
 105  
 106          return $f( $number );
 107      }
 108  
 109  }
 110  
 111  endif;
 112  
 113  if ( ! class_exists( 'GP_Locales' ) ) :
 114  
 115  class GP_Locales {
 116  
 117      public $locales = array();
 118  
 119  	public function __construct() {
 120          $aa = new GP_Locale();
 121          $aa->english_name = 'Afar';
 122          $aa->native_name = 'Afaraf';
 123          $aa->lang_code_iso_639_1 = 'aa';
 124          $aa->lang_code_iso_639_2 = 'aar';
 125          $aa->slug = 'aa';
 126  
 127          $ae = new GP_Locale();
 128          $ae->english_name = 'Avestan';
 129          $ae->native_name = 'Avesta';
 130          $ae->lang_code_iso_639_1 = 'ae';
 131          $ae->lang_code_iso_639_2 = 'ave';
 132          $ae->slug = 'ae';
 133  
 134          $af = new GP_Locale();
 135          $af->english_name = 'Afrikaans';
 136          $af->native_name = 'Afrikaans';
 137          $af->lang_code_iso_639_1 = 'af';
 138          $af->lang_code_iso_639_2 = 'afr';
 139          $af->country_code = 'za';
 140          $af->wp_locale = 'af';
 141          $af->slug = 'af';
 142          $af->google_code = 'af';
 143          $af->facebook_locale = 'af_ZA';
 144  
 145          $ak = new GP_Locale();
 146          $ak->english_name = 'Akan';
 147          $ak->native_name = 'Akan';
 148          $ak->lang_code_iso_639_1 = 'ak';
 149          $ak->lang_code_iso_639_2 = 'aka';
 150          $ak->wp_locale = 'ak';
 151          $ak->slug = 'ak';
 152          $ak->facebook_locale = 'ak_GH';
 153  
 154          $am = new GP_Locale();
 155          $am->english_name = 'Amharic';
 156          $am->native_name = 'አማርኛ';
 157          $am->lang_code_iso_639_1 = 'am';
 158          $am->lang_code_iso_639_2 = 'amh';
 159          $am->country_code = 'et';
 160          $am->wp_locale = 'am';
 161          $am->slug = 'am';
 162          $am->facebook_locale = 'am_ET';
 163  
 164          $an = new GP_Locale();
 165          $an->english_name = 'Aragonese';
 166          $an->native_name = 'Aragonés';
 167          $an->lang_code_iso_639_1 = 'an';
 168          $an->lang_code_iso_639_2 = 'arg';
 169          $an->country_code = 'es';
 170          $an->slug = 'an';
 171  
 172          $ar = new GP_Locale();
 173          $ar->english_name = 'Arabic';
 174          $ar->native_name = 'العربية';
 175          $ar->lang_code_iso_639_1 = 'ar';
 176          $ar->lang_code_iso_639_2 = 'ara';
 177          $ar->wp_locale = 'ar';
 178          $ar->slug = 'ar';
 179          $ar->nplurals = 6;
 180          $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';
 181          $ar->text_direction = 'rtl';
 182          $ar->preferred_sans_serif_font_family = 'Tahoma';
 183          $ar->google_code = 'ar';
 184          $ar->facebook_locale = 'ar_AR';
 185  
 186          $arq = new GP_Locale();
 187          $arq->english_name = 'Algerian Arabic';
 188          $arq->native_name = 'الدارجة الجزايرية';
 189          $arq->lang_code_iso_639_1 = 'ar';
 190          $arq->lang_code_iso_639_3 = 'arq';
 191          $arq->country_code = 'dz';
 192          $arq->wp_locale = 'arq';
 193          $arq->slug = 'arq';
 194          $arq->nplurals = 6;
 195          $arq->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';
 196          $arq->text_direction = 'rtl';
 197          $arq->variant_root = $ar->slug;
 198          $ar->variants[ $arq->slug ] = $arq->english_name;
 199  
 200          $ary = new GP_Locale();
 201          $ary->english_name = 'Moroccan Arabic';
 202          $ary->native_name = 'العربية المغربية';
 203          $ary->lang_code_iso_639_1 = 'ar';
 204          $ary->lang_code_iso_639_3 = 'ary';
 205          $ary->country_code = 'ma';
 206          $ary->wp_locale = 'ary';
 207          $ary->slug = 'ary';
 208          $ary->nplurals = 6;
 209          $ary->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';
 210          $ary->text_direction = 'rtl';
 211          $ary->variant_root = $ar->slug;
 212          $ar->variants[ $ary->slug ] = $ary->english_name;
 213  
 214          $as = new GP_Locale();
 215          $as->english_name = 'Assamese';
 216          $as->native_name = 'অসমীয়া';
 217          $as->lang_code_iso_639_1 = 'as';
 218          $as->lang_code_iso_639_2 = 'asm';
 219          $as->lang_code_iso_639_3 = 'asm';
 220          $as->country_code = 'in';
 221          $as->wp_locale = 'as';
 222          $as->slug = 'as';
 223          $as->facebook_locale = 'as_IN';
 224  
 225          $ast = new GP_Locale();
 226          $ast->english_name = 'Asturian';
 227          $ast->native_name = 'Asturianu';
 228          $ast->lang_code_iso_639_2 = 'ast';
 229          $ast->lang_code_iso_639_3 = 'ast';
 230          $ast->country_code = 'es';
 231          $ast->wp_locale = 'ast';
 232          $ast->slug = 'ast';
 233  
 234          $av = new GP_Locale();
 235          $av->english_name = 'Avaric';
 236          $av->native_name = 'авар мацӀ';
 237          $av->lang_code_iso_639_1 = 'av';
 238          $av->lang_code_iso_639_2 = 'ava';
 239          $av->slug = 'av';
 240  
 241          $ay = new GP_Locale();
 242          $ay->english_name = 'Aymara';
 243          $ay->native_name = 'aymar aru';
 244          $ay->lang_code_iso_639_1 = 'ay';
 245          $ay->lang_code_iso_639_2 = 'aym';
 246          $ay->slug = 'ay';
 247          $ay->nplurals = 1;
 248          $ay->plural_expression = '0';
 249          $ay->facebook_locale = 'ay_BO';
 250  
 251          $az = new GP_Locale();
 252          $az->english_name = 'Azerbaijani';
 253          $az->native_name = 'Azərbaycan dili';
 254          $az->lang_code_iso_639_1 = 'az';
 255          $az->lang_code_iso_639_2 = 'aze';
 256          $az->country_code = 'az';
 257          $az->wp_locale = 'az';
 258          $az->slug = 'az';
 259          $az->google_code = 'az';
 260          $az->facebook_locale = 'az_AZ';
 261  
 262          $azb = new GP_Locale();
 263          $azb->english_name = 'South Azerbaijani';
 264          $azb->native_name = 'گؤنئی آذربایجان';
 265          $azb->lang_code_iso_639_1 = 'az';
 266          $azb->lang_code_iso_639_3 = 'azb';
 267          $azb->country_code = 'ir';
 268          $azb->wp_locale = 'azb';
 269          $azb->slug = 'azb';
 270          $azb->text_direction = 'rtl';
 271          $azb->variant_root = $az->slug;
 272          $az->variants[ $azb->slug ] = $azb->english_name;
 273  
 274          $az_tr = new GP_Locale();
 275          $az_tr->english_name = 'Azerbaijani (Turkey)';
 276          $az_tr->native_name = 'Azərbaycan Türkcəsi';
 277          $az_tr->lang_code_iso_639_1 = 'az';
 278          $az_tr->lang_code_iso_639_2 = 'aze';
 279          $az_tr->country_code = 'tr';
 280          $az_tr->wp_locale = 'az_TR';
 281          $az_tr->slug = 'az-tr';
 282          $az_tr->variant_root = $az->slug;
 283          $az->variants[ $az_tr->slug ] = $az_tr->english_name;
 284  
 285          $ba = new GP_Locale();
 286          $ba->english_name = 'Bashkir';
 287          $ba->native_name = 'башҡорт теле';
 288          $ba->lang_code_iso_639_1 = 'ba';
 289          $ba->lang_code_iso_639_2 = 'bak';
 290          $ba->wp_locale = 'ba';
 291          $ba->slug = 'ba';
 292  
 293          $bal = new GP_Locale();
 294          $bal->english_name = 'Catalan (Balear)';
 295          $bal->native_name = 'Català (Balear)';
 296          $bal->lang_code_iso_639_2 = 'bal';
 297          $bal->country_code = 'es';
 298          $bal->wp_locale = 'bal';
 299          $bal->slug = 'bal';
 300  
 301          $bcc = new GP_Locale();
 302          $bcc->english_name = 'Balochi Southern';
 303          $bcc->native_name = 'بلوچی مکرانی';
 304          $bcc->lang_code_iso_639_3 = 'bcc';
 305          $bcc->country_code = 'pk';
 306          $bcc->wp_locale = 'bcc';
 307          $bcc->slug = 'bcc';
 308          $bcc->nplurals = 1;
 309          $bcc->plural_expression = '0';
 310          $bcc->text_direction = 'rtl';
 311  
 312          $be = new GP_Locale();
 313          $be->english_name = 'Belarusian';
 314          $be->native_name = 'Беларуская мова';
 315          $be->lang_code_iso_639_1 = 'be';
 316          $be->lang_code_iso_639_2 = 'bel';
 317          $be->country_code = 'by';
 318          $be->wp_locale = 'bel';
 319          $be->slug = 'bel';
 320          $be->nplurals = 3;
 321          $be->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
 322          $be->google_code = 'be';
 323          $be->facebook_locale = 'be_BY';
 324  
 325          $bg = new GP_Locale();
 326          $bg->english_name = 'Bulgarian';
 327          $bg->native_name = 'Български';
 328          $bg->lang_code_iso_639_1 = 'bg';
 329          $bg->lang_code_iso_639_2 = 'bul';
 330          $bg->country_code = 'bg';
 331          $bg->wp_locale = 'bg_BG';
 332          $bg->slug = 'bg';
 333          $bg->google_code = 'bg';
 334          $bg->facebook_locale = 'bg_BG';
 335  
 336          $bh = new GP_Locale();
 337          $bh->english_name = 'Bihari';
 338          $bh->native_name = 'भोजपुरी';
 339          $bh->lang_code_iso_639_1 = 'bh';
 340          $bh->lang_code_iso_639_2 = 'bih';
 341          $bh->slug = 'bh';
 342  
 343          $bi = new GP_Locale();
 344          $bi->english_name = 'Bislama';
 345          $bi->native_name = 'Bislama';
 346          $bi->lang_code_iso_639_1 = 'bi';
 347          $bi->lang_code_iso_639_2 = 'bis';
 348          $bi->country_code = 'vu';
 349          $bi->slug = 'bi';
 350  
 351          $bm = new GP_Locale();
 352          $bm->english_name = 'Bambara';
 353          $bm->native_name = 'Bamanankan';
 354          $bm->lang_code_iso_639_1 = 'bm';
 355          $bm->lang_code_iso_639_2 = 'bam';
 356          $bm->slug = 'bm';
 357  
 358          $bn_bd = new GP_Locale();
 359          $bn_bd->english_name = 'Bengali';
 360          $bn_bd->native_name = 'বাংলা';
 361          $bn_bd->lang_code_iso_639_1 = 'bn';
 362          $bn_bd->country_code = 'bn';
 363          $bn_bd->wp_locale = 'bn_BD';
 364          $bn_bd->slug = 'bn';
 365          $bn_bd->google_code = 'bn';
 366          $bn_bd->facebook_locale = 'bn_IN';
 367  
 368          $bo = new GP_Locale();
 369          $bo->english_name = 'Tibetan';
 370          $bo->native_name = 'བོད་ཡིག';
 371          $bo->lang_code_iso_639_1 = 'bo';
 372          $bo->lang_code_iso_639_2 = 'tib';
 373          $bo->wp_locale = 'bo';
 374          $bo->slug = 'bo';
 375          $bo->nplurals = 1;
 376          $bo->plural_expression = '0';
 377  
 378          $br = new GP_Locale();
 379          $br->english_name = 'Breton';
 380          $br->native_name = 'Brezhoneg';
 381          $br->lang_code_iso_639_1 = 'br';
 382          $br->lang_code_iso_639_2 = 'bre';
 383          $br->lang_code_iso_639_3 = 'bre';
 384          $br->country_code = 'fr';
 385          $br->wp_locale = 'bre';
 386          $br->slug = 'br';
 387          $br->nplurals = 2;
 388          $br->plural_expression = '(n > 1)';
 389          $br->facebook_locale = 'br_FR';
 390  
 391          $bs = new GP_Locale();
 392          $bs->english_name = 'Bosnian';
 393          $bs->native_name = 'Bosanski';
 394          $bs->lang_code_iso_639_1 = 'bs';
 395          $bs->lang_code_iso_639_2 = 'bos';
 396          $bs->country_code = 'ba';
 397          $bs->wp_locale = 'bs_BA';
 398          $bs->slug = 'bs';
 399          $bs->nplurals = 3;
 400          $bs->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
 401          $bs->google_code = 'bs';
 402          $bs->facebook_locale = 'bs_BA';
 403  
 404          $ca = new GP_Locale();
 405          $ca->english_name = 'Catalan';
 406          $ca->native_name = 'Català';
 407          $ca->lang_code_iso_639_1 = 'ca';
 408          $ca->lang_code_iso_639_2 = 'cat';
 409          $ca->wp_locale = 'ca';
 410          $ca->slug = 'ca';
 411          $ca->google_code = 'ca';
 412          $ca->facebook_locale = 'ca_ES';
 413  
 414          $ce = new GP_Locale();
 415          $ce->english_name = 'Chechen';
 416          $ce->native_name = 'Нохчийн мотт';
 417          $ce->lang_code_iso_639_1 = 'ce';
 418          $ce->lang_code_iso_639_2 = 'che';
 419          $ce->slug = 'ce';
 420  
 421          $ceb = new GP_Locale();
 422          $ceb->english_name = 'Cebuano';
 423          $ceb->native_name = 'Cebuano';
 424          $ceb->lang_code_iso_639_2 = 'ceb';
 425          $ceb->lang_code_iso_639_3 = 'ceb';
 426          $ceb->country_code = 'ph';
 427          $ceb->wp_locale = 'ceb';
 428          $ceb->slug = 'ceb';
 429          $ceb->facebook_locale = 'cx_PH';
 430  
 431          $ch = new GP_Locale();
 432          $ch->english_name = 'Chamorro';
 433          $ch->native_name = 'Chamoru';
 434          $ch->lang_code_iso_639_1 = 'ch';
 435          $ch->lang_code_iso_639_2 = 'cha';
 436          $ch->slug = 'ch';
 437  
 438          $ckb = new GP_Locale();
 439          $ckb->english_name = 'Kurdish (Sorani)';
 440          $ckb->native_name = 'كوردی‎';
 441          $ckb->lang_code_iso_639_1 = 'ku';
 442          $ckb->lang_code_iso_639_3 = 'ckb';
 443          $ckb->country_code = 'iq';
 444          $ckb->wp_locale = 'ckb';
 445          $ckb->slug = 'ckb';
 446          $ckb->text_direction = 'rtl';
 447          $ckb->facebook_locale = 'cb_IQ';
 448  
 449          $co = new GP_Locale();
 450          $co->english_name = 'Corsican';
 451          $co->native_name = 'Corsu';
 452          $co->lang_code_iso_639_1 = 'co';
 453          $co->lang_code_iso_639_2 = 'cos';
 454          $co->country_code = 'it';
 455          $co->wp_locale = 'co';
 456          $co->slug = 'co';
 457  
 458          $cr = new GP_Locale();
 459          $cr->english_name = 'Cree';
 460          $cr->native_name = 'ᓀᐦᐃᔭᐍᐏᐣ';
 461          $cr->lang_code_iso_639_1 = 'cr';
 462          $cr->lang_code_iso_639_2 = 'cre';
 463          $cr->country_code = 'ca';
 464          $cr->slug = 'cr';
 465  
 466          $cs = new GP_Locale();
 467          $cs->english_name = 'Czech';
 468          $cs->native_name = 'Čeština';
 469          $cs->lang_code_iso_639_1 = 'cs';
 470          $cs->lang_code_iso_639_2 = 'ces';
 471          $cs->country_code = 'cz';
 472          $cs->wp_locale = 'cs_CZ';
 473          $cs->slug = 'cs';
 474          $cs->nplurals = 3;
 475          $cs->plural_expression = '(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2';
 476          $cs->google_code = 'cs';
 477          $cs->facebook_locale = 'cs_CZ';
 478  
 479          $csb = new GP_Locale();
 480          $csb->english_name = 'Kashubian';
 481          $csb->native_name = 'Kaszëbsczi';
 482          $csb->lang_code_iso_639_2 = 'csb';
 483          $csb->slug = 'csb';
 484          $csb->nplurals = 3;
 485          $csb->plural_expression = 'n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2';
 486  
 487          $cu = new GP_Locale();
 488          $cu->english_name = 'Church Slavic';
 489          $cu->native_name = 'ѩзыкъ словѣньскъ';
 490          $cu->lang_code_iso_639_1 = 'cu';
 491          $cu->lang_code_iso_639_2 = 'chu';
 492          $cu->slug = 'cu';
 493  
 494          $cv = new GP_Locale();
 495          $cv->english_name = 'Chuvash';
 496          $cv->native_name = 'чӑваш чӗлхи';
 497          $cv->lang_code_iso_639_1 = 'cv';
 498          $cv->lang_code_iso_639_2 = 'chv';
 499          $cv->country_code = 'ru';
 500          $cv->slug = 'cv';
 501  
 502          $cy = new GP_Locale();
 503          $cy->english_name = 'Welsh';
 504          $cy->native_name = 'Cymraeg';
 505          $cy->lang_code_iso_639_1 = 'cy';
 506          $cy->lang_code_iso_639_2 = 'cym';
 507          $cy->country_code = 'gb';
 508          $cy->wp_locale = 'cy';
 509          $cy->slug = 'cy';
 510          $cy->nplurals = 4;
 511          $cy->plural_expression = '(n==1) ? 0 : (n==2) ? 1 : (n != 8 && n != 11) ? 2 : 3';
 512          $cy->google_code = 'cy';
 513          $cy->facebook_locale = 'cy_GB';
 514  
 515          $da = new GP_Locale();
 516          $da->english_name = 'Danish';
 517          $da->native_name = 'Dansk';
 518          $da->lang_code_iso_639_1 = 'da';
 519          $da->lang_code_iso_639_2 = 'dan';
 520          $da->country_code = 'dk';
 521          $da->wp_locale = 'da_DK';
 522          $da->slug = 'da';
 523          $da->google_code = 'da';
 524          $da->facebook_locale = 'da_DK';
 525  
 526          $de = new GP_Locale();
 527          $de->english_name = 'German';
 528          $de->native_name = 'Deutsch';
 529          $de->lang_code_iso_639_1 = 'de';
 530          $de->country_code = 'de';
 531          $de->wp_locale = 'de_DE';
 532          $de->slug = 'de';
 533          $de->google_code = 'de';
 534          $de->facebook_locale = 'de_DE';
 535  
 536          $de_ch = new GP_Locale();
 537          $de_ch->english_name = 'German (Switzerland)';
 538          $de_ch->native_name = 'Deutsch (Schweiz)';
 539          $de_ch->lang_code_iso_639_1 = 'de';
 540          $de_ch->country_code = 'ch';
 541          $de_ch->wp_locale = 'de_CH';
 542          $de_ch->slug = 'de-ch';
 543          $de_ch->google_code = 'de';
 544          $de_ch->variant_root = $de->slug;
 545          $de->variants[ $de_ch->slug ] = $de_ch->english_name;
 546  
 547          $dv = new GP_Locale();
 548          $dv->english_name = 'Dhivehi';
 549          $dv->native_name = 'ދިވެހި';
 550          $dv->lang_code_iso_639_1 = 'dv';
 551          $dv->lang_code_iso_639_2 = 'div';
 552          $dv->country_code = 'mv';
 553          $dv->wp_locale = 'dv';
 554          $dv->slug = 'dv';
 555          $dv->text_direction = 'rtl';
 556  
 557          $dzo = new GP_Locale();
 558          $dzo->english_name = 'Dzongkha';
 559          $dzo->native_name = 'རྫོང་ཁ';
 560          $dzo->lang_code_iso_639_1 = 'dz';
 561          $dzo->lang_code_iso_639_2 = 'dzo';
 562          $dzo->country_code = 'bt';
 563          $dzo->wp_locale = 'dzo';
 564          $dzo->slug = 'dzo';
 565          $dzo->nplurals = 1;
 566          $dzo->plural_expression = '0';
 567  
 568          $ewe = new GP_Locale();
 569          $ewe->english_name = 'Ewe';
 570          $ewe->native_name = 'Eʋegbe';
 571          $ewe->lang_code_iso_639_1 = 'ee';
 572          $ewe->lang_code_iso_639_2 = 'ewe';
 573          $ewe->lang_code_iso_639_3 = 'ewe';
 574          $ewe->country_code = 'gh';
 575          $ewe->wp_locale = 'ewe';
 576          $ewe->slug = 'ee';
 577  
 578          $el = new GP_Locale();
 579          $el->english_name = 'Greek';
 580          $el->native_name = 'Ελληνικά';
 581          $el->lang_code_iso_639_1 = 'el';
 582          $el->lang_code_iso_639_2 = 'ell';
 583          $el->country_code = 'gr';
 584          $el->wp_locale = 'el';
 585          $el->slug = 'el';
 586          $el->google_code = 'el';
 587          $el->facebook_locale = 'el_GR';
 588  
 589          $el_po = new GP_Locale();
 590          $el_po->english_name = 'Greek (Polytonic)';
 591          $el_po->native_name = 'Greek (Polytonic)'; // TODO.
 592          $el_po->country_code = 'gr';
 593          $el_po->slug = 'el-po';
 594          $el_po->variant_root = $el->slug;
 595          $el->variants[ $el->slug ] = $el->english_name;
 596  
 597          $emoji = new GP_Locale();
 598          $emoji->english_name = 'Emoji';
 599          $emoji->native_name = "\xf0\x9f\x8c\x8f\xf0\x9f\x8c\x8d\xf0\x9f\x8c\x8e (Emoji)";
 600          $emoji->lang_code_iso_639_2 = 'art';
 601          $emoji->wp_locale = 'art_xemoji';
 602          $emoji->slug = 'art-xemoji';
 603          $emoji->nplurals = 1;
 604          $emoji->plural_expression = '0';
 605  
 606          $en = new GP_Locale();
 607          $en->english_name = 'English (Unites States)';
 608          $en->native_name = 'English (United States)';
 609          $en->lang_code_iso_639_1 = 'en';
 610          $en->country_code = 'us';
 611          $en->wp_locale = 'en_US';
 612          $en->slug = 'en';
 613          $en->google_code = 'en';
 614          $en->facebook_locale = 'en_US';
 615  
 616          $en_au = new GP_Locale();
 617          $en_au->english_name = 'English (Australia)';
 618          $en_au->native_name = 'English (Australia)';
 619          $en_au->lang_code_iso_639_1 = 'en';
 620          $en_au->lang_code_iso_639_2 = 'eng';
 621          $en_au->lang_code_iso_639_3 = 'eng';
 622          $en_au->country_code = 'au';
 623          $en_au->wp_locale = 'en_AU';
 624          $en_au->slug = 'en-au';
 625          $en_au->google_code = 'en';
 626          $en_au->variant_root = $en->slug;
 627          $en->variants[ $en_au->slug ] = $en_au->english_name;
 628  
 629          $en_ca = new GP_Locale();
 630          $en_ca->english_name = 'English (Canada)';
 631          $en_ca->native_name = 'English (Canada)';
 632          $en_ca->lang_code_iso_639_1 = 'en';
 633          $en_ca->lang_code_iso_639_2 = 'eng';
 634          $en_ca->lang_code_iso_639_3 = 'eng';
 635          $en_ca->country_code = 'ca';
 636          $en_ca->wp_locale = 'en_CA';
 637          $en_ca->slug = 'en-ca';
 638          $en_ca->google_code = 'en';
 639          $en_ca->variant_root = $en->slug;
 640          $en->variants[ $en_ca->slug ] = $en_ca->english_name;
 641  
 642          $en_gb = new GP_Locale();
 643          $en_gb->english_name = 'English (UK)';
 644          $en_gb->native_name = 'English (UK)';
 645          $en_gb->lang_code_iso_639_1 = 'en';
 646          $en_gb->lang_code_iso_639_2 = 'eng';
 647          $en_gb->lang_code_iso_639_3 = 'eng';
 648          $en_gb->country_code = 'gb';
 649          $en_gb->wp_locale = 'en_GB';
 650          $en_gb->slug = 'en-gb';
 651          $en_gb->google_code = 'en';
 652          $en_gb->facebook_locale = 'en_GB';
 653          $en_gb->variant_root = $en->slug;
 654          $en->variants[ $en_gb->slug ] = $en_gb->english_name;
 655  
 656          $en_nz = new GP_Locale();
 657          $en_nz->english_name = 'English (New Zealand)';
 658          $en_nz->native_name = 'English (New Zealand)';
 659          $en_nz->lang_code_iso_639_1 = 'en';
 660          $en_nz->lang_code_iso_639_2 = 'eng';
 661          $en_nz->lang_code_iso_639_3 = 'eng';
 662          $en_nz->country_code = 'nz';
 663          $en_nz->wp_locale = 'en_NZ';
 664          $en_nz->slug = 'en-nz';
 665          $en_nz->google_code = 'en';
 666          $en_nz->variant_root = $en->slug;
 667          $en->variants[ $en_nz->slug ] = $en_nz->english_name;
 668  
 669          $en_za = new GP_Locale();
 670          $en_za->english_name = 'English (South Africa)';
 671          $en_za->native_name = 'English (South Africa)';
 672          $en_za->lang_code_iso_639_1 = 'en';
 673          $en_za->lang_code_iso_639_2 = 'eng';
 674          $en_za->lang_code_iso_639_3 = 'eng';
 675          $en_za->country_code = 'za';
 676          $en_za->wp_locale = 'en_ZA';
 677          $en_za->slug = 'en-za';
 678          $en_za->google_code = 'en';
 679          $en_za->variant_root = $en->slug;
 680          $en->variants[ $en_za->slug ] = $en_za->english_name;
 681  
 682          $eo = new GP_Locale();
 683          $eo->english_name = 'Esperanto';
 684          $eo->native_name = 'Esperanto';
 685          $eo->lang_code_iso_639_1 = 'eo';
 686          $eo->lang_code_iso_639_2 = 'epo';
 687          $eo->wp_locale = 'eo';
 688          $eo->slug = 'eo';
 689          $eo->google_code = 'eo';
 690          $eo->facebook_locale = 'eo_EO';
 691  
 692          $es = new GP_Locale();
 693          $es->english_name = 'Spanish (Spain)';
 694          $es->native_name = 'Español';
 695          $es->lang_code_iso_639_1 = 'es';
 696          $es->lang_code_iso_639_2 = 'spa';
 697          $es->lang_code_iso_639_3 = 'spa';
 698          $es->country_code = 'es';
 699          $es->wp_locale = 'es_ES';
 700          $es->slug = 'es';
 701          $es->google_code = 'es';
 702          $es->facebook_locale = 'es_ES';
 703  
 704          $es_ar = new GP_Locale();
 705          $es_ar->english_name = 'Spanish (Argentina)';
 706          $es_ar->native_name = 'Español de Argentina';
 707          $es_ar->lang_code_iso_639_1 = 'es';
 708          $es_ar->lang_code_iso_639_2 = 'spa';
 709          $es_ar->lang_code_iso_639_3 = 'spa';
 710          $es_ar->country_code = 'ar';
 711          $es_ar->wp_locale = 'es_AR';
 712          $es_ar->slug = 'es-ar';
 713          $es_ar->google_code = 'es';
 714          $es_ar->facebook_locale = 'es_LA';
 715          $es_ar->variant_root = $es->slug;
 716          $es->variants[ $es_ar->slug ] = $es_ar->english_name;
 717  
 718          $es_cl = new GP_Locale();
 719          $es_cl->english_name = 'Spanish (Chile)';
 720          $es_cl->native_name = 'Español de Chile';
 721          $es_cl->lang_code_iso_639_1 = 'es';
 722          $es_cl->lang_code_iso_639_2 = 'spa';
 723          $es_cl->lang_code_iso_639_3 = 'spa';
 724          $es_cl->country_code = 'cl';
 725          $es_cl->wp_locale = 'es_CL';
 726          $es_cl->slug = 'es-cl';
 727          $es_cl->google_code = 'es';
 728          $es_cl->facebook_locale = 'es_CL';
 729          $es_cl->variant_root = $es->slug;
 730          $es->variants[ $es_cl->slug ] = $es_cl->english_name;
 731  
 732          $es_co = new GP_Locale();
 733          $es_co->english_name = 'Spanish (Colombia)';
 734          $es_co->native_name = 'Español de Colombia';
 735          $es_co->lang_code_iso_639_1 = 'es';
 736          $es_co->lang_code_iso_639_2 = 'spa';
 737          $es_co->lang_code_iso_639_3 = 'spa';
 738          $es_co->country_code = 'co';
 739          $es_co->wp_locale = 'es_CO';
 740          $es_co->slug = 'es-co';
 741          $es_co->google_code = 'es';
 742          $es_co->facebook_locale = 'es_CO';
 743          $es_co->variant_root = $es->slug;
 744          $es->variants[ $es_co->slug ] = $es_co->english_name;
 745  
 746          $es_cr = new GP_Locale();
 747          $es_cr->english_name = 'Spanish (Costa Rica)';
 748          $es_cr->native_name = 'Español de Costa Rica';
 749          $es_cr->lang_code_iso_639_1 = 'es';
 750          $es_cr->lang_code_iso_639_2 = 'spa';
 751          $es_cr->lang_code_iso_639_3 = 'spa';
 752          $es_cr->country_code = 'cr';
 753          $es_cr->wp_locale = 'es_CR';
 754          $es_cr->slug = 'es-cr';
 755          $es_cr->variant_root = $es->slug;
 756          $es->variants[ $es_cr->slug ] = $es_cr->english_name;
 757  
 758          $es_gt = new GP_Locale();
 759          $es_gt->english_name = 'Spanish (Guatemala)';
 760          $es_gt->native_name = 'Español de Guatemala';
 761          $es_gt->lang_code_iso_639_1 = 'es';
 762          $es_gt->lang_code_iso_639_2 = 'spa';
 763          $es_gt->lang_code_iso_639_3 = 'spa';
 764          $es_gt->country_code = 'gt';
 765          $es_gt->wp_locale = 'es_GT';
 766          $es_gt->slug = 'es-gt';
 767          $es_gt->google_code = 'es';
 768          $es_gt->facebook_locale = 'es_LA';
 769          $es_gt->variant_root = $es->slug;
 770          $es->variants[ $es_gt->slug ] = $es_gt->english_name;
 771  
 772          $es_mx = new GP_Locale();
 773          $es_mx->english_name = 'Spanish (Mexico)';
 774          $es_mx->native_name = 'Español de México';
 775          $es_mx->lang_code_iso_639_1 = 'es';
 776          $es_mx->lang_code_iso_639_2 = 'spa';
 777          $es_mx->lang_code_iso_639_3 = 'spa';
 778          $es_mx->country_code = 'mx';
 779          $es_mx->wp_locale = 'es_MX';
 780          $es_mx->slug = 'es-mx';
 781          $es_mx->google_code = 'es';
 782          $es_mx->facebook_locale = 'es_MX';
 783          $es_mx->variant_root = $es->slug;
 784          $es->variants[ $es_mx->slug ] = $es_mx->english_name;
 785  
 786          $es_pe = new GP_Locale();
 787          $es_pe->english_name = 'Spanish (Peru)';
 788          $es_pe->native_name = 'Español de Perú';
 789          $es_pe->lang_code_iso_639_1 = 'es';
 790          $es_pe->lang_code_iso_639_2 = 'spa';
 791          $es_pe->lang_code_iso_639_3 = 'spa';
 792          $es_pe->country_code = 'pe';
 793          $es_pe->wp_locale = 'es_PE';
 794          $es_pe->slug = 'es-pe';
 795          $es_pe->google_code = 'es';
 796          $es_pe->facebook_locale = 'es_LA';
 797          $es_pe->variant_root = $es->slug;
 798          $es->variants[ $es_pe->slug ] = $es_pe->english_name;
 799  
 800          $es_pr = new GP_Locale();
 801          $es_pr->english_name = 'Spanish (Puerto Rico)';
 802          $es_pr->native_name = 'Español de Puerto Rico';
 803          $es_pr->lang_code_iso_639_1 = 'es';
 804          $es_pr->lang_code_iso_639_2 = 'spa';
 805          $es_pr->lang_code_iso_639_3 = 'spa';
 806          $es_pr->country_code = 'pr';
 807          $es_pr->wp_locale = 'es_PR';
 808          $es_pr->slug = 'es-pr';
 809          $es_pr->google_code = 'es';
 810          $es_pr->facebook_locale = 'es_LA';
 811          $es_pr->variant_root = $es->slug;
 812          $es->variants[ $es_pr->slug ] = $es_pr->english_name;
 813  
 814          $es_us = new GP_Locale();
 815          $es_us->english_name = 'Spanish (US)';
 816          $es_us->native_name = 'Español de los Estados Unidos';
 817          $es_us->lang_code_iso_639_1 = 'es';
 818          $es_us->lang_code_iso_639_2 = 'spa';
 819          $es_us->lang_code_iso_639_3 = 'spa';
 820          $es_us->country_code = 'us';
 821          $es_us->slug = 'es-us';
 822  
 823          $es_ve = new GP_Locale();
 824          $es_ve->english_name = 'Spanish (Venezuela)';
 825          $es_ve->native_name = 'Español de Venezuela';
 826          $es_ve->lang_code_iso_639_1 = 'es';
 827          $es_ve->lang_code_iso_639_2 = 'spa';
 828          $es_ve->lang_code_iso_639_3 = 'spa';
 829          $es_ve->country_code = 've';
 830          $es_ve->wp_locale = 'es_VE';
 831          $es_ve->slug = 'es-ve';
 832          $es_ve->google_code = 'es';
 833          $es_ve->facebook_locale = 'es_VE';
 834          $es_ve->variant_root = $es->slug;
 835          $es->variants[ $es_ve->slug ] = $es_ve->english_name;
 836  
 837          $et = new GP_Locale();
 838          $et->english_name = 'Estonian';
 839          $et->native_name = 'Eesti';
 840          $et->lang_code_iso_639_1 = 'et';
 841          $et->lang_code_iso_639_2 = 'est';
 842          $et->country_code = 'ee';
 843          $et->wp_locale = 'et';
 844          $et->slug = 'et';
 845          $et->google_code = 'et';
 846          $et->facebook_locale = 'et_EE';
 847  
 848          $eu = new GP_Locale();
 849          $eu->english_name = 'Basque';
 850          $eu->native_name = 'Euskara';
 851          $eu->lang_code_iso_639_1 = 'eu';
 852          $eu->lang_code_iso_639_2 = 'eus';
 853          $eu->country_code = 'es';
 854          $eu->wp_locale = 'eu';
 855          $eu->slug = 'eu';
 856          $eu->google_code = 'eu';
 857          $eu->facebook_locale = 'eu_ES';
 858  
 859          $fa = new GP_Locale();
 860          $fa->english_name = 'Persian';
 861          $fa->native_name = 'فارسی';
 862          $fa->lang_code_iso_639_1 = 'fa';
 863          $fa->lang_code_iso_639_2 = 'fas';
 864          $fa->wp_locale = 'fa_IR';
 865          $fa->slug = 'fa';
 866          $fa->nplurals = 1;
 867          $fa->plural_expression = '0';
 868          $fa->text_direction = 'rtl';
 869          $fa->google_code = 'fa';
 870          $fa->facebook_locale = 'fa_IR';
 871  
 872          $fa_af = new GP_Locale();
 873          $fa_af->english_name = 'Persian (Afghanistan)';
 874          $fa_af->native_name = '(فارسی (افغانستان';
 875          $fa_af->lang_code_iso_639_1 = 'fa';
 876          $fa_af->lang_code_iso_639_2 = 'fas';
 877          $fa_af->wp_locale = 'fa_AF';
 878          $fa_af->slug = 'fa-af';
 879          $fa_af->nplurals = 1;
 880          $fa_af->plural_expression = '0';
 881          $fa_af->text_direction = 'rtl';
 882          $fa_af->google_code = 'fa';
 883          $fa_af->variant_root = $fa->slug;
 884          $fa->variants[ $fa_af->slug ] = $fa_af->english_name;
 885  
 886          $ff_sn = new GP_Locale();
 887          $ff_sn->english_name = 'Fulah';
 888          $ff_sn->native_name = 'Pulaar';
 889          $ff_sn->lang_code_iso_639_1 = 'ff';
 890          $ff_sn->lang_code_iso_639_2 = 'fuc';
 891          $ff_sn->country_code = 'sn';
 892          $ff_sn->wp_locale = 'fuc';
 893          $ff_sn->slug = 'fuc';
 894          $ff_sn->plural_expression = 'n!=1';
 895  
 896          $fi = new GP_Locale();
 897          $fi->english_name = 'Finnish';
 898          $fi->native_name = 'Suomi';
 899          $fi->lang_code_iso_639_1 = 'fi';
 900          $fi->lang_code_iso_639_2 = 'fin';
 901          $fi->country_code = 'fi';
 902          $fi->wp_locale = 'fi';
 903          $fi->slug = 'fi';
 904          $fi->google_code = 'fi';
 905          $fi->facebook_locale = 'fi_FI';
 906  
 907          $fj = new GP_Locale();
 908          $fj->english_name = 'Fijian';
 909          $fj->native_name = 'Vosa Vakaviti';
 910          $fj->lang_code_iso_639_1 = 'fj';
 911          $fj->lang_code_iso_639_2 = 'fij';
 912          $fj->country_code = 'fj';
 913          $fj->slug = 'fj';
 914  
 915          $fo = new GP_Locale();
 916          $fo->english_name = 'Faroese';
 917          $fo->native_name = 'Føroyskt';
 918          $fo->lang_code_iso_639_1 = 'fo';
 919          $fo->lang_code_iso_639_2 = 'fao';
 920          $fo->country_code = 'fo';
 921          $fo->wp_locale = 'fo';
 922          $fo->slug = 'fo';
 923          $fo->facebook_locale = 'fo_FO';
 924  
 925          $fr = new GP_Locale();
 926          $fr->english_name = 'French (France)';
 927          $fr->native_name = 'Français';
 928          $fr->lang_code_iso_639_1 = 'fr';
 929          $fr->country_code = 'fr';
 930          $fr->wp_locale = 'fr_FR';
 931          $fr->slug = 'fr';
 932          $fr->nplurals = 2;
 933          $fr->plural_expression = 'n > 1';
 934          $fr->google_code = 'fr';
 935          $fr->facebook_locale = 'fr_FR';
 936  
 937          $fr_be = new GP_Locale();
 938          $fr_be->english_name = 'French (Belgium)';
 939          $fr_be->native_name = 'Français de Belgique';
 940          $fr_be->lang_code_iso_639_1 = 'fr';
 941          $fr_be->lang_code_iso_639_2 = 'fra';
 942          $fr_be->country_code = 'be';
 943          $fr_be->wp_locale = 'fr_BE';
 944          $fr_be->slug = 'fr-be';
 945          $fr_be->variant_root = $fr->slug;
 946          $fr->variants[ $fr_be->slug ] = $fr_be->english_name;
 947  
 948          $fr_ca = new GP_Locale();
 949          $fr_ca->english_name = 'French (Canada)';
 950          $fr_ca->native_name = 'Français du Canada';
 951          $fr_ca->lang_code_iso_639_1 = 'fr';
 952          $fr_ca->lang_code_iso_639_2 = 'fra';
 953          $fr_ca->country_code = 'ca';
 954          $fr_ca->wp_locale = 'fr_CA';
 955          $fr_ca->slug = 'fr-ca';
 956          $fr_ca->facebook_locale = 'fr_CA';
 957          $fr_ca->variant_root = $fr->slug;
 958          $fr->variants[ $fr_ca->slug ] = $fr_ca->english_name;
 959  
 960          $fr_ch = new GP_Locale();
 961          $fr_ch->english_name = 'French (Switzerland)';
 962          $fr_ch->native_name = 'Français de Suisse';
 963          $fr_ch->lang_code_iso_639_1 = 'fr';
 964          $fr_ch->lang_code_iso_639_2 = 'fra';
 965          $fr_ch->country_code = 'ch';
 966          $fr_ch->slug = 'fr-ch';
 967          $fr_ch->variant_root = $fr->slug;
 968          $fr->variants[ $fr_ch->slug ] = $fr_ch->english_name;
 969  
 970          $frp = new GP_Locale();
 971          $frp->english_name = 'Arpitan';
 972          $frp->native_name = 'Arpitan';
 973          $frp->lang_code_iso_639_3 = 'frp';
 974          $frp->country_code = 'fr';
 975          $frp->wp_locale = 'frp';
 976          $frp->slug = 'frp';
 977          $frp->nplurals = 2;
 978          $frp->plural_expression = 'n > 1';
 979  
 980          $fur = new GP_Locale();
 981          $fur->english_name = 'Friulian';
 982          $fur->native_name = 'Friulian';
 983          $fur->lang_code_iso_639_2 = 'fur';
 984          $fur->lang_code_iso_639_3 = 'fur';
 985          $fur->country_code = 'it';
 986          $fur->wp_locale = 'fur';
 987          $fur->slug = 'fur';
 988  
 989          $fy = new GP_Locale();
 990          $fy->english_name = 'Frisian';
 991          $fy->native_name = 'Frysk';
 992          $fy->lang_code_iso_639_1 = 'fy';
 993          $fy->lang_code_iso_639_2 = 'fry';
 994          $fy->country_code = 'nl';
 995          $fy->wp_locale = 'fy';
 996          $fy->slug = 'fy';
 997          $fy->facebook_locale = 'fy_NL';
 998  
 999          $ga = new GP_Locale();
1000          $ga->english_name = 'Irish';
1001          $ga->native_name = 'Gaelige';
1002          $ga->lang_code_iso_639_1 = 'ga';
1003          $ga->lang_code_iso_639_2 = 'gle';
1004          $ga->country_code = 'ie';
1005          $ga->slug = 'ga';
1006          $ga->wp_locale = 'ga';
1007          $ga->nplurals = 5;
1008          $ga->plural_expression = 'n==1 ? 0 : n==2 ? 1 : n<7 ? 2 : n<11 ? 3 : 4';
1009          $ga->google_code = 'ga';
1010          $ga->facebook_locale = 'ga_IE';
1011  
1012          $gd = new GP_Locale();
1013          $gd->english_name = 'Scottish Gaelic';
1014          $gd->native_name = 'Gàidhlig';
1015          $gd->lang_code_iso_639_1 = 'gd';
1016          $gd->lang_code_iso_639_2 = 'gla';
1017          $gd->lang_code_iso_639_3 = 'gla';
1018          $gd->country_code = 'gb';
1019          $gd->wp_locale = 'gd';
1020          $gd->slug = 'gd';
1021          $gd->nplurals = 4;
1022          $gd->plural_expression = '(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n < 20) ? 2 : 3';
1023          $gd->google_code = 'gd';
1024  
1025          $gl = new GP_Locale();
1026          $gl->english_name = 'Galician';
1027          $gl->native_name = 'Galego';
1028          $gl->lang_code_iso_639_1 = 'gl';
1029          $gl->lang_code_iso_639_2 = 'glg';
1030          $gl->country_code = 'es';
1031          $gl->wp_locale = 'gl_ES';
1032          $gl->slug = 'gl';
1033          $gl->google_code = 'gl';
1034          $gl->facebook_locale = 'gl_ES';
1035  
1036          $gn = new GP_Locale();
1037          $gn->english_name = 'Guaraní';
1038          $gn->native_name = 'Avañe\'ẽ';
1039          $gn->lang_code_iso_639_1 = 'gn';
1040          $gn->lang_code_iso_639_2 = 'grn';
1041          $gn->wp_locale = 'gn';
1042          $gn->slug = 'gn';
1043  
1044          $gsw = new GP_Locale();
1045          $gsw->english_name = 'Swiss German';
1046          $gsw->native_name = 'Schwyzerdütsch';
1047          $gsw->lang_code_iso_639_2 = 'gsw';
1048          $gsw->lang_code_iso_639_3 = 'gsw';
1049          $gsw->country_code = 'ch';
1050          $gsw->wp_locale = 'gsw';
1051          $gsw->slug = 'gsw';
1052  
1053          $gu = new GP_Locale();
1054          $gu->english_name = 'Gujarati';
1055          $gu->native_name = 'ગુજરાતી';
1056          $gu->lang_code_iso_639_1 = 'gu';
1057          $gu->lang_code_iso_639_2 = 'guj';
1058          $gu->wp_locale = 'gu';
1059          $gu->slug = 'gu';
1060          $gu->google_code = 'gu';
1061          $gu->facebook_locale = 'gu_IN';
1062  
1063          $ha = new GP_Locale();
1064          $ha->english_name = 'Hausa (Arabic)';
1065          $ha->native_name = 'هَوُسَ';
1066          $ha->lang_code_iso_639_1 = 'ha';
1067          $ha->lang_code_iso_639_2 = 'hau';
1068          $ha->slug = 'ha';
1069          $ha->text_direction = 'rtl';
1070          $ha->google_code = 'ha';
1071  
1072          $hat = new GP_Locale();
1073          $hat->english_name = 'Haitian Creole';
1074          $hat->native_name = 'Kreyol ayisyen';
1075          $hat->lang_code_iso_639_1 = 'ht';
1076          $hat->lang_code_iso_639_2 = 'hat';
1077          $hat->lang_code_iso_639_3 = 'hat';
1078          $hat->country_code = 'ht';
1079          $hat->wp_locale = 'hat';
1080          $hat->slug = 'hat';
1081  
1082          $hau = new GP_Locale();
1083          $hau->english_name = 'Hausa';
1084          $hau->native_name = 'Harshen Hausa';
1085          $hau->lang_code_iso_639_1 = 'ha';
1086          $hau->lang_code_iso_639_2 = 'hau';
1087          $hau->lang_code_iso_639_3 = 'hau';
1088          $hau->country_code = 'ng';
1089          $hau->wp_locale = 'hau';
1090          $hau->slug = 'hau';
1091          $hau->google_code = 'ha';
1092          $hau->facebook_locale = 'ha_NG';
1093  
1094          $haw = new GP_Locale();
1095          $haw->english_name = 'Hawaiian';
1096          $haw->native_name = 'Ōlelo Hawaiʻi';
1097          $haw->lang_code_iso_639_2 = 'haw';
1098          $haw->country_code = 'us';
1099          $haw->wp_locale = 'haw_US';
1100          $haw->slug = 'haw';
1101  
1102          $haz = new GP_Locale();
1103          $haz->english_name = 'Hazaragi';
1104          $haz->native_name = 'هزاره گی';
1105          $haz->lang_code_iso_639_3 = 'haz';
1106          $haz->country_code = 'af';
1107          $haz->wp_locale = 'haz';
1108          $haz->slug = 'haz';
1109          $haz->text_direction = 'rtl';
1110  
1111          $he = new GP_Locale();
1112          $he->english_name = 'Hebrew';
1113          $he->native_name = 'עִבְרִית';
1114          $he->lang_code_iso_639_1 = 'he';
1115          $he->country_code = 'il';
1116          $he->wp_locale = 'he_IL';
1117          $he->slug = 'he';
1118          $he->text_direction = 'rtl';
1119          $he->google_code = 'iw';
1120          $he->facebook_locale = 'he_IL';
1121  
1122          $hi = new GP_Locale();
1123          $hi->english_name = 'Hindi';
1124          $hi->native_name = 'हिन्दी';
1125          $hi->lang_code_iso_639_1 = 'hi';
1126          $hi->lang_code_iso_639_2 = 'hin';
1127          $hi->country_code = 'in';
1128          $hi->wp_locale = 'hi_IN';
1129          $hi->slug = 'hi';
1130          $hi->google_code = 'hi';
1131          $hi->facebook_locale = 'hi_IN';
1132  
1133          $hr = new GP_Locale();
1134          $hr->english_name = 'Croatian';
1135          $hr->native_name = 'Hrvatski';
1136          $hr->lang_code_iso_639_1 = 'hr';
1137          $hr->lang_code_iso_639_2 = 'hrv';
1138          $hr->country_code = 'hr';
1139          $hr->wp_locale = 'hr';
1140          $hr->slug = 'hr';
1141          $hr->nplurals = 3;
1142          $hr->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1143          $hr->google_code = 'hr';
1144          $hr->facebook_locale = 'hr_HR';
1145  
1146          $hu = new GP_Locale();
1147          $hu->english_name = 'Hungarian';
1148          $hu->native_name = 'Magyar';
1149          $hu->lang_code_iso_639_1 = 'hu';
1150          $hu->lang_code_iso_639_2 = 'hun';
1151          $hu->country_code = 'hu';
1152          $hu->wp_locale = 'hu_HU';
1153          $hu->slug = 'hu';
1154          $hu->google_code = 'hu';
1155          $hu->facebook_locale = 'hu_HU';
1156  
1157          $hy = new GP_Locale();
1158          $hy->english_name = 'Armenian';
1159          $hy->native_name = 'Հայերեն';
1160          $hy->lang_code_iso_639_1 = 'hy';
1161          $hy->lang_code_iso_639_2 = 'hye';
1162          $hy->country_code = 'am';
1163          $hy->wp_locale = 'hy';
1164          $hy->slug = 'hy';
1165          $hy->google_code = 'hy';
1166          $hy->facebook_locale = 'hy_AM';
1167  
1168          $ia = new GP_Locale();
1169          $ia->english_name = 'Interlingua';
1170          $ia->native_name = 'Interlingua';
1171          $ia->lang_code_iso_639_1 = 'ia';
1172          $ia->lang_code_iso_639_2 = 'ina';
1173          $ia->slug = 'ia';
1174  
1175          $id = new GP_Locale();
1176          $id->english_name = 'Indonesian';
1177          $id->native_name = 'Bahasa Indonesia';
1178          $id->lang_code_iso_639_1 = 'id';
1179          $id->lang_code_iso_639_2 = 'ind';
1180          $id->country_code = 'id';
1181          $id->wp_locale = 'id_ID';
1182          $id->slug = 'id';
1183          $id->nplurals = 2;
1184          $id->plural_expression = 'n > 1';
1185          $id->google_code = 'id';
1186          $id->facebook_locale = 'id_ID';
1187  
1188          $ido = new GP_Locale();
1189          $ido->english_name = 'Ido';
1190          $ido->native_name = 'Ido';
1191          $ido->lang_code_iso_639_1 = 'io';
1192          $ido->lang_code_iso_639_2 = 'ido';
1193          $ido->lang_code_iso_639_3 = 'ido';
1194          $ido->wp_locale = 'ido';
1195          $ido->slug = 'ido';
1196  
1197          $ike = new GP_Locale();
1198          $ike->english_name = 'Inuktitut';
1199          $ike->native_name = 'ᐃᓄᒃᑎᑐᑦ';
1200          $ike->lang_code_iso_639_1 = 'iu';
1201          $ike->lang_code_iso_639_2 = 'iku';
1202          $ike->country_code = 'ca';
1203          $ike->slug = 'ike';
1204  
1205          $ilo = new GP_Locale();
1206          $ilo->english_name = 'Iloko';
1207          $ilo->native_name = 'Pagsasao nga Iloko';
1208          $ilo->lang_code_iso_639_2 = 'ilo';
1209          $ilo->country_code = 'ph';
1210          $ilo->slug = 'ilo';
1211  
1212          $is = new GP_Locale();
1213          $is->english_name = 'Icelandic';
1214          $is->native_name = 'Íslenska';
1215          $is->lang_code_iso_639_1 = 'is';
1216          $is->lang_code_iso_639_2 = 'isl';
1217          $is->country_code = 'is';
1218          $is->slug = 'is';
1219          $is->wp_locale = 'is_IS';
1220          $is->nplurals = 2;
1221          $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)';
1222          $is->google_code = 'is';
1223          $is->facebook_locale = 'is_IS';
1224  
1225          $it = new GP_Locale();
1226          $it->english_name = 'Italian';
1227          $it->native_name = 'Italiano';
1228          $it->lang_code_iso_639_1 = 'it';
1229          $it->lang_code_iso_639_2 = 'ita';
1230          $it->country_code = 'it';
1231          $it->wp_locale = 'it_IT';
1232          $it->slug = 'it';
1233          $it->google_code = 'it';
1234          $it->facebook_locale = 'it_IT';
1235  
1236          $ja = new GP_Locale();
1237          $ja->english_name = 'Japanese';
1238          $ja->native_name = '日本語';
1239          $ja->lang_code_iso_639_1 = 'ja';
1240          $ja->country_code = 'jp';
1241          $ja->wp_locale = 'ja';
1242          $ja->slug = 'ja';
1243          $ja->google_code = 'ja';
1244          $ja->facebook_locale = 'ja_JP';
1245          $ja->nplurals = 1;
1246          $ja->plural_expression = '0';
1247  
1248          $jv = new GP_Locale();
1249          $jv->english_name = 'Javanese';
1250          $jv->native_name = 'Basa Jawa';
1251          $jv->lang_code_iso_639_1 = 'jv';
1252          $jv->lang_code_iso_639_2 = 'jav';
1253          $jv->country_code = 'id';
1254          $jv->wp_locale = 'jv_ID';
1255          $jv->slug = 'jv';
1256          $jv->google_code = 'jw';
1257          $jv->facebook_locale = 'jv_ID';
1258  
1259          $ka = new GP_Locale();
1260          $ka->english_name = 'Georgian';
1261          $ka->native_name = 'ქართული';
1262          $ka->lang_code_iso_639_1 = 'ka';
1263          $ka->lang_code_iso_639_2 = 'kat';
1264          $ka->country_code = 'ge';
1265          $ka->wp_locale = 'ka_GE';
1266          $ka->slug = 'ka';
1267          $ka->nplurals = 1;
1268          $ka->plural_expression = '0';
1269          $ka->google_code = 'ka';
1270          $ka->facebook_locale = 'ka_GE';
1271  
1272          $kab = new GP_Locale();
1273          $kab->english_name = 'Kabyle';
1274          $kab->native_name = 'Taqbaylit';
1275          $kab->lang_code_iso_639_2 = 'kab';
1276          $kab->lang_code_iso_639_3 = 'kab';
1277          $kab->country_code = 'dz';
1278          $kab->wp_locale = 'kab';
1279          $kab->slug = 'kab';
1280          $kab->nplurals = 2;
1281          $kab->plural_expression = '(n > 1)';
1282  
1283          $kal = new GP_Locale();
1284          $kal->english_name = 'Greenlandic';
1285          $kal->native_name = 'Kalaallisut';
1286          $kal->lang_code_iso_639_1 = 'kl';
1287          $kal->lang_code_iso_639_2 = 'kal';
1288          $kal->lang_code_iso_639_3 = 'kal';
1289          $kal->country_code = 'gl';
1290          $kal->wp_locale = 'kal';
1291          $kal->slug = 'kal';
1292  
1293          $kin = new GP_Locale();
1294          $kin->english_name = 'Kinyarwanda';
1295          $kin->native_name = 'Ikinyarwanda';
1296          $kin->lang_code_iso_639_1 = 'rw';
1297          $kin->lang_code_iso_639_2 = 'kin';
1298          $kin->lang_code_iso_639_3 = 'kin';
1299          $kin->wp_locale = 'kin';
1300          $kin->country_code = 'rw';
1301          $kin->slug = 'kin';
1302          $kin->facebook_locale = 'rw_RW';
1303  
1304          $kk = new GP_Locale();
1305          $kk->english_name = 'Kazakh';
1306          $kk->native_name = 'Қазақ тілі';
1307          $kk->lang_code_iso_639_1 = 'kk';
1308          $kk->lang_code_iso_639_2 = 'kaz';
1309          $kk->country_code = 'kz';
1310          $kk->wp_locale = 'kk';
1311          $kk->slug = 'kk';
1312          $kk->google_code = 'kk';
1313          $kk->facebook_locale = 'kk_KZ';
1314  
1315          $km = new GP_Locale();
1316          $km->english_name = 'Khmer';
1317          $km->native_name = 'ភាសាខ្មែរ';
1318          $km->lang_code_iso_639_1 = 'km';
1319          $km->lang_code_iso_639_2 = 'khm';
1320          $km->country_code = 'kh';
1321          $km->wp_locale = 'km';
1322          $km->slug = 'km';
1323          $km->nplurals = 1;
1324          $km->plural_expression = '0';
1325          $km->google_code = 'km';
1326          $km->facebook_locale = 'km_KH';
1327  
1328          $kmr = new GP_Locale();
1329          $kmr->english_name = 'Kurdish (Kurmanji)';
1330          $kmr->native_name = 'Kurdî';
1331          $kmr->lang_code_iso_639_1 = 'ku';
1332          $kmr->lang_code_iso_639_3 = 'kmr';
1333          $kmr->country_code = 'tr';
1334          $kmr->slug = 'kmr';
1335          $kmr->facebook_locale = 'ku_TR';
1336  
1337          $kn = new GP_Locale();
1338          $kn->english_name = 'Kannada';
1339          $kn->native_name = 'ಕನ್ನಡ';
1340          $kn->lang_code_iso_639_1 = 'kn';
1341          $kn->lang_code_iso_639_2 = 'kan';
1342          $kn->country_code = 'in';
1343          $kn->wp_locale = 'kn';
1344          $kn->slug = 'kn';
1345          $kn->google_code = 'kn';
1346          $kn->facebook_locale = 'kn_IN';
1347  
1348          $ko = new GP_Locale();
1349          $ko->english_name = 'Korean';
1350          $ko->native_name = '한국어';
1351          $ko->lang_code_iso_639_1 = 'ko';
1352          $ko->lang_code_iso_639_2 = 'kor';
1353          $ko->country_code = 'kr';
1354          $ko->wp_locale = 'ko_KR';
1355          $ko->slug = 'ko';
1356          $ko->nplurals = 1;
1357          $ko->plural_expression = '0';
1358          $ko->google_code = 'ko';
1359          $ko->facebook_locale = 'ko_KR';
1360  
1361          $ks = new GP_Locale();
1362          $ks->english_name = 'Kashmiri';
1363          $ks->native_name = 'कश्मीरी';
1364          $ks->lang_code_iso_639_1 = 'ks';
1365          $ks->lang_code_iso_639_2 = 'kas';
1366          $ks->slug = 'ks';
1367  
1368          $kir = new GP_Locale();
1369          $kir->english_name = 'Kyrgyz';
1370          $kir->native_name = 'Кыргызча';
1371          $kir->lang_code_iso_639_1 = 'ky';
1372          $kir->lang_code_iso_639_2 = 'kir';
1373          $kir->lang_code_iso_639_3 = 'kir';
1374          $kir->country_code = 'kg';
1375          $kir->wp_locale = 'kir';
1376          $kir->slug = 'kir';
1377          $kir->nplurals = 1;
1378          $kir->plural_expression = '0';
1379          $kir->google_code = 'ky';
1380  
1381          $la = new GP_Locale();
1382          $la->english_name = 'Latin';
1383          $la->native_name = 'Latine';
1384          $la->lang_code_iso_639_1 = 'la';
1385          $la->lang_code_iso_639_2 = 'lat';
1386          $la->slug = 'la';
1387          $la->google_code = 'la';
1388          $la->facebook_locale = 'la_VA';
1389  
1390          $lb = new GP_Locale();
1391          $lb->english_name = 'Luxembourgish';
1392          $lb->native_name = 'Lëtzebuergesch';
1393          $lb->lang_code_iso_639_1 = 'lb';
1394          $lb->country_code = 'lu';
1395          $lb->wp_locale = 'lb_LU';
1396          $lb->slug = 'lb';
1397  
1398          $li = new GP_Locale();
1399          $li->english_name = 'Limburgish';
1400          $li->native_name = 'Limburgs';
1401          $li->lang_code_iso_639_1 = 'li';
1402          $li->lang_code_iso_639_2 = 'lim';
1403          $li->lang_code_iso_639_3 = 'lim';
1404          $li->country_code = 'nl';
1405          $li->wp_locale = 'li';
1406          $li->slug = 'li';
1407          $li->facebook_locale = 'li_NL';
1408  
1409          $lin = new GP_Locale();
1410          $lin->english_name = 'Lingala';
1411          $lin->native_name = 'Ngala';
1412          $lin->lang_code_iso_639_1 = 'ln';
1413          $lin->lang_code_iso_639_2 = 'lin';
1414          $lin->country_code = 'cd';
1415          $lin->wp_locale = 'lin';
1416          $lin->slug = 'lin';
1417          $lin->nplurals = 2;
1418          $lin->plural_expression = 'n>1';
1419          $lin->facebook_locale = 'ln_CD';
1420  
1421          $lmo = new GP_Locale();
1422          $lmo->english_name = 'Lombard';
1423          $lmo->native_name = 'Lombardo';
1424          $lmo->lang_code_iso_639_3 = 'lmo';
1425          $lmo->country_code = 'it';
1426          $lmo->wp_locale = 'lmo';
1427          $lmo->slug = 'lmo';
1428  
1429          $lo = new GP_Locale();
1430          $lo->english_name = 'Lao';
1431          $lo->native_name = 'ພາສາລາວ';
1432          $lo->lang_code_iso_639_1 = 'lo';
1433          $lo->lang_code_iso_639_2 = 'lao';
1434          $lo->country_code = 'LA';
1435          $lo->wp_locale = 'lo';
1436          $lo->slug = 'lo';
1437          $lo->nplurals = 1;
1438          $lo->plural_expression = '0';
1439          $lo->google_code = 'lo';
1440          $lo->facebook_locale = 'lo_LA';
1441  
1442          $lt = new GP_Locale();
1443          $lt->english_name = 'Lithuanian';
1444          $lt->native_name = 'Lietuvių kalba';
1445          $lt->lang_code_iso_639_1 = 'lt';
1446          $lt->lang_code_iso_639_2 = 'lit';
1447          $lt->country_code = 'lt';
1448          $lt->wp_locale = 'lt_LT';
1449          $lt->slug = 'lt';
1450          $lt->nplurals = 3;
1451          $lt->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2)';
1452          $lt->google_code = 'lt';
1453          $lt->facebook_locale = 'lt_LT';
1454  
1455          $lug = new GP_Locale();
1456          $lug->english_name = 'Luganda';
1457          $lug->native_name = 'Oluganda';
1458          $lug->lang_code_iso_639_1 = 'lg';
1459          $lug->lang_code_iso_639_2 = 'lug';
1460          $lug->lang_code_iso_639_3 = 'lug';
1461          $lug->country_code = 'ug';
1462          $lug->wp_locale = 'lug';
1463          $lug->slug = 'lug';
1464  
1465          $lv = new GP_Locale();
1466          $lv->english_name = 'Latvian';
1467          $lv->native_name = 'Latviešu valoda';
1468          $lv->lang_code_iso_639_1 = 'lv';
1469          $lv->lang_code_iso_639_2 = 'lav';
1470          $lv->country_code = 'lv';
1471          $lv->wp_locale = 'lv';
1472          $lv->slug = 'lv';
1473          $lv->nplurals = 3;
1474          $lv->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2)';
1475          $lv->google_code = 'lv';
1476          $lv->facebook_locale = 'lv_LV';
1477  
1478          $me = new GP_Locale();
1479          $me->english_name = 'Montenegrin';
1480          $me->native_name = 'Crnogorski jezik';
1481          $me->country_code = 'me';
1482          $me->wp_locale = 'me_ME';
1483          $me->slug = 'me';
1484          $me->nplurals = 3;
1485          $me->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1486  
1487          $mfe = new GP_Locale();
1488          $mfe->english_name = 'Mauritian Creole';
1489          $mfe->native_name = 'Kreol Morisien';
1490          $mfe->lang_code_iso_639_3 = 'mfe';
1491          $mfe->country_code = 'mu';
1492          $mfe->wp_locale = 'mfe';
1493          $mfe->slug = 'mfe';
1494          $mfe->nplurals = 1;
1495          $mfe->plural_expression = '0';
1496  
1497          $mg = new GP_Locale();
1498          $mg->english_name = 'Malagasy';
1499          $mg->native_name = 'Malagasy';
1500          $mg->lang_code_iso_639_1 = 'mg';
1501          $mg->lang_code_iso_639_2 = 'mlg';
1502          $mg->country_code = 'mg';
1503          $mg->wp_locale = 'mg_MG';
1504          $mg->slug = 'mg';
1505          $mg->google_code = 'mg';
1506          $mg->facebook_locale = 'mg_MG';
1507  
1508          $mhr = new GP_Locale();
1509          $mhr->english_name = 'Mari (Meadow)';
1510          $mhr->native_name = 'Олык марий';
1511          $mhr->lang_code_iso_639_3 = 'mhr';
1512          $mhr->country_code = 'ru';
1513          $mhr->slug = 'mhr';
1514  
1515          $mk = new GP_Locale();
1516          $mk->english_name = 'Macedonian';
1517          $mk->native_name = 'Македонски јазик';
1518          $mk->lang_code_iso_639_1 = 'mk';
1519          $mk->lang_code_iso_639_2 = 'mkd';
1520          $mk->country_code = 'mk';
1521          $mk->wp_locale = 'mk_MK';
1522          $mk->slug = 'mk';
1523          $mk->nplurals = 2;
1524          $mk->plural_expression = 'n==1 || n%10==1 ? 0 : 1';
1525          $mk->google_code = 'mk';
1526          $mk->facebook_locale = 'mk_MK';
1527  
1528          $ml = new GP_Locale();
1529          $ml->english_name = 'Malayalam';
1530          $ml->native_name = 'മലയാളം';
1531          $ml->lang_code_iso_639_1 = 'ml';
1532          $ml->lang_code_iso_639_2 = 'mal';
1533          $ml->country_code = 'in';
1534          $ml->wp_locale = 'ml_IN';
1535          $ml->slug = 'ml';
1536          $ml->google_code = 'ml';
1537          $ml->facebook_locale = 'ml_IN';
1538  
1539          $mlt = new GP_Locale();
1540          $mlt->english_name = 'Maltese';
1541          $mlt->native_name = 'Malti';
1542          $mlt->lang_code_iso_639_1 = 'mt';
1543          $mlt->lang_code_iso_639_2 = 'mlt';
1544          $mlt->lang_code_iso_639_3 = 'mlt';
1545          $mlt->country_code = 'mt';
1546          $mlt->wp_locale = 'mlt';
1547          $mlt->slug = 'mlt';
1548          $mlt->nplurals = 4;
1549          $mlt->plural_expression = '(n==1 ? 0 : n==0 || ( n%100>1 && n%100<11) ? 1 : (n%100>10 && n%100<20 ) ? 2 : 3)';
1550          $mlt->google_code = 'mt';
1551          $mlt->facebook_locale = 'mt_MT';
1552  
1553          $mn = new GP_Locale();
1554          $mn->english_name = 'Mongolian';
1555          $mn->native_name = 'Монгол';
1556          $mn->lang_code_iso_639_1 = 'mn';
1557          $mn->lang_code_iso_639_2 = 'mon';
1558          $mn->country_code = 'mn';
1559          $mn->wp_locale = 'mn';
1560          $mn->slug = 'mn';
1561          $mn->google_code = 'mn';
1562          $mn->facebook_locale = 'mn_MN';
1563  
1564          $mr = new GP_Locale();
1565          $mr->english_name = 'Marathi';
1566          $mr->native_name = 'मराठी';
1567          $mr->lang_code_iso_639_1 = 'mr';
1568          $mr->lang_code_iso_639_2 = 'mar';
1569          $mr->wp_locale = 'mr';
1570          $mr->slug = 'mr';
1571          $mr->google_code = 'mr';
1572          $mr->facebook_locale = 'mr_IN';
1573  
1574          $mri = new GP_Locale();
1575          $mri->english_name = 'Maori';
1576          $mri->native_name = 'Te Reo Māori';
1577          $mri->lang_code_iso_639_1 = 'mi';
1578          $mri->lang_code_iso_639_3 = 'mri';
1579          $mri->country_code = 'nz';
1580          $mri->slug = 'mri';
1581          $mri->wp_locale = 'mri';
1582          $mri->nplurals = 2;
1583          $mri->plural_expression = '(n > 1)';
1584          $mri->google_code = 'mi';
1585  
1586          $mrj = new GP_Locale();
1587          $mrj->english_name = 'Mari (Hill)';
1588          $mrj->native_name = 'Кырык мары';
1589          $mrj->lang_code_iso_639_3 = 'mrj';
1590          $mrj->country_code = 'ru';
1591          $mrj->slug = 'mrj';
1592  
1593          $ms = new GP_Locale();
1594          $ms->english_name = 'Malay';
1595          $ms->native_name = 'Bahasa Melayu';
1596          $ms->lang_code_iso_639_1 = 'ms';
1597          $ms->lang_code_iso_639_2 = 'msa';
1598          $ms->wp_locale = 'ms_MY';
1599          $ms->slug = 'ms';
1600          $ms->nplurals = 1;
1601          $ms->plural_expression = '0';
1602          $ms->google_code = 'ms';
1603          $ms->facebook_locale = 'ms_MY';
1604  
1605          $mwl = new GP_Locale();
1606          $mwl->english_name = 'Mirandese';
1607          $mwl->native_name = 'Mirandés';
1608          $mwl->lang_code_iso_639_2 = 'mwl';
1609          $mwl->slug = 'mwl';
1610  
1611          $my = new GP_Locale();
1612          $my->english_name = 'Myanmar (Burmese)';
1613          $my->native_name = 'ဗမာစာ';
1614          $my->lang_code_iso_639_1 = 'my';
1615          $my->lang_code_iso_639_2 = 'mya';
1616          $my->country_code = 'mm';
1617          $my->wp_locale = 'my_MM';
1618          $my->slug = 'mya';
1619          $my->google_code = 'my';
1620  
1621          $ne = new GP_Locale();
1622          $ne->english_name = 'Nepali';
1623          $ne->native_name = 'नेपाली';
1624          $ne->lang_code_iso_639_1 = 'ne';
1625          $ne->lang_code_iso_639_2 = 'nep';
1626          $ne->country_code = 'np';
1627          $ne->wp_locale = 'ne_NP';
1628          $ne->slug = 'ne';
1629          $ne->google_code = 'ne';
1630          $ne->facebook_locale = 'ne_NP';
1631  
1632          $nb = new GP_Locale();
1633          $nb->english_name = 'Norwegian (Bokmål)';
1634          $nb->native_name = 'Norsk bokmål';
1635          $nb->lang_code_iso_639_1 = 'nb';
1636          $nb->lang_code_iso_639_2 = 'nob';
1637          $nb->country_code = 'no';
1638          $nb->wp_locale = 'nb_NO';
1639          $nb->slug = 'nb';
1640          $nb->google_code = 'no';
1641          $nb->facebook_locale = 'nb_NO';
1642  
1643          $nl = new GP_Locale();
1644          $nl->english_name = 'Dutch';
1645          $nl->native_name = 'Nederlands';
1646          $nl->lang_code_iso_639_1 = 'nl';
1647          $nl->lang_code_iso_639_2 = 'nld';
1648          $nl->country_code = 'nl';
1649          $nl->wp_locale = 'nl_NL';
1650          $nl->slug = 'nl';
1651          $nl->google_code = 'nl';
1652          $nl->facebook_locale = 'nl_NL';
1653  
1654          $nl_be = new GP_Locale();
1655          $nl_be->english_name = 'Dutch (Belgium)';
1656          $nl_be->native_name = 'Nederlands (België)';
1657          $nl_be->lang_code_iso_639_1 = 'nl';
1658          $nl_be->lang_code_iso_639_2 = 'nld';
1659          $nl_be->country_code = 'be';
1660          $nl_be->wp_locale = 'nl_BE';
1661          $nl_be->slug = 'nl-be';
1662          $nl_be->google_code = 'nl';
1663          $nl_be->variant_root = $nl->slug;
1664          $nl->variants[ $nl_be->slug ] = $nl_be->english_name;
1665  
1666          $no = new GP_Locale();
1667          $no->english_name = 'Norwegian';
1668          $no->native_name = 'Norsk';
1669          $no->lang_code_iso_639_1 = 'no';
1670          $no->lang_code_iso_639_2 = 'nor';
1671          $no->country_code = 'no';
1672          $no->slug = 'no';
1673          $no->google_code = 'no';
1674  
1675          $nn = new GP_Locale();
1676          $nn->english_name = 'Norwegian (Nynorsk)';
1677          $nn->native_name = 'Norsk nynorsk';
1678          $nn->lang_code_iso_639_1 = 'nn';
1679          $nn->lang_code_iso_639_2 = 'nno';
1680          $nn->country_code = 'no';
1681          $nn->wp_locale = 'nn_NO';
1682          $nn->slug = 'nn';
1683          $nn->google_code = 'no';
1684          $nn->facebook_locale = 'nn_NO';
1685          $nn->variant_root = $no->slug;
1686          $no->variants[ $nn->slug ] = $nn->english_name;
1687  
1688          $oci = new GP_Locale();
1689          $oci->english_name = 'Occitan';
1690          $oci->native_name = 'Occitan';
1691          $oci->lang_code_iso_639_1 = 'oc';
1692          $oci->lang_code_iso_639_2 = 'oci';
1693          $oci->country_code = 'fr';
1694          $oci->wp_locale = 'oci';
1695          $oci->slug = 'oci';
1696          $oci->nplurals = 2;
1697          $oci->plural_expression = '(n > 1)';
1698  
1699          $orm = new GP_Locale();
1700          $orm->english_name = 'Oromo';
1701          $orm->native_name = 'Afaan Oromo';
1702          $orm->lang_code_iso_639_1 = 'om';
1703          $orm->lang_code_iso_639_2 = 'orm';
1704          $orm->lang_code_iso_639_3 = 'orm';
1705          $orm->slug = 'orm';
1706          $orm->plural_expression = '(n > 1)';
1707  
1708          $ory = new GP_Locale();
1709          $ory->english_name = 'Oriya';
1710          $ory->native_name = 'ଓଡ଼ିଆ';
1711          $ory->lang_code_iso_639_1 = 'or';
1712          $ory->lang_code_iso_639_2 = 'ory';
1713          $ory->country_code = 'in';
1714          $ory->wp_locale = 'ory';
1715          $ory->slug = 'ory';
1716          $ory->facebook_locale = 'or_IN';
1717  
1718          $os = new GP_Locale();
1719          $os->english_name = 'Ossetic';
1720          $os->native_name = 'Ирон';
1721          $os->lang_code_iso_639_1 = 'os';
1722          $os->lang_code_iso_639_2 = 'oss';
1723          $os->wp_locale = 'os';
1724          $os->slug = 'os';
1725  
1726          $pa = new GP_Locale();
1727          $pa->english_name = 'Punjabi';
1728          $pa->native_name = 'ਪੰਜਾਬੀ';
1729          $pa->lang_code_iso_639_1 = 'pa';
1730          $pa->lang_code_iso_639_2 = 'pan';
1731          $pa->country_code = 'in';
1732          $pa->wp_locale = 'pa_IN';
1733          $pa->slug = 'pa';
1734          $pa->google_code = 'pa';
1735          $pa->facebook_locale = 'pa_IN';
1736  
1737          $pap = new GP_Locale();
1738          $pap->english_name = 'Papiamento';
1739          $pap->native_name = 'Papiamentu';
1740          $pap->lang_code_iso_639_2 = 'pap';
1741          $pap->lang_code_iso_639_3 = 'pap';
1742          $pap->country_code = 'cw';
1743          $pap->wp_locale = 'pap';
1744          $pap->slug = 'pap';
1745  
1746          $pirate = new GP_Locale();
1747          $pirate->english_name = 'English (Pirate)';
1748          $pirate->native_name = 'English (Pirate)';
1749          $pirate->lang_code_iso_639_2 = 'art';
1750          $pirate->wp_locale = 'art_xpirate';
1751          $pirate->slug = 'pirate';
1752          $pirate->google_code = 'xx-pirate';
1753          $pirate->facebook_locale = 'en_PI';
1754  
1755          $pl = new GP_Locale();
1756          $pl->english_name = 'Polish';
1757          $pl->native_name = 'Polski';
1758          $pl->lang_code_iso_639_1 = 'pl';
1759          $pl->lang_code_iso_639_2 = 'pol';
1760          $pl->country_code = 'pl';
1761          $pl->wp_locale = 'pl_PL';
1762          $pl->slug = 'pl';
1763          $pl->nplurals = 3;
1764          $pl->plural_expression = '(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1765          $pl->google_code = 'pl';
1766          $pl->facebook_locale = 'pl_PL';
1767  
1768          $pt = new GP_Locale();
1769          $pt->english_name = 'Portuguese (Portugal)';
1770          $pt->native_name = 'Português';
1771          $pt->lang_code_iso_639_1 = 'pt';
1772          $pt->country_code = 'pt';
1773          $pt->wp_locale = 'pt_PT';
1774          $pt->slug = 'pt';
1775          $pt->google_code = 'pt-PT';
1776          $pt->facebook_locale = 'pt_PT';
1777  
1778          $pt_br = new GP_Locale();
1779          $pt_br->english_name = 'Portuguese (Brazil)';
1780          $pt_br->native_name = 'Português do Brasil';
1781          $pt_br->lang_code_iso_639_1 = 'pt';
1782          $pt_br->lang_code_iso_639_2 = 'por';
1783          $pt_br->country_code = 'br';
1784          $pt_br->wp_locale = 'pt_BR';
1785          $pt_br->slug = 'pt-br';
1786          $pt_br->nplurals = 2;
1787          $pt_br->plural_expression = '(n > 1)';
1788          $pt_br->google_code = 'pt-BR';
1789          $pt_br->facebook_locale = 'pt_BR';
1790  
1791          $ps = new GP_Locale();
1792          $ps->english_name = 'Pashto';
1793          $ps->native_name = 'پښتو';
1794          $ps->lang_code_iso_639_1 = 'ps';
1795          $ps->lang_code_iso_639_2 = 'pus';
1796          $ps->country_code = 'af';
1797          $ps->wp_locale = 'ps';
1798          $ps->slug = 'ps';
1799          $ps->text_direction = 'rtl';
1800          $ps->facebook_locale = 'ps_AF';
1801  
1802          $rhg = new GP_Locale();
1803          $rhg->english_name = 'Rohingya';
1804          $rhg->native_name = 'Ruáinga';
1805          $rhg->lang_code_iso_639_3 = 'rhg';
1806          $rhg->country_code = 'mm';
1807          $rhg->wp_locale = 'rhg';
1808          $rhg->slug = 'rhg';
1809          $rhg->nplurals = 1;
1810          $rhg->plural_expression = '0';
1811  
1812          $ro = new GP_Locale();
1813          $ro->english_name = 'Romanian';
1814          $ro->native_name = 'Română';
1815          $ro->lang_code_iso_639_1 = 'ro';
1816          $ro->lang_code_iso_639_2 = 'ron';
1817          $ro->country_code = 'ro';
1818          $ro->wp_locale = 'ro_RO';
1819          $ro->slug = 'ro';
1820          $ro->nplurals = 3;
1821          $ro->plural_expression = '(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2)';
1822          $ro->google_code = 'ro';
1823          $ro->facebook_locale = 'ro_RO';
1824  
1825          $roh = new GP_Locale();
1826          $roh->english_name = 'Romansh';
1827          $roh->native_name = 'Rumantsch';
1828          $roh->lang_code_iso_639_2 = 'rm';
1829          $roh->lang_code_iso_639_3 = 'roh';
1830          $roh->country_code = 'ch';
1831          $roh->wp_locale = 'roh';
1832          $roh->slug = 'roh';
1833  
1834          $ru = new GP_Locale();
1835          $ru->english_name = 'Russian';
1836          $ru->native_name = 'Русский';
1837          $ru->lang_code_iso_639_1 = 'ru';
1838          $ru->lang_code_iso_639_2 = 'rus';
1839          $ru->country_code = 'ru';
1840          $ru->wp_locale = 'ru_RU';
1841          $ru->slug = 'ru';
1842          $ru->nplurals = 3;
1843          $ru->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1844          $ru->google_code = 'ru';
1845          $ru->facebook_locale = 'ru_RU';
1846  
1847          $rue = new GP_Locale();
1848          $rue->english_name = 'Rusyn';
1849          $rue->native_name = 'Русиньскый';
1850          $rue->lang_code_iso_639_3 = 'rue';
1851          $rue->wp_locale = 'rue';
1852          $rue->slug = 'rue';
1853          $rue->nplurals = 3;
1854          $rue->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1855  
1856          $rup = new GP_Locale();
1857          $rup->english_name = 'Aromanian';
1858          $rup->native_name = 'Armãneashce';
1859          $rup->lang_code_iso_639_2 = 'rup';
1860          $rup->lang_code_iso_639_3 = 'rup';
1861          $rup->country_code = 'mk';
1862          $rup->wp_locale = 'rup_MK';
1863          $rup->slug = 'rup';
1864  
1865          $sah = new GP_Locale();
1866          $sah->english_name = 'Sakha';
1867          $sah->native_name = 'Сахалыы';
1868          $sah->lang_code_iso_639_2 = 'sah';
1869          $sah->lang_code_iso_639_3 = 'sah';
1870          $sah->country_code = 'ru';
1871          $sah->wp_locale = 'sah';
1872          $sah->slug = 'sah';
1873  
1874          $sa_in = new GP_Locale();
1875          $sa_in->english_name = 'Sanskrit';
1876          $sa_in->native_name = 'भारतम्';
1877          $sa_in->lang_code_iso_639_1 = 'sa';
1878          $sa_in->lang_code_iso_639_2 = 'san';
1879          $sa_in->lang_code_iso_639_3 = 'san';
1880          $sa_in->country_code = 'in';
1881          $sa_in->wp_locale = 'sa_IN';
1882          $sa_in->slug = 'sa-in';
1883          $sa_in->facebook_locale = 'sa_IN';
1884  
1885          $scn = new GP_Locale();
1886          $scn->english_name = 'Sicilian';
1887          $scn->native_name = 'Sicilianu';
1888          $scn->lang_code_iso_639_3 = 'scn';
1889          $scn->country_code = 'it';
1890          $scn->wp_locale = 'scn';
1891          $scn->slug = 'scn';
1892  
1893          $si = new GP_Locale();
1894          $si->english_name = 'Sinhala';
1895          $si->native_name = 'සිංහල';
1896          $si->lang_code_iso_639_1 = 'si';
1897          $si->lang_code_iso_639_2 = 'sin';
1898          $si->country_code = 'lk';
1899          $si->wp_locale = 'si_LK';
1900          $si->slug = 'si';
1901          $si->google_code = 'si';
1902          $si->facebook_locale = 'si_LK';
1903  
1904          $sk = new GP_Locale();
1905          $sk->english_name = 'Slovak';
1906          $sk->native_name = 'Slovenčina';
1907          $sk->lang_code_iso_639_1 = 'sk';
1908          $sk->lang_code_iso_639_2 = 'slk';
1909          $sk->country_code = 'sk';
1910          $sk->slug = 'sk';
1911          $sk->wp_locale = 'sk_SK';
1912          $sk->nplurals = 3;
1913          $sk->plural_expression = '(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2';
1914          $sk->google_code = 'sk';
1915          $sk->facebook_locale = 'sk_SK';
1916  
1917          $skr = new GP_Locale();
1918          $skr->english_name = 'Saraiki';
1919          $skr->native_name = 'سرائیکی';
1920          $skr->lang_code_iso_639_3 = 'skr';
1921          $skr->country_code = 'pk';
1922          $skr->wp_locale = 'skr';
1923          $skr->slug = 'skr';
1924          $skr->nplurals = 2;
1925          $skr->plural_expression = '(n > 1)';
1926          $skr->text_direction = 'rtl';
1927  
1928          $sl = new GP_Locale();
1929          $sl->english_name = 'Slovenian';
1930          $sl->native_name = 'Slovenščina';
1931          $sl->lang_code_iso_639_1 = 'sl';
1932          $sl->lang_code_iso_639_2 = 'slv';
1933          $sl->country_code = 'si';
1934          $sl->wp_locale = 'sl_SI';
1935          $sl->slug = 'sl';
1936          $sl->nplurals = 4;
1937          $sl->plural_expression = '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3)';
1938          $sl->google_code = 'sl';
1939          $sl->facebook_locale = 'sl_SI';
1940  
1941          $sna = new GP_Locale();
1942          $sna->english_name = 'Shona';
1943          $sna->native_name = 'ChiShona';
1944          $sna->lang_code_iso_639_1 = 'sn';
1945          $sna->lang_code_iso_639_3 = 'sna';
1946          $sna->country_code = 'zw';
1947          $sna->wp_locale = 'sna';
1948          $sna->slug = 'sna';
1949  
1950          $snd = new GP_Locale();
1951          $snd->english_name = 'Sindhi';
1952          $snd->native_name = 'سنڌي';
1953          $snd->lang_code_iso_639_1 = 'sd';
1954          $snd->lang_code_iso_639_2 = 'sd';
1955          $snd->lang_code_iso_639_3 = 'snd';
1956          $snd->country_code = 'pk';
1957          $snd->wp_locale = 'snd';
1958          $snd->slug = 'snd';
1959          $snd->text_direction = 'rtl';
1960  
1961          $so = new GP_Locale();
1962          $so->english_name = 'Somali';
1963          $so->native_name = 'Afsoomaali';
1964          $so->lang_code_iso_639_1 = 'so';
1965          $so->lang_code_iso_639_2 = 'som';
1966          $so->lang_code_iso_639_3 = 'som';
1967          $so->country_code = 'so';
1968          $so->wp_locale = 'so_SO';
1969          $so->slug = 'so';
1970          $so->google_code = 'so';
1971          $so->facebook_locale = 'so_SO';
1972  
1973          $sq = new GP_Locale();
1974          $sq->english_name = 'Albanian';
1975          $sq->native_name = 'Shqip';
1976          $sq->lang_code_iso_639_1 = 'sq';
1977          $sq->lang_code_iso_639_2 = 'sqi';
1978          $sq->wp_locale = 'sq';
1979          $sq->country_code = 'al';
1980          $sq->slug = 'sq';
1981          $sq->google_code = 'sq';
1982          $sq->facebook_locale = 'sq_AL';
1983  
1984          $sq_xk = new GP_Locale();
1985          $sq_xk->english_name = 'Shqip (Kosovo)';
1986          $sq_xk->native_name = 'Për Kosovën Shqip';
1987          $sq_xk->lang_code_iso_639_1 = 'sq';
1988          $sq_xk->country_code = 'xk'; // Temporary country code until Kosovo is assigned an ISO code.
1989          $sq_xk->wp_locale = 'sq_XK';
1990          $sq_xk->slug = 'sq-xk';
1991  
1992          $sr = new GP_Locale();
1993          $sr->english_name = 'Serbian';
1994          $sr->native_name = 'Српски језик';
1995          $sr->lang_code_iso_639_1 = 'sr';
1996          $sr->lang_code_iso_639_2 = 'srp';
1997          $sr->country_code = 'rs';
1998          $sr->wp_locale = 'sr_RS';
1999          $sr->slug = 'sr';
2000          $sr->nplurals = 3;
2001          $sr->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
2002          $sr->google_code = 'sr';
2003          $sr->facebook_locale = 'sr_RS';
2004  
2005          $srd = new GP_Locale();
2006          $srd->english_name = 'Sardinian';
2007          $srd->native_name = 'Sardu';
2008          $srd->lang_code_iso_639_1 = 'sc';
2009          $srd->lang_code_iso_639_2 = 'srd';
2010          $srd->country_code = 'it';
2011          $srd->wp_locale = 'srd';
2012          $srd->slug = 'srd';
2013          $srd->facebook_locale = 'sc_IT';
2014  
2015          $ssw = new GP_Locale();
2016          $ssw->english_name = 'Swati';
2017          $ssw->native_name = 'SiSwati';
2018          $ssw->lang_code_iso_639_1 = 'ss';
2019          $ssw->lang_code_iso_639_2 = 'ssw';
2020          $ssw->lang_code_iso_639_3 = 'ssw';
2021          $ssw->country_code = 'sz';
2022          $ssw->wp_locale = 'ssw';
2023          $ssw->slug = 'ssw';
2024  
2025          $su = new GP_Locale();
2026          $su->english_name = 'Sundanese';
2027          $su->native_name = 'Basa Sunda';
2028          $su->lang_code_iso_639_1 = 'su';
2029          $su->lang_code_iso_639_2 = 'sun';
2030          $su->country_code = 'id';
2031          $su->wp_locale = 'su_ID';
2032          $su->slug = 'su';
2033          $su->nplurals = 1;
2034          $su->plural_expression = '0';
2035          $su->google_code = 'su';
2036  
2037          $sv = new GP_Locale();
2038          $sv->english_name = 'Swedish';
2039          $sv->native_name = 'Svenska';
2040          $sv->lang_code_iso_639_1 = 'sv';
2041          $sv->lang_code_iso_639_2 = 'swe';
2042          $sv->country_code = 'se';
2043          $sv->wp_locale = 'sv_SE';
2044          $sv->slug = 'sv';
2045          $sv->google_code = 'sv';
2046          $sv->facebook_locale = 'sv_SE';
2047  
2048          $sw = new GP_Locale();
2049          $sw->english_name = 'Swahili';
2050          $sw->native_name = 'Kiswahili';
2051          $sw->lang_code_iso_639_1 = 'sw';
2052          $sw->lang_code_iso_639_2 = 'swa';
2053          $sw->wp_locale = 'sw';
2054          $sw->slug = 'sw';
2055          $sw->google_code = 'sw';
2056          $sw->facebook_locale = 'sw_KE';
2057  
2058          $syr = new GP_Locale();
2059          $syr->english_name = 'Syriac';
2060          $syr->native_name = 'Syriac';
2061          $syr->lang_code_iso_639_3 = 'syr';
2062          $syr->country_code = 'iq';
2063          $syr->wp_locale = 'syr';
2064          $syr->slug = 'syr';
2065  
2066          $szl = new GP_Locale();
2067          $szl->english_name = 'Silesian';
2068          $szl->native_name = 'Ślōnskŏ gŏdka';
2069          $szl->lang_code_iso_639_3 = 'szl';
2070          $szl->country_code = 'pl';
2071          $szl->wp_locale = 'szl';
2072          $szl->slug = 'szl';
2073          $szl->nplurals = 3;
2074          $szl->plural_expression = '(n==1 ? 0 : n%10>=2 && n%10<=4 && n%100==20 ? 1 : 2)';
2075          $szl->facebook_locale = 'sz_PL';
2076  
2077          $ta = new GP_Locale();
2078          $ta->english_name = 'Tamil';
2079          $ta->native_name = 'தமிழ்';
2080          $ta->lang_code_iso_639_1 = 'ta';
2081          $ta->lang_code_iso_639_2 = 'tam';
2082          $ta->country_code = 'in';
2083          $ta->wp_locale = 'ta_IN';
2084          $ta->slug = 'ta';
2085          $ta->google_code = 'ta';
2086          $ta->facebook_locale = 'ta_IN';
2087  
2088          $ta_lk = new GP_Locale();
2089          $ta_lk->english_name = 'Tamil (Sri Lanka)';
2090          $ta_lk->native_name = 'தமிழ்';
2091          $ta_lk->lang_code_iso_639_1 = 'ta';
2092          $ta_lk->lang_code_iso_639_2 = 'tam';
2093          $ta_lk->country_code = 'lk';
2094          $ta_lk->wp_locale = 'ta_LK';
2095          $ta_lk->slug = 'ta-lk';
2096          $ta_lk->google_code = 'ta';
2097          $ta_lk->variant_root = $ta->slug;
2098          $ta->variants[ $ta_lk->slug ] = $ta_lk->english_name;
2099  
2100          $tah = new GP_Locale();
2101          $tah->english_name = 'Tahitian';
2102          $tah->native_name = 'Reo Tahiti';
2103          $tah->lang_code_iso_639_1 = 'ty';
2104          $tah->lang_code_iso_639_2 = 'tah';
2105          $tah->lang_code_iso_639_3 = 'tah';
2106          $tah->country_code = 'fr';
2107          $tah->wp_locale = 'tah';
2108          $tah->slug = 'tah';
2109          $tah->nplurals = 2;
2110          $tah->plural_expression = '(n > 1)';
2111  
2112          $te = new GP_Locale();
2113          $te->english_name = 'Telugu';
2114          $te->native_name = 'తెలుగు';
2115          $te->lang_code_iso_639_1 = 'te';
2116          $te->lang_code_iso_639_2 = 'tel';
2117          $te->wp_locale = 'te';
2118          $te->slug = 'te';
2119          $te->google_code = 'te';
2120          $te->facebook_locale = 'te_IN';
2121  
2122          $tg = new GP_Locale();
2123          $tg->english_name = 'Tajik';
2124          $tg->native_name = 'Тоҷикӣ';
2125          $tg->lang_code_iso_639_1 = 'tg';
2126          $tg->lang_code_iso_639_2 = 'tgk';
2127          $tah->country_code = 'tj';
2128          $tg->wp_locale = 'tg';
2129          $tg->slug = 'tg';
2130          $tg->google_code = 'tg';
2131          $tg->facebook_locale = 'tg_TJ';
2132  
2133          $th = new GP_Locale();
2134          $th->english_name = 'Thai';
2135          $th->native_name = 'ไทย';
2136          $th->lang_code_iso_639_1 = 'th';
2137          $th->lang_code_iso_639_2 = 'tha';
2138          $th->wp_locale = 'th';
2139          $th->slug = 'th';
2140          $th->nplurals = 1;
2141          $th->plural_expression = '0';
2142          $th->google_code = 'th';
2143          $th->facebook_locale = 'th_TH';
2144  
2145          $tir = new GP_Locale();
2146          $tir->english_name = 'Tigrinya';
2147          $tir->native_name = 'ትግርኛ';
2148          $tir->lang_code_iso_639_1 = 'ti';
2149          $tir->lang_code_iso_639_2 = 'tir';
2150          $tir->country_code = 'er';
2151          $tir->wp_locale = 'tir';
2152          $tir->slug = 'tir';
2153          $tir->nplurals = 1;
2154          $tir->plural_expression = '0';
2155  
2156          $tlh = new GP_Locale();
2157          $tlh->english_name = 'Klingon';
2158          $tlh->native_name = 'TlhIngan';
2159          $tlh->lang_code_iso_639_2 = 'tlh';
2160          $tlh->slug = 'tlh';
2161          $tlh->nplurals = 1;
2162          $tlh->plural_expression = '0';
2163          $tlh->facebook_locale = 'tl_ST';
2164  
2165          $tl = new GP_Locale();
2166          $tl->english_name = 'Tagalog';
2167          $tl->native_name = 'Tagalog';
2168          $tl->lang_code_iso_639_1 = 'tl';
2169          $tl->lang_code_iso_639_2 = 'tgl';
2170          $tl->country_code = 'ph';
2171          $tl->wp_locale = 'tl';
2172          $tl->slug = 'tl';
2173          $tl->google_code = 'tl';
2174          $tl->facebook_locale = 'tl_PH';
2175  
2176          $tr = new GP_Locale();
2177          $tr->english_name = 'Turkish';
2178          $tr->native_name = 'Türkçe';
2179          $tr->lang_code_iso_639_1 = 'tr';
2180          $tr->lang_code_iso_639_2 = 'tur';
2181          $tr->country_code = 'tr';
2182          $tr->wp_locale = 'tr_TR';
2183          $tr->slug = 'tr';
2184          $tr->nplurals = 2;
2185          $tr->plural_expression = '(n > 1)';
2186          $tr->google_code = 'tr';
2187          $tr->facebook_locale = 'tr_TR';
2188  
2189          $tt_ru = new GP_Locale();
2190          $tt_ru->english_name = 'Tatar';
2191          $tt_ru->native_name = 'Татар теле';
2192          $tt_ru->lang_code_iso_639_1 = 'tt';
2193          $tt_ru->lang_code_iso_639_2 = 'tat';
2194          $tt_ru->country_code = 'ru';
2195          $tt_ru->wp_locale = 'tt_RU';
2196          $tt_ru->slug = 'tt';
2197          $tt_ru->nplurals = 1;
2198          $tt_ru->plural_expression = '0';
2199          $tt_ru->facebook_locale = 'tt_RU';
2200  
2201          $tuk = new GP_Locale();
2202          $tuk->english_name = 'Turkmen';
2203          $tuk->native_name = 'Türkmençe';
2204          $tuk->lang_code_iso_639_1 = 'tk';
2205          $tuk->lang_code_iso_639_2 = 'tuk';
2206          $tuk->country_code = 'tm';
2207          $tuk->wp_locale = 'tuk';
2208          $tuk->slug = 'tuk';
2209          $tuk->nplurals = 2;
2210          $tuk->plural_expression = '(n > 1)';
2211          $tuk->facebook_locale = 'tk_TM';
2212  
2213          $twd = new GP_Locale();
2214          $twd->english_name = 'Tweants';
2215          $twd->native_name = 'Twents';
2216          $twd->lang_code_iso_639_3 = 'twd';
2217          $twd->country_code = 'nl';
2218          $twd->wp_locale = 'twd';
2219          $twd->slug = 'twd';
2220  
2221          $tzm = new GP_Locale();
2222          $tzm->english_name = 'Tamazight (Central Atlas)';
2223          $tzm->native_name = 'ⵜⴰⵎⴰⵣⵉⵖⵜ';
2224          $tzm->lang_code_iso_639_2 = 'tzm';
2225          $tzm->country_code = 'ma';
2226          $tzm->wp_locale = 'tzm';
2227          $tzm->slug = 'tzm';
2228          $tzm->nplurals = 2;
2229          $tzm->plural_expression = '(n > 1)';
2230  
2231          $udm = new GP_Locale();
2232          $udm->english_name = 'Udmurt';
2233          $udm->native_name = 'Удмурт кыл';
2234          $udm->lang_code_iso_639_2 = 'udm';
2235          $udm->slug = 'udm';
2236  
2237          $ug = new GP_Locale();
2238          $ug->english_name = 'Uighur';
2239          $ug->native_name = 'ئۇيغۇرچە';
2240          $ug->lang_code_iso_639_1 = 'ug';
2241          $ug->lang_code_iso_639_2 = 'uig';
2242          $ug->country_code = 'cn';
2243          $ug->wp_locale = 'ug_CN';
2244          $ug->slug = 'ug';
2245          $ug->text_direction = 'rtl';
2246  
2247          $uk = new GP_Locale();
2248          $uk->english_name = 'Ukrainian';
2249          $uk->native_name = 'Українська';
2250          $uk->lang_code_iso_639_1 = 'uk';
2251          $uk->lang_code_iso_639_2 = 'ukr';
2252          $uk->country_code = 'ua';
2253          $uk->wp_locale = 'uk';
2254          $uk->slug = 'uk';
2255          $uk->nplurals = 3;
2256          $uk->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
2257          $uk->google_code = 'uk';
2258          $uk->facebook_locale = 'uk_UA';
2259  
2260          $ur = new GP_Locale();
2261          $ur->english_name = 'Urdu';
2262          $ur->native_name = 'اردو';
2263          $ur->lang_code_iso_639_1 = 'ur';
2264          $ur->lang_code_iso_639_2 = 'urd';
2265          $ur->country_code = 'pk';
2266          $ur->wp_locale = 'ur';
2267          $ur->slug = 'ur';
2268          $ur->text_direction = 'rtl';
2269          $ur->google_code = 'ur';
2270          $ur->facebook_locale = 'ur_PK';
2271  
2272          $uz = new GP_Locale();
2273          $uz->english_name = 'Uzbek';
2274          $uz->native_name = 'O‘zbekcha';
2275          $uz->lang_code_iso_639_1 = 'uz';
2276          $uz->lang_code_iso_639_2 = 'uzb';
2277          $uz->country_code = 'uz';
2278          $uz->wp_locale = 'uz_UZ';
2279          $uz->slug = 'uz';
2280          $uz->nplurals = 1;
2281          $uz->plural_expression = '0';
2282          $uz->google_code = 'uz';
2283          $uz->facebook_locale = 'uz_UZ';
2284  
2285          $vec = new GP_Locale();
2286          $vec->english_name = 'Venetian';
2287          $vec->native_name = 'Vèneta';
2288          $vec->lang_code_iso_639_2 = 'roa';
2289          $vec->lang_code_iso_639_3 = 'vec';
2290          $vec->country_code = 'it';
2291          $vec->slug = 'vec';
2292  
2293          $vi = new GP_Locale();
2294          $vi->english_name = 'Vietnamese';
2295          $vi->native_name = 'Tiếng Việt';
2296          $vi->lang_code_iso_639_1 = 'vi';
2297          $vi->lang_code_iso_639_2 = 'vie';
2298          $vi->country_code = 'vn';
2299          $vi->wp_locale = 'vi';
2300          $vi->slug = 'vi';
2301          $vi->nplurals = 1;
2302          $vi->plural_expression = '0';
2303          $vi->google_code = 'vi';
2304          $vi->facebook_locale = 'vi_VN';
2305  
2306          $wa = new GP_Locale();
2307          $wa->english_name = 'Walloon';
2308          $wa->native_name = 'Walon';
2309          $wa->lang_code_iso_639_1 = 'wa';
2310          $wa->lang_code_iso_639_2 = 'wln';
2311          $wa->country_code = 'be';
2312          $wa->wp_locale = 'wa';
2313          $wa->slug = 'wa';
2314  
2315          $xho = new GP_Locale();
2316          $xho->english_name = 'Xhosa';
2317          $xho->native_name = 'isiXhosa';
2318          $xho->lang_code_iso_639_1 = 'xh';
2319          $xho->lang_code_iso_639_2 = 'xho';
2320          $xho->lang_code_iso_639_3 = 'xho';
2321          $xho->country_code = 'za';
2322          $xho->wp_locale = 'xho';
2323          $xho->slug = 'xho';
2324          $xho->google_code = 'xh';
2325          $xho->facebook_locale = 'xh_ZA';
2326  
2327          $xmf = new GP_Locale();
2328          $xmf->english_name = 'Mingrelian';
2329          $xmf->native_name = 'მარგალური ნინა';
2330          $xmf->lang_code_iso_639_3 = 'xmf';
2331          $xmf->country_code = 'ge';
2332          $xmf->wp_locale = 'xmf';
2333          $xmf->slug = 'xmf';
2334  
2335          $yi = new GP_Locale();
2336          $yi->english_name = 'Yiddish';
2337          $yi->native_name = 'ייִדיש';
2338          $yi->lang_code_iso_639_1 = 'yi';
2339          $yi->lang_code_iso_639_2 = 'yid';
2340          $yi->slug = 'yi';
2341          $yi->text_direction = 'rtl';
2342          $yi->google_code = 'yi';
2343  
2344          $yor = new GP_Locale();
2345          $yor->english_name = 'Yoruba';
2346          $yor->native_name = 'Yorùbá';
2347          $yor->lang_code_iso_639_1 = 'yo';
2348          $yor->lang_code_iso_639_2 = 'yor';
2349          $yor->lang_code_iso_639_3 = 'yor';
2350          $yor->country_code = 'ng';
2351          $yor->wp_locale = 'yor';
2352          $yor->slug = 'yor';
2353          $yor->google_code = 'yo';
2354          $yor->facebook_locale = 'yo_NG';
2355  
2356          $zh = new GP_Locale();
2357          $zh->english_name = 'Chinese';
2358          $zh->native_name = '中文';
2359          $zh->lang_code_iso_639_1 = 'zh';
2360          $zh->lang_code_iso_639_2 = 'zho';
2361          $zh->slug = 'zh';
2362          $zh->nplurals = 1;
2363          $zh->plural_expression = '0';
2364  
2365          $zh_cn = new GP_Locale();
2366          $zh_cn->english_name = 'Chinese (China)';
2367          $zh_cn->native_name = '简体中文';
2368          $zh_cn->lang_code_iso_639_1 = 'zh';
2369          $zh_cn->lang_code_iso_639_2 = 'zho';
2370          $zh_cn->country_code = 'cn';
2371          $zh_cn->wp_locale = 'zh_CN';
2372          $zh_cn->slug = 'zh-cn';
2373          $zh_cn->nplurals = 1;
2374          $zh_cn->plural_expression = '0';
2375          $zh_cn->google_code = 'zh-CN';
2376          $zh_cn->facebook_locale = 'zh_CN';
2377          $zh_cn->variant_root = $zh->slug;
2378          $zh->variants[ $zh_cn->slug ] = $zh_cn->english_name;
2379  
2380          $zh_hk = new GP_Locale();
2381          $zh_hk->english_name = 'Chinese (Hong Kong)';
2382          $zh_hk->native_name = '香港中文版    ';
2383          $zh_hk->lang_code_iso_639_1 = 'zh';
2384          $zh_hk->lang_code_iso_639_2 = 'zho';
2385          $zh_hk->country_code = 'hk';
2386          $zh_hk->wp_locale = 'zh_HK';
2387          $zh_hk->slug = 'zh-hk';
2388          $zh_hk->nplurals = 1;
2389          $zh_hk->plural_expression = '0';
2390          $zh_hk->facebook_locale = 'zh_HK';
2391  
2392          $zh_sg = new GP_Locale();
2393          $zh_sg->english_name = 'Chinese (Singapore)';
2394          $zh_sg->native_name = '中文';
2395          $zh_sg->lang_code_iso_639_1 = 'zh';
2396          $zh_sg->lang_code_iso_639_2 = 'zho';
2397          $zh_sg->country_code = 'sg';
2398          $zh_sg->wp_locale = 'zh_SG';
2399          $zh_sg->slug = 'zh-sg';
2400          $zh_sg->nplurals = 1;
2401          $zh_sg->plural_expression = '0';
2402          $zh_sg->variant_root = $zh_cn->slug;
2403          $zh->variants[ $zh_sg->slug ] = $zh_cn->english_name;
2404  
2405          $zh_tw = new GP_Locale();
2406          $zh_tw->english_name = 'Chinese (Taiwan)';
2407          $zh_tw->native_name = '繁體中文';
2408          $zh_tw->lang_code_iso_639_1 = 'zh';
2409          $zh_tw->lang_code_iso_639_2 = 'zho';
2410          $zh_tw->country_code = 'tw';
2411          $zh_tw->slug = 'zh-tw';
2412          $zh_tw->wp_locale= 'zh_TW';
2413          $zh_tw->nplurals = 1;
2414          $zh_tw->plural_expression = '0';
2415          $zh_tw->google_code = 'zh-TW';
2416          $zh_tw->facebook_locale = 'zh_TW';
2417  
2418          $zul = new GP_Locale();
2419          $zul->english_name = 'Zulu';
2420          $zul->native_name = 'isiZulu';
2421          $zul->lang_code_iso_639_1 = 'zu';
2422          $zul->lang_code_iso_639_2 = 'zul';
2423          $zul->lang_code_iso_639_3 = 'zul';
2424          $zul->country_code = 'za';
2425          $zul->wp_locale = 'zul';
2426          $zul->slug = 'zul';
2427          $zul->google_code = 'zu';
2428  
2429          $def_vars = get_defined_vars();
2430  
2431          if ( function_exists( 'apply_filters' ) ) {
2432              /**
2433               * Fires after the locales have been defined but before they have been assigned to the object property.
2434               *
2435               * @since 3.0.0
2436               *
2437               * @param array $def_vars The array of locale objects.
2438               *
2439               * @return array The updated array of locale objects.
2440               */
2441              $def_vars = apply_filters( 'gp_locale_definitions_arrary', $def_vars );
2442          }
2443  
2444          foreach ( $def_vars as $locale ) {
2445              $this->locales[ $locale->slug ] = $locale;
2446          }
2447      }
2448  
2449      public static function &instance() {
2450          if ( ! isset( $GLOBALS['gp_locales'] ) )
2451              $GLOBALS['gp_locales'] = new GP_Locales;
2452  
2453          return $GLOBALS['gp_locales'];
2454      }
2455  
2456  	public static function locales() {
2457          $instance = GP_Locales::instance();
2458          return $instance->locales;
2459      }
2460  
2461  	public static function exists( $slug ) {
2462          $instance = GP_Locales::instance();
2463          return isset( $instance->locales[ $slug ] );
2464      }
2465  
2466  	public static function by_slug( $slug ) {
2467          $instance = GP_Locales::instance();
2468          return isset( $instance->locales[ $slug ] )? $instance->locales[ $slug ] : null;
2469      }
2470  
2471  	public static function by_field( $field_name, $field_value ) {
2472          $instance = GP_Locales::instance();
2473          $result   = false;
2474  
2475          foreach( $instance->locales() as $locale ) {
2476              if ( isset( $locale->$field_name ) && $locale->$field_name == $field_value ) {
2477                  $result = $locale;
2478                  break;
2479              }
2480          }
2481  
2482          return $result;
2483      }
2484  }
2485  
2486  endif;


Generated: Tue Jan 22 01:02:31 2019 Cross-referenced by PHPXref 0.7.1