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


Generated: Sat Jul 4 01:01:51 2020 Cross-referenced by PHPXref 0.7.1