[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/locales/ -> locales.php (source)

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


Generated: Mon Oct 21 01:01:55 2019 Cross-referenced by PHPXref 0.7.1