[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

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


Generated: Mon Nov 18 01:01:56 2019 Cross-referenced by PHPXref 0.7.1