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


Generated: Thu Oct 28 01:01:10 2021 Cross-referenced by PHPXref 0.7.1