PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 4.9.3
Jetpack – WP Security, Backup, Speed, & Growth v4.9.3
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
jetpack / locales.php

locales.php in Jetpack – WP Security, Backup, Speed, & Growth 4.9.3, at locales.php

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