PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 6.1.2
Jetpack – WP Security, Backup, Speed, & Growth v6.1.2
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 6.1.2, at locales.php

2,288 lines 64.3 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_CR = new GP_Locale();
698 $es_CR->english_name = 'Spanish (Costa Rica)';
699 $es_CR->native_name = 'Español';
700 $es_CR->lang_code_iso_639_1 = 'es';
701 $es_CR->lang_code_iso_639_2 = 'spa';
702 $es_CR->country_code = 'cr';
703 $es_CR->wp_locale = 'es_CR';
704 $es_CR->slug = 'es-cr';
705
706 $es_gt = new GP_Locale();
707 $es_gt->english_name = 'Spanish (Guatemala)';
708 $es_gt->native_name = 'Español de Guatemala';
709 $es_gt->lang_code_iso_639_1 = 'es';
710 $es_gt->lang_code_iso_639_2 = 'spa';
711 $es_gt->country_code = 'gt';
712 $es_gt->wp_locale = 'es_GT';
713 $es_gt->slug = 'es-gt';
714 $es_gt->google_code = 'es';
715 $es_gt->facebook_locale = 'es_LA';
716
717 $es_mx = new GP_Locale();
718 $es_mx->english_name = 'Spanish (Mexico)';
719 $es_mx->native_name = 'Español de México';
720 $es_mx->lang_code_iso_639_1 = 'es';
721 $es_mx->lang_code_iso_639_2 = 'spa';
722 $es_mx->country_code = 'mx';
723 $es_mx->wp_locale = 'es_MX';
724 $es_mx->slug = 'es-mx';
725 $es_mx->google_code = 'es';
726 $es_mx->facebook_locale = 'es_MX';
727
728 $es_pe = new GP_Locale();
729 $es_pe->english_name = 'Spanish (Peru)';
730 $es_pe->native_name = 'Español de Perú';
731 $es_pe->lang_code_iso_639_1 = 'es';
732 $es_pe->lang_code_iso_639_2 = 'spa';
733 $es_pe->country_code = 'pe';
734 $es_pe->wp_locale = 'es_PE';
735 $es_pe->slug = 'es-pe';
736 $es_pe->google_code = 'es';
737 $es_pe->facebook_locale = 'es_LA';
738
739 $es_pr = new GP_Locale();
740 $es_pr->english_name = 'Spanish (Puerto Rico)';
741 $es_pr->native_name = 'Español de Puerto Rico';
742 $es_pr->lang_code_iso_639_1 = 'es';
743 $es_pr->lang_code_iso_639_2 = 'spa';
744 $es_pr->country_code = 'pr';
745 $es_pr->wp_locale = 'es_PR';
746 $es_pr->slug = 'es-pr';
747 $es_pr->google_code = 'es';
748 $es_pr->facebook_locale = 'es_LA';
749
750 $es_ve = new GP_Locale();
751 $es_ve->english_name = 'Spanish (Venezuela)';
752 $es_ve->native_name = 'Español de Venezuela';
753 $es_ve->lang_code_iso_639_1 = 'es';
754 $es_ve->lang_code_iso_639_2 = 'spa';
755 $es_ve->country_code = 've';
756 $es_ve->wp_locale = 'es_VE';
757 $es_ve->slug = 'es-ve';
758 $es_ve->google_code = 'es';
759 $es_ve->facebook_locale = 'es_VE';
760
761 $et = new GP_Locale();
762 $et->english_name = 'Estonian';
763 $et->native_name = 'Eesti';
764 $et->lang_code_iso_639_1 = 'et';
765 $et->lang_code_iso_639_2 = 'est';
766 $et->country_code = 'ee';
767 $et->wp_locale = 'et';
768 $et->slug = 'et';
769 $et->google_code = 'et';
770 $et->facebook_locale = 'et_EE';
771
772 $eu = new GP_Locale();
773 $eu->english_name = 'Basque';
774 $eu->native_name = 'Euskara';
775 $eu->lang_code_iso_639_1 = 'eu';
776 $eu->lang_code_iso_639_2 = 'eus';
777 $eu->country_code = 'es';
778 $eu->wp_locale = 'eu';
779 $eu->slug = 'eu';
780 $eu->google_code = 'eu';
781 $eu->facebook_locale = 'eu_ES';
782
783 $fa = new GP_Locale();
784 $fa->english_name = 'Persian';
785 $fa->native_name = 'فارسی';
786 $fa->lang_code_iso_639_1 = 'fa';
787 $fa->lang_code_iso_639_2 = 'fas';
788 $fa->wp_locale = 'fa_IR';
789 $fa->slug = 'fa';
790 $fa->nplurals = 1;
791 $fa->plural_expression = '0';
792 $fa->text_direction = 'rtl';
793 $fa->google_code = 'fa';
794 $fa->facebook_locale = 'fa_IR';
795
796 $fa_af = new GP_Locale();
797 $fa_af->english_name = 'Persian (Afghanistan)';
798 $fa_af->native_name = '(فارسی (افغانستان';
799 $fa_af->lang_code_iso_639_1 = 'fa';
800 $fa_af->lang_code_iso_639_2 = 'fas';
801 $fa_af->wp_locale = 'fa_AF';
802 $fa_af->slug = 'fa-af';
803 $fa_af->nplurals = 1;
804 $fa_af->plural_expression = '0';
805 $fa_af->text_direction = 'rtl';
806 $fa_af->google_code = 'fa';
807
808 $ff_sn = new GP_Locale();
809 $ff_sn->english_name = 'Fulah';
810 $ff_sn->native_name = 'Pulaar';
811 $ff_sn->lang_code_iso_639_1 = 'ff';
812 $ff_sn->lang_code_iso_639_2 = 'fuc';
813 $ff_sn->country_code = 'sn';
814 $ff_sn->wp_locale = 'fuc';
815 $ff_sn->slug = 'fuc';
816 $ff_sn->plural_expression = 'n!=1';
817
818 $fi = new GP_Locale();
819 $fi->english_name = 'Finnish';
820 $fi->native_name = 'Suomi';
821 $fi->lang_code_iso_639_1 = 'fi';
822 $fi->lang_code_iso_639_2 = 'fin';
823 $fi->country_code = 'fi';
824 $fi->wp_locale = 'fi';
825 $fi->slug = 'fi';
826 $fi->google_code = 'fi';
827 $fi->facebook_locale = 'fi_FI';
828
829 $fj = new GP_Locale();
830 $fj->english_name = 'Fijian';
831 $fj->native_name = 'Vosa Vakaviti';
832 $fj->lang_code_iso_639_1 = 'fj';
833 $fj->lang_code_iso_639_2 = 'fij';
834 $fj->country_code = 'fj';
835 $fj->slug = 'fj';
836
837 $fo = new GP_Locale();
838 $fo->english_name = 'Faroese';
839 $fo->native_name = 'Føroyskt';
840 $fo->lang_code_iso_639_1 = 'fo';
841 $fo->lang_code_iso_639_2 = 'fao';
842 $fo->country_code = 'fo';
843 $fo->wp_locale = 'fo';
844 $fo->slug = 'fo';
845 $fo->facebook_locale = 'fo_FO';
846
847 $fr = new GP_Locale();
848 $fr->english_name = 'French (France)';
849 $fr->native_name = 'Français';
850 $fr->lang_code_iso_639_1 = 'fr';
851 $fr->country_code = 'fr';
852 $fr->wp_locale = 'fr_FR';
853 $fr->slug = 'fr';
854 $fr->nplurals = 2;
855 $fr->plural_expression = 'n > 1';
856 $fr->google_code = 'fr';
857 $fr->facebook_locale = 'fr_FR';
858
859 $fr_be = new GP_Locale();
860 $fr_be->english_name = 'French (Belgium)';
861 $fr_be->native_name = 'Français de Belgique';
862 $fr_be->lang_code_iso_639_1 = 'fr';
863 $fr_be->lang_code_iso_639_2 = 'fra';
864 $fr_be->country_code = 'be';
865 $fr_be->wp_locale = 'fr_BE';
866 $fr_be->slug = 'fr-be';
867
868 $fr_ca = new GP_Locale();
869 $fr_ca->english_name = 'French (Canada)';
870 $fr_ca->native_name = 'Français du Canada';
871 $fr_ca->lang_code_iso_639_1 = 'fr';
872 $fr_ca->lang_code_iso_639_2 = 'fra';
873 $fr_ca->country_code = 'ca';
874 $fr_ca->wp_locale = 'fr_CA';
875 $fr_ca->slug = 'fr-ca';
876 $fr_ca->facebook_locale = 'fr_CA';
877
878 $fr_ch = new GP_Locale();
879 $fr_ch->english_name = 'French (Switzerland)';
880 $fr_ch->native_name = 'Français de Suisse';
881 $fr_ch->lang_code_iso_639_1 = 'fr';
882 $fr_ch->lang_code_iso_639_2 = 'fra';
883 $fr_ch->country_code = 'ch';
884 $fr_ch->slug = 'fr-ch';
885
886 $frp = new GP_Locale();
887 $frp->english_name = 'Arpitan';
888 $frp->native_name = 'Arpitan';
889 $frp->lang_code_iso_639_3 = 'frp';
890 $frp->country_code = 'fr';
891 $frp->wp_locale = 'frp';
892 $frp->slug = 'frp';
893 $frp->nplurals = 2;
894 $frp->plural_expression = 'n > 1';
895
896 $fur = new GP_Locale();
897 $fur->english_name = 'Friulian';
898 $fur->native_name = 'Friulian';
899 $fur->lang_code_iso_639_2 = 'fur';
900 $fur->lang_code_iso_639_3 = 'fur';
901 $fur->country_code = 'it';
902 $fur->wp_locale = 'fur';
903 $fur->slug = 'fur';
904
905 $fy = new GP_Locale();
906 $fy->english_name = 'Frisian';
907 $fy->native_name = 'Frysk';
908 $fy->lang_code_iso_639_1 = 'fy';
909 $fy->lang_code_iso_639_2 = 'fry';
910 $fy->country_code = 'nl';
911 $fy->wp_locale = 'fy';
912 $fy->slug = 'fy';
913 $fy->facebook_locale = 'fy_NL';
914
915 $ga = new GP_Locale();
916 $ga->english_name = 'Irish';
917 $ga->native_name = 'Gaelige';
918 $ga->lang_code_iso_639_1 = 'ga';
919 $ga->lang_code_iso_639_2 = 'gle';
920 $ga->country_code = 'ie';
921 $ga->slug = 'ga';
922 $ga->wp_locale = 'ga';
923 $ga->nplurals = 5;
924 $ga->plural_expression = 'n==1 ? 0 : n==2 ? 1 : n<7 ? 2 : n<11 ? 3 : 4';
925 $ga->google_code = 'ga';
926 $ga->facebook_locale = 'ga_IE';
927
928 $gd = new GP_Locale();
929 $gd->english_name = 'Scottish Gaelic';
930 $gd->native_name = 'Gàidhlig';
931 $gd->lang_code_iso_639_1 = 'gd';
932 $gd->lang_code_iso_639_2 = 'gla';
933 $gd->lang_code_iso_639_3 = 'gla';
934 $gd->country_code = 'gb';
935 $gd->wp_locale = 'gd';
936 $gd->slug = 'gd';
937 $gd->nplurals = 4;
938 $gd->plural_expression = '(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n < 20) ? 2 : 3';
939 $gd->google_code = 'gd';
940
941 $gl = new GP_Locale();
942 $gl->english_name = 'Galician';
943 $gl->native_name = 'Galego';
944 $gl->lang_code_iso_639_1 = 'gl';
945 $gl->lang_code_iso_639_2 = 'glg';
946 $gl->country_code = 'es';
947 $gl->wp_locale = 'gl_ES';
948 $gl->slug = 'gl';
949 $gl->google_code = 'gl';
950 $gl->facebook_locale = 'gl_ES';
951
952 $gn = new GP_Locale();
953 $gn->english_name = 'Guaraní';
954 $gn->native_name = 'Avañe\'';
955 $gn->lang_code_iso_639_1 = 'gn';
956 $gn->lang_code_iso_639_2 = 'grn';
957 $gn->wp_locale = 'gn';
958 $gn->slug = 'gn';
959
960 $gsw = new GP_Locale();
961 $gsw->english_name = 'Swiss German';
962 $gsw->native_name = 'Schwyzerdütsch';
963 $gsw->lang_code_iso_639_2 = 'gsw';
964 $gsw->lang_code_iso_639_3 = 'gsw';
965 $gsw->country_code = 'ch';
966 $gsw->wp_locale = 'gsw';
967 $gsw->slug = 'gsw';
968
969 $gu = new GP_Locale();
970 $gu->english_name = 'Gujarati';
971 $gu->native_name = 'ગુજરાતી';
972 $gu->lang_code_iso_639_1 = 'gu';
973 $gu->lang_code_iso_639_2 = 'guj';
974 $gu->wp_locale = 'gu';
975 $gu->slug = 'gu';
976 $gu->google_code = 'gu';
977 $gu->facebook_locale = 'gu_IN';
978
979 $ha = new GP_Locale();
980 $ha->english_name = 'Hausa (Arabic)';
981 $ha->native_name = 'هَوُسَ';
982 $ha->lang_code_iso_639_1 = 'ha';
983 $ha->lang_code_iso_639_2 = 'hau';
984 $ha->slug = 'ha';
985 $ha->text_direction = 'rtl';
986 $ha->google_code = 'ha';
987
988 $hat = new GP_Locale();
989 $hat->english_name = 'Haitian Creole';
990 $hat->native_name = 'Kreyol ayisyen';
991 $hat->lang_code_iso_639_1 = 'ht';
992 $hat->lang_code_iso_639_2 = 'hat';
993 $hat->lang_code_iso_639_3 = 'hat';
994 $hat->country_code = 'ht';
995 $hat->wp_locale = 'hat';
996 $hat->slug = 'hat';
997
998 $hau = new GP_Locale();
999 $hau->english_name = 'Hausa';
1000 $hau->native_name = 'Harshen Hausa';
1001 $hau->lang_code_iso_639_1 = 'ha';
1002 $hau->lang_code_iso_639_2 = 'hau';
1003 $hau->lang_code_iso_639_3 = 'hau';
1004 $hau->country_code = 'ng';
1005 $hau->wp_locale = 'hau';
1006 $hau->slug = 'hau';
1007 $hau->google_code = 'ha';
1008 $hau->facebook_locale = 'ha_NG';
1009
1010 $haw = new GP_Locale();
1011 $haw->english_name = 'Hawaiian';
1012 $haw->native_name = 'Ōlelo Hawaiʻi';
1013 $haw->lang_code_iso_639_2 = 'haw';
1014 $haw->country_code = 'us';
1015 $haw->wp_locale = 'haw_US';
1016 $haw->slug = 'haw';
1017
1018 $haz = new GP_Locale();
1019 $haz->english_name = 'Hazaragi';
1020 $haz->native_name = 'هزاره گی';
1021 $haz->lang_code_iso_639_3 = 'haz';
1022 $haz->country_code = 'af';
1023 $haz->wp_locale = 'haz';
1024 $haz->slug = 'haz';
1025 $haz->text_direction = 'rtl';
1026
1027 $he = new GP_Locale();
1028 $he->english_name = 'Hebrew';
1029 $he->native_name = 'עִבְרִית';
1030 $he->lang_code_iso_639_1 = 'he';
1031 $he->country_code = 'il';
1032 $he->wp_locale = 'he_IL';
1033 $he->slug = 'he';
1034 $he->text_direction = 'rtl';
1035 $he->google_code = 'iw';
1036 $he->facebook_locale = 'he_IL';
1037
1038 $hi = new GP_Locale();
1039 $hi->english_name = 'Hindi';
1040 $hi->native_name = 'हिन्दी';
1041 $hi->lang_code_iso_639_1 = 'hi';
1042 $hi->lang_code_iso_639_2 = 'hin';
1043 $hi->country_code = 'in';
1044 $hi->wp_locale = 'hi_IN';
1045 $hi->slug = 'hi';
1046 $hi->google_code = 'hi';
1047 $hi->facebook_locale = 'hi_IN';
1048
1049 $hr = new GP_Locale();
1050 $hr->english_name = 'Croatian';
1051 $hr->native_name = 'Hrvatski';
1052 $hr->lang_code_iso_639_1 = 'hr';
1053 $hr->lang_code_iso_639_2 = 'hrv';
1054 $hr->country_code = 'hr';
1055 $hr->wp_locale = 'hr';
1056 $hr->slug = 'hr';
1057 $hr->nplurals = 3;
1058 $hr->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1059 $hr->google_code = 'hr';
1060 $hr->facebook_locale = 'hr_HR';
1061
1062 $hu = new GP_Locale();
1063 $hu->english_name = 'Hungarian';
1064 $hu->native_name = 'Magyar';
1065 $hu->lang_code_iso_639_1 = 'hu';
1066 $hu->lang_code_iso_639_2 = 'hun';
1067 $hu->country_code = 'hu';
1068 $hu->wp_locale = 'hu_HU';
1069 $hu->slug = 'hu';
1070 $hu->google_code = 'hu';
1071 $hu->facebook_locale = 'hu_HU';
1072
1073 $hy = new GP_Locale();
1074 $hy->english_name = 'Armenian';
1075 $hy->native_name = 'Հայերեն';
1076 $hy->lang_code_iso_639_1 = 'hy';
1077 $hy->lang_code_iso_639_2 = 'hye';
1078 $hy->country_code = 'am';
1079 $hy->wp_locale = 'hy';
1080 $hy->slug = 'hy';
1081 $hy->google_code = 'hy';
1082 $hy->facebook_locale = 'hy_AM';
1083
1084 $ia = new GP_Locale();
1085 $ia->english_name = 'Interlingua';
1086 $ia->native_name = 'Interlingua';
1087 $ia->lang_code_iso_639_1 = 'ia';
1088 $ia->lang_code_iso_639_2 = 'ina';
1089 $ia->slug = 'ia';
1090
1091 $id = new GP_Locale();
1092 $id->english_name = 'Indonesian';
1093 $id->native_name = 'Bahasa Indonesia';
1094 $id->lang_code_iso_639_1 = 'id';
1095 $id->lang_code_iso_639_2 = 'ind';
1096 $id->country_code = 'id';
1097 $id->wp_locale = 'id_ID';
1098 $id->slug = 'id';
1099 $id->nplurals = 2;
1100 $id->plural_expression = 'n > 1';
1101 $id->google_code = 'id';
1102 $id->facebook_locale = 'id_ID';
1103
1104 $ido = new GP_Locale();
1105 $ido->english_name = 'Ido';
1106 $ido->native_name = 'Ido';
1107 $ido->lang_code_iso_639_1 = 'io';
1108 $ido->lang_code_iso_639_2 = 'ido';
1109 $ido->lang_code_iso_639_3 = 'ido';
1110 $ido->wp_locale = 'ido';
1111 $ido->slug = 'ido';
1112
1113 $ike = new GP_Locale();
1114 $ike->english_name = 'Inuktitut';
1115 $ike->native_name = 'ᐃᓄᒃᑎᑐᑦ';
1116 $ike->lang_code_iso_639_1 = 'iu';
1117 $ike->lang_code_iso_639_2 = 'iku';
1118 $ike->country_code = 'ca';
1119 $ike->slug = 'ike';
1120
1121 $ilo = new GP_Locale();
1122 $ilo->english_name = 'Iloko';
1123 $ilo->native_name = 'Pagsasao nga Iloko';
1124 $ilo->lang_code_iso_639_2 = 'ilo';
1125 $ilo->country_code = 'ph';
1126 $ilo->slug = 'ilo';
1127
1128 $is = new GP_Locale();
1129 $is->english_name = 'Icelandic';
1130 $is->native_name = 'Íslenska';
1131 $is->lang_code_iso_639_1 = 'is';
1132 $is->lang_code_iso_639_2 = 'isl';
1133 $is->country_code = 'is';
1134 $is->slug = 'is';
1135 $is->wp_locale = 'is_IS';
1136 $is->nplurals = 2;
1137 $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)';
1138 $is->google_code = 'is';
1139 $is->facebook_locale = 'is_IS';
1140
1141 $it = new GP_Locale();
1142 $it->english_name = 'Italian';
1143 $it->native_name = 'Italiano';
1144 $it->lang_code_iso_639_1 = 'it';
1145 $it->lang_code_iso_639_2 = 'ita';
1146 $it->country_code = 'it';
1147 $it->wp_locale = 'it_IT';
1148 $it->slug = 'it';
1149 $it->google_code = 'it';
1150 $it->facebook_locale = 'it_IT';
1151
1152 $ja = new GP_Locale();
1153 $ja->english_name = 'Japanese';
1154 $ja->native_name = '日本語';
1155 $ja->lang_code_iso_639_1 = 'ja';
1156 $ja->country_code = 'jp';
1157 $ja->wp_locale = 'ja';
1158 $ja->slug = 'ja';
1159 $ja->google_code = 'ja';
1160 $ja->facebook_locale = 'ja_JP';
1161 $ja->nplurals = 1;
1162 $ja->plural_expression = '0';
1163
1164 $jv = new GP_Locale();
1165 $jv->english_name = 'Javanese';
1166 $jv->native_name = 'Basa Jawa';
1167 $jv->lang_code_iso_639_1 = 'jv';
1168 $jv->lang_code_iso_639_2 = 'jav';
1169 $jv->country_code = 'id';
1170 $jv->wp_locale = 'jv_ID';
1171 $jv->slug = 'jv';
1172 $jv->google_code = 'jw';
1173 $jv->facebook_locale = 'jv_ID';
1174
1175 $ka = new GP_Locale();
1176 $ka->english_name = 'Georgian';
1177 $ka->native_name = 'ქართული';
1178 $ka->lang_code_iso_639_1 = 'ka';
1179 $ka->lang_code_iso_639_2 = 'kat';
1180 $ka->country_code = 'ge';
1181 $ka->wp_locale = 'ka_GE';
1182 $ka->slug = 'ka';
1183 $ka->nplurals = 1;
1184 $ka->plural_expression = '0';
1185 $ka->google_code = 'ka';
1186 $ka->facebook_locale = 'ka_GE';
1187
1188 $kab = new GP_Locale();
1189 $kab->english_name = 'Kabyle';
1190 $kab->native_name = 'Taqbaylit';
1191 $kab->lang_code_iso_639_2 = 'kab';
1192 $kab->lang_code_iso_639_3 = 'kab';
1193 $kab->country_code = 'dz';
1194 $kab->wp_locale = 'kab';
1195 $kab->slug = 'kab';
1196 $kab->nplurals = 2;
1197 $kab->plural_expression = '(n > 1)';
1198
1199 $kal = new GP_Locale();
1200 $kal->english_name = 'Greenlandic';
1201 $kal->native_name = 'Kalaallisut';
1202 $kal->lang_code_iso_639_1 = 'kl';
1203 $kal->lang_code_iso_639_2 = 'kal';
1204 $kal->lang_code_iso_639_3 = 'kal';
1205 $kal->country_code = 'gl';
1206 $kal->wp_locale = 'kal';
1207 $kal->slug = 'kal';
1208
1209 $kin = new GP_Locale();
1210 $kin->english_name = 'Kinyarwanda';
1211 $kin->native_name = 'Ikinyarwanda';
1212 $kin->lang_code_iso_639_1 = 'rw';
1213 $kin->lang_code_iso_639_2 = 'kin';
1214 $kin->lang_code_iso_639_3 = 'kin';
1215 $kin->wp_locale = 'kin';
1216 $kin->country_code = 'rw';
1217 $kin->slug = 'kin';
1218 $kin->facebook_locale = 'rw_RW';
1219
1220 $kk = new GP_Locale();
1221 $kk->english_name = 'Kazakh';
1222 $kk->native_name = 'Қазақ тілі';
1223 $kk->lang_code_iso_639_1 = 'kk';
1224 $kk->lang_code_iso_639_2 = 'kaz';
1225 $kk->country_code = 'kz';
1226 $kk->wp_locale = 'kk';
1227 $kk->slug = 'kk';
1228 $kk->google_code = 'kk';
1229 $kk->facebook_locale = 'kk_KZ';
1230
1231 $km = new GP_Locale();
1232 $km->english_name = 'Khmer';
1233 $km->native_name = 'ភាសាខ្មែរ';
1234 $km->lang_code_iso_639_1 = 'km';
1235 $km->lang_code_iso_639_2 = 'khm';
1236 $km->country_code = 'kh';
1237 $km->wp_locale = 'km';
1238 $km->slug = 'km';
1239 $km->nplurals = 1;
1240 $km->plural_expression = '0';
1241 $km->google_code = 'km';
1242 $km->facebook_locale = 'km_KH';
1243
1244 $kmr = new GP_Locale();
1245 $kmr->english_name = 'Kurdish (Kurmanji)';
1246 $kmr->native_name = 'Kurdî';
1247 $kmr->lang_code_iso_639_1 = 'ku';
1248 $kmr->lang_code_iso_639_3 = 'kmr';
1249 $kmr->country_code = 'tr';
1250 $kmr->slug = 'kmr';
1251 $kmr->facebook_locale = 'ku_TR';
1252
1253 $kn = new GP_Locale();
1254 $kn->english_name = 'Kannada';
1255 $kn->native_name = 'ಕನ್ನಡ';
1256 $kn->lang_code_iso_639_1 = 'kn';
1257 $kn->lang_code_iso_639_2 = 'kan';
1258 $kn->country_code = 'in';
1259 $kn->wp_locale = 'kn';
1260 $kn->slug = 'kn';
1261 $kn->google_code = 'kn';
1262 $kn->facebook_locale = 'kn_IN';
1263
1264 $ko = new GP_Locale();
1265 $ko->english_name = 'Korean';
1266 $ko->native_name = '한국어';
1267 $ko->lang_code_iso_639_1 = 'ko';
1268 $ko->lang_code_iso_639_2 = 'kor';
1269 $ko->country_code = 'kr';
1270 $ko->wp_locale = 'ko_KR';
1271 $ko->slug = 'ko';
1272 $ko->nplurals = 1;
1273 $ko->plural_expression = '0';
1274 $ko->google_code = 'ko';
1275 $ko->facebook_locale = 'ko_KR';
1276
1277 $ks = new GP_Locale();
1278 $ks->english_name = 'Kashmiri';
1279 $ks->native_name = 'कश्मीरी';
1280 $ks->lang_code_iso_639_1 = 'ks';
1281 $ks->lang_code_iso_639_2 = 'kas';
1282 $ks->slug = 'ks';
1283
1284 $kir = new GP_Locale();
1285 $kir->english_name = 'Kyrgyz';
1286 $kir->native_name = 'Кыргызча';
1287 $kir->lang_code_iso_639_1 = 'ky';
1288 $kir->lang_code_iso_639_2 = 'kir';
1289 $kir->lang_code_iso_639_3 = 'kir';
1290 $kir->country_code = 'kg';
1291 $kir->wp_locale = 'kir';
1292 $kir->slug = 'kir';
1293 $kir->nplurals = 1;
1294 $kir->plural_expression = '0';
1295 $kir->google_code = 'ky';
1296
1297 $la = new GP_Locale();
1298 $la->english_name = 'Latin';
1299 $la->native_name = 'Latine';
1300 $la->lang_code_iso_639_1 = 'la';
1301 $la->lang_code_iso_639_2 = 'lat';
1302 $la->slug = 'la';
1303 $la->google_code = 'la';
1304 $la->facebook_locale = 'la_VA';
1305
1306 $lb = new GP_Locale();
1307 $lb->english_name = 'Luxembourgish';
1308 $lb->native_name = 'Lëtzebuergesch';
1309 $lb->lang_code_iso_639_1 = 'lb';
1310 $lb->country_code = 'lu';
1311 $lb->wp_locale = 'lb_LU';
1312 $lb->slug = 'lb';
1313
1314 $li = new GP_Locale();
1315 $li->english_name = 'Limburgish';
1316 $li->native_name = 'Limburgs';
1317 $li->lang_code_iso_639_1 = 'li';
1318 $li->lang_code_iso_639_2 = 'lim';
1319 $li->lang_code_iso_639_3 = 'lim';
1320 $li->country_code = 'nl';
1321 $li->wp_locale = 'li';
1322 $li->slug = 'li';
1323 $li->facebook_locale = 'li_NL';
1324
1325 $lin = new GP_Locale();
1326 $lin->english_name = 'Lingala';
1327 $lin->native_name = 'Ngala';
1328 $lin->lang_code_iso_639_1 = 'ln';
1329 $lin->lang_code_iso_639_2 = 'lin';
1330 $lin->country_code = 'cd';
1331 $lin->wp_locale = 'lin';
1332 $lin->slug = 'lin';
1333 $lin->nplurals = 2;
1334 $lin->plural_expression = 'n>1';
1335 $lin->facebook_locale = 'ln_CD';
1336
1337 $lo = new GP_Locale();
1338 $lo->english_name = 'Lao';
1339 $lo->native_name = 'ພາສາລາວ';
1340 $lo->lang_code_iso_639_1 = 'lo';
1341 $lo->lang_code_iso_639_2 = 'lao';
1342 $lo->country_code = 'LA';
1343 $lo->wp_locale = 'lo';
1344 $lo->slug = 'lo';
1345 $lo->nplurals = 1;
1346 $lo->plural_expression = '0';
1347 $lo->google_code = 'lo';
1348 $lo->facebook_locale = 'lo_LA';
1349
1350 $lt = new GP_Locale();
1351 $lt->english_name = 'Lithuanian';
1352 $lt->native_name = 'Lietuvių kalba';
1353 $lt->lang_code_iso_639_1 = 'lt';
1354 $lt->lang_code_iso_639_2 = 'lit';
1355 $lt->country_code = 'lt';
1356 $lt->wp_locale = 'lt_LT';
1357 $lt->slug = 'lt';
1358 $lt->nplurals = 3;
1359 $lt->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2)';
1360 $lt->google_code = 'lt';
1361 $lt->facebook_locale = 'lt_LT';
1362
1363 $lv = new GP_Locale();
1364 $lv->english_name = 'Latvian';
1365 $lv->native_name = 'Latviešu valoda';
1366 $lv->lang_code_iso_639_1 = 'lv';
1367 $lv->lang_code_iso_639_2 = 'lav';
1368 $lv->country_code = 'lv';
1369 $lv->wp_locale = 'lv';
1370 $lv->slug = 'lv';
1371 $lv->nplurals = 3;
1372 $lv->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2)';
1373 $lv->google_code = 'lv';
1374 $lv->facebook_locale = 'lv_LV';
1375
1376 $me = new GP_Locale();
1377 $me->english_name = 'Montenegrin';
1378 $me->native_name = 'Crnogorski jezik';
1379 $me->lang_code_iso_639_1 = 'me';
1380 $me->country_code = 'me';
1381 $me->wp_locale = 'me_ME';
1382 $me->slug = 'me';
1383 $me->nplurals = 3;
1384 $me->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1385
1386 $mg = new GP_Locale();
1387 $mg->english_name = 'Malagasy';
1388 $mg->native_name = 'Malagasy';
1389 $mg->lang_code_iso_639_1 = 'mg';
1390 $mg->lang_code_iso_639_2 = 'mlg';
1391 $mg->country_code = 'mg';
1392 $mg->wp_locale = 'mg_MG';
1393 $mg->slug = 'mg';
1394 $mg->google_code = 'mg';
1395 $mg->facebook_locale = 'mg_MG';
1396
1397 $mhr = new GP_Locale();
1398 $mhr->english_name = 'Mari (Meadow)';
1399 $mhr->native_name = 'Олык марий';
1400 $mhr->lang_code_iso_639_3 = 'mhr';
1401 $mhr->country_code = 'ru';
1402 $mhr->slug = 'mhr';
1403
1404 $mk = new GP_Locale();
1405 $mk->english_name = 'Macedonian';
1406 $mk->native_name = 'Македонски јазик';
1407 $mk->lang_code_iso_639_1 = 'mk';
1408 $mk->lang_code_iso_639_2 = 'mkd';
1409 $mk->country_code = 'mk';
1410 $mk->wp_locale = 'mk_MK';
1411 $mk->slug = 'mk';
1412 $mk->nplurals = 2;
1413 $mk->plural_expression = 'n==1 || n%10==1 ? 0 : 1';
1414 $mk->google_code = 'mk';
1415 $mk->facebook_locale = 'mk_MK';
1416
1417 $ml = new GP_Locale();
1418 $ml->english_name = 'Malayalam';
1419 $ml->native_name = 'മലയാളം';
1420 $ml->lang_code_iso_639_1 = 'ml';
1421 $ml->lang_code_iso_639_2 = 'mal';
1422 $ml->country_code = 'in';
1423 $ml->wp_locale = 'ml_IN';
1424 $ml->slug = 'ml';
1425 $ml->google_code = 'ml';
1426 $ml->facebook_locale = 'ml_IN';
1427
1428 $mn = new GP_Locale();
1429 $mn->english_name = 'Mongolian';
1430 $mn->native_name = 'Монгол';
1431 $mn->lang_code_iso_639_1 = 'mn';
1432 $mn->lang_code_iso_639_2 = 'mon';
1433 $mn->country_code = 'mn';
1434 $mn->wp_locale = 'mn';
1435 $mn->slug = 'mn';
1436 $mn->google_code = 'mn';
1437 $mn->facebook_locale = 'mn_MN';
1438
1439 $mr = new GP_Locale();
1440 $mr->english_name = 'Marathi';
1441 $mr->native_name = 'मराठी';
1442 $mr->lang_code_iso_639_1 = 'mr';
1443 $mr->lang_code_iso_639_2 = 'mar';
1444 $mr->wp_locale = 'mr';
1445 $mr->slug = 'mr';
1446 $mr->google_code = 'mr';
1447 $mr->facebook_locale = 'mr_IN';
1448
1449 $mri = new GP_Locale();
1450 $mri->english_name = 'Maori';
1451 $mri->native_name = 'Te Reo Māori';
1452 $mri->lang_code_iso_639_1 = 'mi';
1453 $mri->lang_code_iso_639_3 = 'mri';
1454 $mri->country_code = 'nz';
1455 $mri->slug = 'mri';
1456 $mri->wp_locale = 'mri';
1457 $mri->nplurals = 2;
1458 $mri->plural_expression = '(n > 1)';
1459 $mri->google_code = 'mi';
1460
1461 $mrj = new GP_Locale();
1462 $mrj->english_name = 'Mari (Hill)';
1463 $mrj->native_name = 'Кырык мары';
1464 $mrj->lang_code_iso_639_3 = 'mrj';
1465 $mrj->country_code = 'ru';
1466 $mrj->slug = 'mrj';
1467
1468 $ms = new GP_Locale();
1469 $ms->english_name = 'Malay';
1470 $ms->native_name = 'Bahasa Melayu';
1471 $ms->lang_code_iso_639_1 = 'ms';
1472 $ms->lang_code_iso_639_2 = 'msa';
1473 $ms->wp_locale = 'ms_MY';
1474 $ms->slug = 'ms';
1475 $ms->nplurals = 1;
1476 $ms->plural_expression = '0';
1477 $ms->google_code = 'ms';
1478 $ms->facebook_locale = 'ms_MY';
1479
1480 $mwl = new GP_Locale();
1481 $mwl->english_name = 'Mirandese';
1482 $mwl->native_name = 'Mirandés';
1483 $mwl->lang_code_iso_639_2 = 'mwl';
1484 $mwl->slug = 'mwl';
1485
1486 $my = new GP_Locale();
1487 $my->english_name = 'Myanmar (Burmese)';
1488 $my->native_name = 'ဗမာ�
1489 ';
1490 $my->lang_code_iso_639_1 = 'my';
1491 $my->lang_code_iso_639_2 = 'mya';
1492 $my->country_code = 'mm';
1493 $my->wp_locale = 'my_MM';
1494 $my->slug = 'mya';
1495 $my->google_code = 'my';
1496
1497 $ne = new GP_Locale();
1498 $ne->english_name = 'Nepali';
1499 $ne->native_name = 'नेपाली';
1500 $ne->lang_code_iso_639_1 = 'ne';
1501 $ne->lang_code_iso_639_2 = 'nep';
1502 $ne->country_code = 'np';
1503 $ne->wp_locale = 'ne_NP';
1504 $ne->slug = 'ne';
1505 $ne->google_code = 'ne';
1506 $ne->facebook_locale = 'ne_NP';
1507
1508 $nb = new GP_Locale();
1509 $nb->english_name = 'Norwegian (Bokmål)';
1510 $nb->native_name = 'Norsk bokmål';
1511 $nb->lang_code_iso_639_1 = 'nb';
1512 $nb->lang_code_iso_639_2 = 'nob';
1513 $nb->country_code = 'no';
1514 $nb->wp_locale = 'nb_NO';
1515 $nb->slug = 'nb';
1516 $nb->google_code = 'no';
1517 $nb->facebook_locale = 'nb_NO';
1518
1519 $nl = new GP_Locale();
1520 $nl->english_name = 'Dutch';
1521 $nl->native_name = 'Nederlands';
1522 $nl->lang_code_iso_639_1 = 'nl';
1523 $nl->lang_code_iso_639_2 = 'nld';
1524 $nl->country_code = 'nl';
1525 $nl->wp_locale = 'nl_NL';
1526 $nl->slug = 'nl';
1527 $nl->google_code = 'nl';
1528 $nl->facebook_locale = 'nl_NL';
1529
1530 $nl_be = new GP_Locale();
1531 $nl_be->english_name = 'Dutch (Belgium)';
1532 $nl_be->native_name = 'Nederlands (België)';
1533 $nl_be->lang_code_iso_639_1 = 'nl';
1534 $nl_be->lang_code_iso_639_2 = 'nld';
1535 $nl_be->country_code = 'be';
1536 $nl_be->wp_locale = 'nl_BE';
1537 $nl_be->slug = 'nl-be';
1538 $nl_be->google_code = 'nl';
1539
1540 $nn = new GP_Locale();
1541 $nn->english_name = 'Norwegian (Nynorsk)';
1542 $nn->native_name = 'Norsk nynorsk';
1543 $nn->lang_code_iso_639_1 = 'nn';
1544 $nn->lang_code_iso_639_2 = 'nno';
1545 $nn->country_code = 'no';
1546 $nn->wp_locale = 'nn_NO';
1547 $nn->slug = 'nn';
1548 $nn->google_code = 'no';
1549 $nn->facebook_locale = 'nn_NO';
1550
1551 $no = new GP_Locale();
1552 $no->english_name = 'Norwegian';
1553 $no->native_name = 'Norsk';
1554 $no->lang_code_iso_639_1 = 'no';
1555 $no->lang_code_iso_639_2 = 'nor';
1556 $no->country_code = 'no';
1557 $no->slug = 'no';
1558 $no->google_code = 'no';
1559
1560 $oci = new GP_Locale();
1561 $oci->english_name = 'Occitan';
1562 $oci->native_name = 'Occitan';
1563 $oci->lang_code_iso_639_1 = 'oc';
1564 $oci->lang_code_iso_639_2 = 'oci';
1565 $oci->country_code = 'fr';
1566 $oci->wp_locale = 'oci';
1567 $oci->slug = 'oci';
1568 $oci->nplurals = 2;
1569 $oci->plural_expression = '(n > 1)';
1570
1571 $orm = new GP_Locale();
1572 $orm->english_name = 'Oromo';
1573 $orm->native_name = 'Afaan Oromo';
1574 $orm->lang_code_iso_639_1 = 'om';
1575 $orm->lang_code_iso_639_2 = 'orm';
1576 $orm->lang_code_iso_639_3 = 'orm';
1577 $orm->slug = 'orm';
1578 $orm->plural_expression = '(n > 1)';
1579
1580 $ory = new GP_Locale();
1581 $ory->english_name = 'Oriya';
1582 $ory->native_name = 'ଓଡ଼ିଆ';
1583 $ory->lang_code_iso_639_1 = 'or';
1584 $ory->lang_code_iso_639_2 = 'ory';
1585 $ory->country_code = 'in';
1586 $ory->wp_locale = 'ory';
1587 $ory->slug = 'ory';
1588 $ory->facebook_locale = 'or_IN';
1589
1590 $os = new GP_Locale();
1591 $os->english_name = 'Ossetic';
1592 $os->native_name = 'Ирон';
1593 $os->lang_code_iso_639_1 = 'os';
1594 $os->lang_code_iso_639_2 = 'oss';
1595 $os->wp_locale = 'os';
1596 $os->slug = 'os';
1597
1598 $pa = new GP_Locale();
1599 $pa->english_name = 'Punjabi';
1600 $pa->native_name = 'ਪੰਜਾਬੀ';
1601 $pa->lang_code_iso_639_1 = 'pa';
1602 $pa->lang_code_iso_639_2 = 'pan';
1603 $pa->country_code = 'in';
1604 $pa->wp_locale = 'pa_IN';
1605 $pa->slug = 'pa';
1606 $pa->google_code = 'pa';
1607 $pa->facebook_locale = 'pa_IN';
1608
1609 $pl = new GP_Locale();
1610 $pl->english_name = 'Polish';
1611 $pl->native_name = 'Polski';
1612 $pl->lang_code_iso_639_1 = 'pl';
1613 $pl->lang_code_iso_639_2 = 'pol';
1614 $pl->country_code = 'pl';
1615 $pl->wp_locale = 'pl_PL';
1616 $pl->slug = 'pl';
1617 $pl->nplurals = 3;
1618 $pl->plural_expression = '(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1619 $pl->google_code = 'pl';
1620 $pl->facebook_locale = 'pl_PL';
1621
1622 $pt_br = new GP_Locale();
1623 $pt_br->english_name = 'Portuguese (Brazil)';
1624 $pt_br->native_name = 'Português do Brasil';
1625 $pt_br->lang_code_iso_639_1 = 'pt';
1626 $pt_br->lang_code_iso_639_2 = 'por';
1627 $pt_br->country_code = 'br';
1628 $pt_br->wp_locale = 'pt_BR';
1629 $pt_br->slug = 'pt-br';
1630 $pt_br->nplurals = 2;
1631 $pt_br->plural_expression = '(n > 1)';
1632 $pt_br->google_code = 'pt-BR';
1633 $pt_br->facebook_locale = 'pt_BR';
1634
1635 $pt = new GP_Locale();
1636 $pt->english_name = 'Portuguese (Portugal)';
1637 $pt->native_name = 'Português';
1638 $pt->lang_code_iso_639_1 = 'pt';
1639 $pt->country_code = 'pt';
1640 $pt->wp_locale = 'pt_PT';
1641 $pt->slug = 'pt';
1642 $pt->google_code = 'pt-PT';
1643 $pt->facebook_locale = 'pt_PT';
1644
1645 $ps = new GP_Locale();
1646 $ps->english_name = 'Pashto';
1647 $ps->native_name = 'پښتو';
1648 $ps->lang_code_iso_639_1 = 'ps';
1649 $ps->lang_code_iso_639_2 = 'pus';
1650 $ps->country_code = 'af';
1651 $ps->wp_locale = 'ps';
1652 $ps->slug = 'ps';
1653 $ps->text_direction = 'rtl';
1654 $ps->facebook_locale = 'ps_AF';
1655
1656 $rhg = new GP_Locale();
1657 $rhg->english_name = 'Rohingya';
1658 $rhg->native_name = 'Ruáinga';
1659 $rhg->lang_code_iso_639_3 = 'rhg';
1660 $rhg->country_code = 'mm';
1661 $rhg->wp_locale = 'rhg';
1662 $rhg->slug = 'rhg';
1663 $rhg->nplurals = 1;
1664 $rhg->plural_expression = '0';
1665
1666 $ro = new GP_Locale();
1667 $ro->english_name = 'Romanian';
1668 $ro->native_name = 'Română';
1669 $ro->lang_code_iso_639_1 = 'ro';
1670 $ro->lang_code_iso_639_2 = 'ron';
1671 $ro->country_code = 'ro';
1672 $ro->wp_locale = 'ro_RO';
1673 $ro->slug = 'ro';
1674 $ro->nplurals = 3;
1675 $ro->plural_expression = '(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2)';
1676 $ro->google_code = 'ro';
1677 $ro->facebook_locale = 'ro_RO';
1678
1679 $roh = new GP_Locale();
1680 $roh->english_name = 'Romansh';
1681 $roh->native_name = 'Rumantsch';
1682 $roh->lang_code_iso_639_2 = 'rm';
1683 $roh->lang_code_iso_639_3 = 'roh';
1684 $roh->country_code = 'ch';
1685 $roh->wp_locale = 'roh';
1686 $roh->slug = 'roh';
1687
1688 $ru = new GP_Locale();
1689 $ru->english_name = 'Russian';
1690 $ru->native_name = 'Русский';
1691 $ru->lang_code_iso_639_1 = 'ru';
1692 $ru->lang_code_iso_639_2 = 'rus';
1693 $ru->country_code = 'ru';
1694 $ru->wp_locale = 'ru_RU';
1695 $ru->slug = 'ru';
1696 $ru->nplurals = 3;
1697 $ru->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1698 $ru->google_code = 'ru';
1699 $ru->facebook_locale = 'ru_RU';
1700
1701 $rue = new GP_Locale();
1702 $rue->english_name = 'Rusyn';
1703 $rue->native_name = 'Русиньскый';
1704 $rue->lang_code_iso_639_3 = 'rue';
1705 $rue->wp_locale = 'rue';
1706 $rue->slug = 'rue';
1707 $rue->nplurals = 3;
1708 $rue->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1709
1710 $rup = new GP_Locale();
1711 $rup->english_name = 'Aromanian';
1712 $rup->native_name = 'Armãneashce';
1713 $rup->lang_code_iso_639_2 = 'rup';
1714 $rup->lang_code_iso_639_3 = 'rup';
1715 $rup->country_code = 'mk';
1716 $rup->wp_locale = 'rup_MK';
1717 $rup->slug = 'rup';
1718
1719 $sah = new GP_Locale();
1720 $sah->english_name = 'Sakha';
1721 $sah->native_name = 'Са�
1722 алыы';
1723 $sah->lang_code_iso_639_2 = 'sah';
1724 $sah->lang_code_iso_639_3 = 'sah';
1725 $sah->country_code = 'ru';
1726 $sah->wp_locale = 'sah';
1727 $sah->slug = 'sah';
1728
1729 $sa_in = new GP_Locale();
1730 $sa_in->english_name = 'Sanskrit';
1731 $sa_in->native_name = 'भारतम्';
1732 $sa_in->lang_code_iso_639_1 = 'sa';
1733 $sa_in->lang_code_iso_639_2 = 'san';
1734 $sa_in->lang_code_iso_639_3 = 'san';
1735 $sa_in->country_code = 'in';
1736 $sa_in->wp_locale = 'sa_IN';
1737 $sa_in->slug = 'sa-in';
1738 $sa_in->facebook_locale = 'sa_IN';
1739
1740 $scn = new GP_Locale();
1741 $scn->english_name = 'Sicilian';
1742 $scn->native_name = 'Sicilianu';
1743 $scn->lang_code_iso_639_3 = 'scn';
1744 $scn->country_code = 'it';
1745 $scn->wp_locale = 'scn';
1746 $scn->slug = 'scn';
1747
1748 $si = new GP_Locale();
1749 $si->english_name = 'Sinhala';
1750 $si->native_name = 'සිංහල';
1751 $si->lang_code_iso_639_1 = 'si';
1752 $si->lang_code_iso_639_2 = 'sin';
1753 $si->country_code = 'lk';
1754 $si->wp_locale = 'si_LK';
1755 $si->slug = 'si';
1756 $si->google_code = 'si';
1757 $si->facebook_locale = 'si_LK';
1758
1759 $sk = new GP_Locale();
1760 $sk->english_name = 'Slovak';
1761 $sk->native_name = 'Slovenčina';
1762 $sk->lang_code_iso_639_1 = 'sk';
1763 $sk->lang_code_iso_639_2 = 'slk';
1764 $sk->country_code = 'sk';
1765 $sk->slug = 'sk';
1766 $sk->wp_locale = 'sk_SK';
1767 $sk->nplurals = 3;
1768 $sk->plural_expression = '(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2';
1769 $sk->google_code = 'sk';
1770 $sk->facebook_locale = 'sk_SK';
1771
1772 $sl = new GP_Locale();
1773 $sl->english_name = 'Slovenian';
1774 $sl->native_name = 'Slovenščina';
1775 $sl->lang_code_iso_639_1 = 'sl';
1776 $sl->lang_code_iso_639_2 = 'slv';
1777 $sl->country_code = 'si';
1778 $sl->wp_locale = 'sl_SI';
1779 $sl->slug = 'sl';
1780 $sl->nplurals = 4;
1781 $sl->plural_expression = '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3)';
1782 $sl->google_code = 'sl';
1783 $sl->facebook_locale = 'sl_SI';
1784
1785 $sna = new GP_Locale();
1786 $sna->english_name = 'Shona';
1787 $sna->native_name = 'ChiShona';
1788 $sna->lang_code_iso_639_1 = 'sn';
1789 $sna->lang_code_iso_639_3 = 'sna';
1790 $sna->country_code = 'zw';
1791 $sna->wp_locale = 'sna';
1792 $sna->slug = 'sna';
1793
1794 $snd = new GP_Locale();
1795 $snd->english_name = 'Sindhi';
1796 $snd->native_name = 'سنڌي';
1797 $snd->lang_code_iso_639_1 = 'sd';
1798 $snd->lang_code_iso_639_2 = 'sd';
1799 $snd->lang_code_iso_639_3 = 'snd';
1800 $snd->country_code = 'pk';
1801 $snd->wp_locale = 'snd';
1802 $snd->slug = 'snd';
1803 $snd->text_direction = 'rtl';
1804
1805 $so = new GP_Locale();
1806 $so->english_name = 'Somali';
1807 $so->native_name = 'Afsoomaali';
1808 $so->lang_code_iso_639_1 = 'so';
1809 $so->lang_code_iso_639_2 = 'som';
1810 $so->lang_code_iso_639_3 = 'som';
1811 $so->country_code = 'so';
1812 $so->wp_locale = 'so_SO';
1813 $so->slug = 'so';
1814 $so->google_code = 'so';
1815 $so->facebook_locale = 'so_SO';
1816
1817 $sq = new GP_Locale();
1818 $sq->english_name = 'Albanian';
1819 $sq->native_name = 'Shqip';
1820 $sq->lang_code_iso_639_1 = 'sq';
1821 $sq->lang_code_iso_639_2 = 'sqi';
1822 $sq->wp_locale = 'sq';
1823 $sq->country_code = 'al';
1824 $sq->slug = 'sq';
1825 $sq->google_code = 'sq';
1826 $sq->facebook_locale = 'sq_AL';
1827
1828 $sq_XK = new GP_Locale();
1829 $sq_XK->english_name = 'Shqip (Kosovo)';
1830 $sq_XK->native_name = 'Për Kosovën Shqip';
1831 $sq_XK->lang_code_iso_639_1 = 'sq';
1832 $sq_XK->country_code = 'xk'; // Temporary country code until Kosovo is assigned an ISO code.
1833 $sq_XK->wp_locale = 'sq_XK';
1834 $sq_XK->slug = 'sq-xk';
1835
1836 $sr = new GP_Locale();
1837 $sr->english_name = 'Serbian';
1838 $sr->native_name = 'Српски језик';
1839 $sr->lang_code_iso_639_1 = 'sr';
1840 $sr->lang_code_iso_639_2 = 'srp';
1841 $sr->country_code = 'rs';
1842 $sr->wp_locale = 'sr_RS';
1843 $sr->slug = 'sr';
1844 $sr->nplurals = 3;
1845 $sr->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1846 $sr->google_code = 'sr';
1847 $sr->facebook_locale = 'sr_RS';
1848
1849 $srd = new GP_Locale();
1850 $srd->english_name = 'Sardinian';
1851 $srd->native_name = 'Sardu';
1852 $srd->lang_code_iso_639_1 = 'sc';
1853 $srd->lang_code_iso_639_2 = 'srd';
1854 $srd->country_code = 'it';
1855 $srd->wp_locale = 'srd';
1856 $srd->slug = 'srd';
1857 $srd->facebook_locale = 'sc_IT';
1858
1859 $su = new GP_Locale();
1860 $su->english_name = 'Sundanese';
1861 $su->native_name = 'Basa Sunda';
1862 $su->lang_code_iso_639_1 = 'su';
1863 $su->lang_code_iso_639_2 = 'sun';
1864 $su->country_code = 'id';
1865 $su->wp_locale = 'su_ID';
1866 $su->slug = 'su';
1867 $su->nplurals = 1;
1868 $su->plural_expression = '0';
1869 $su->google_code = 'su';
1870
1871 $sv = new GP_Locale();
1872 $sv->english_name = 'Swedish';
1873 $sv->native_name = 'Svenska';
1874 $sv->lang_code_iso_639_1 = 'sv';
1875 $sv->lang_code_iso_639_2 = 'swe';
1876 $sv->country_code = 'se';
1877 $sv->wp_locale = 'sv_SE';
1878 $sv->slug = 'sv';
1879 $sv->google_code = 'sv';
1880 $sv->facebook_locale = 'sv_SE';
1881
1882 $sw = new GP_Locale();
1883 $sw->english_name = 'Swahili';
1884 $sw->native_name = 'Kiswahili';
1885 $sw->lang_code_iso_639_1 = 'sw';
1886 $sw->lang_code_iso_639_2 = 'swa';
1887 $sw->wp_locale = 'sw';
1888 $sw->slug = 'sw';
1889 $sw->google_code = 'sw';
1890 $sw->facebook_locale = 'sw_KE';
1891
1892 $syr = new GP_Locale();
1893 $syr->english_name = 'Syriac';
1894 $syr->native_name = 'Syriac';
1895 $syr->lang_code_iso_639_3 = 'syr';
1896 $syr->country_code = 'iq';
1897 $syr->wp_locale = 'syr';
1898 $syr->slug = 'syr';
1899
1900 $szl = new GP_Locale();
1901 $szl->english_name = 'Silesian';
1902 $szl->native_name = 'Ślōnskŏ gŏdka';
1903 $szl->lang_code_iso_639_3 = 'szl';
1904 $szl->country_code = 'pl';
1905 $szl->wp_locale = 'szl';
1906 $szl->slug = 'szl';
1907 $szl->nplurals = 3;
1908 $szl->plural_expression = '(n==1 ? 0 : n%10>=2 && n%10<=4 && n%100==20 ? 1 : 2)';
1909 $szl->facebook_locale = 'sz_PL';
1910
1911 $ta = new GP_Locale();
1912 $ta->english_name = 'Tamil';
1913 $ta->native_name = 'தமிழ்';
1914 $ta->lang_code_iso_639_1 = 'ta';
1915 $ta->lang_code_iso_639_2 = 'tam';
1916 $ta->country_code = 'in';
1917 $ta->wp_locale = 'ta_IN';
1918 $ta->slug = 'ta';
1919 $ta->google_code = 'ta';
1920 $ta->facebook_locale = 'ta_IN';
1921
1922 $ta_lk = new GP_Locale();
1923 $ta_lk->english_name = 'Tamil (Sri Lanka)';
1924 $ta_lk->native_name = 'தமிழ்';
1925 $ta_lk->lang_code_iso_639_1 = 'ta';
1926 $ta_lk->lang_code_iso_639_2 = 'tam';
1927 $ta_lk->country_code = 'lk';
1928 $ta_lk->wp_locale = 'ta_LK';
1929 $ta_lk->slug = 'ta-lk';
1930 $ta_lk->google_code = 'ta';
1931
1932 $tah = new GP_Locale();
1933 $tah->english_name = 'Tahitian';
1934 $tah->native_name = 'Reo Tahiti';
1935 $tah->lang_code_iso_639_1 = 'ty';
1936 $tah->lang_code_iso_639_2 = 'tah';
1937 $tah->lang_code_iso_639_3 = 'tah';
1938 $tah->country_code = 'fr';
1939 $tah->wp_locale = 'tah';
1940 $tah->slug = 'tah';
1941 $tah->nplurals = 2;
1942 $tah->plural_expression = '(n > 1)';
1943
1944 $te = new GP_Locale();
1945 $te->english_name = 'Telugu';
1946 $te->native_name = 'తెలుగు';
1947 $te->lang_code_iso_639_1 = 'te';
1948 $te->lang_code_iso_639_2 = 'tel';
1949 $te->wp_locale = 'te';
1950 $te->slug = 'te';
1951 $te->google_code = 'te';
1952 $te->facebook_locale = 'te_IN';
1953
1954 $tg = new GP_Locale();
1955 $tg->english_name = 'Tajik';
1956 $tg->native_name = 'Тоҷикӣ';
1957 $tg->lang_code_iso_639_1 = 'tg';
1958 $tg->lang_code_iso_639_2 = 'tgk';
1959 $tah->country_code = 'tj';
1960 $tg->wp_locale = 'tg';
1961 $tg->slug = 'tg';
1962 $tg->google_code = 'tg';
1963 $tg->facebook_locale = 'tg_TJ';
1964
1965 $th = new GP_Locale();
1966 $th->english_name = 'Thai';
1967 $th->native_name = 'ไทย';
1968 $th->lang_code_iso_639_1 = 'th';
1969 $th->lang_code_iso_639_2 = 'tha';
1970 $th->wp_locale = 'th';
1971 $th->slug = 'th';
1972 $th->nplurals = 1;
1973 $th->plural_expression = '0';
1974 $th->google_code = 'th';
1975 $th->facebook_locale = 'th_TH';
1976
1977 $tir = new GP_Locale();
1978 $tir->english_name = 'Tigrinya';
1979 $tir->native_name = 'ትግርኛ';
1980 $tir->lang_code_iso_639_1 = 'ti';
1981 $tir->lang_code_iso_639_2 = 'tir';
1982 $tir->country_code = 'er';
1983 $tir->wp_locale = 'tir';
1984 $tir->slug = 'tir';
1985 $tir->nplurals = 1;
1986 $tir->plural_expression = '0';
1987
1988 $tlh = new GP_Locale();
1989 $tlh->english_name = 'Klingon';
1990 $tlh->native_name = 'TlhIngan';
1991 $tlh->lang_code_iso_639_2 = 'tlh';
1992 $tlh->slug = 'tlh';
1993 $tlh->nplurals = 1;
1994 $tlh->plural_expression = '0';
1995 $tlh->facebook_locale = 'tl_ST';
1996
1997 $tl = new GP_Locale();
1998 $tl->english_name = 'Tagalog';
1999 $tl->native_name = 'Tagalog';
2000 $tl->lang_code_iso_639_1 = 'tl';
2001 $tl->lang_code_iso_639_2 = 'tgl';
2002 $tl->country_code = 'ph';
2003 $tl->wp_locale = 'tl';
2004 $tl->slug = 'tl';
2005 $tl->google_code = 'tl';
2006 $tl->facebook_locale = 'tl_PH';
2007
2008 $tr = new GP_Locale();
2009 $tr->english_name = 'Turkish';
2010 $tr->native_name = 'Türkçe';
2011 $tr->lang_code_iso_639_1 = 'tr';
2012 $tr->lang_code_iso_639_2 = 'tur';
2013 $tr->country_code = 'tr';
2014 $tr->wp_locale = 'tr_TR';
2015 $tr->slug = 'tr';
2016 $tr->nplurals = 2;
2017 $tr->plural_expression = '(n > 1)';
2018 $tr->google_code = 'tr';
2019 $tr->facebook_locale = 'tr_TR';
2020
2021 $tt_ru = new GP_Locale();
2022 $tt_ru->english_name = 'Tatar';
2023 $tt_ru->native_name = 'Татар теле';
2024 $tt_ru->lang_code_iso_639_1 = 'tt';
2025 $tt_ru->lang_code_iso_639_2 = 'tat';
2026 $tt_ru->country_code = 'ru';
2027 $tt_ru->wp_locale = 'tt_RU';
2028 $tt_ru->slug = 'tt';
2029 $tt_ru->nplurals = 1;
2030 $tt_ru->plural_expression = '0';
2031 $tt_ru->facebook_locale = 'tt_RU';
2032
2033 $tuk = new GP_Locale();
2034 $tuk->english_name = 'Turkmen';
2035 $tuk->native_name = 'Türkmençe';
2036 $tuk->lang_code_iso_639_1 = 'tk';
2037 $tuk->lang_code_iso_639_2 = 'tuk';
2038 $tuk->country_code = 'tm';
2039 $tuk->wp_locale = 'tuk';
2040 $tuk->slug = 'tuk';
2041 $tuk->nplurals = 2;
2042 $tuk->plural_expression = '(n > 1)';
2043 $tuk->facebook_locale = 'tk_TM';
2044
2045 $twd = new GP_Locale();
2046 $twd->english_name = 'Tweants';
2047 $twd->native_name = 'Twents';
2048 $twd->lang_code_iso_639_3 = 'twd';
2049 $twd->country_code = 'nl';
2050 $twd->wp_locale = 'twd';
2051 $twd->slug = 'twd';
2052
2053 $tzm = new GP_Locale();
2054 $tzm->english_name = 'Tamazight (Central Atlas)';
2055 $tzm->native_name = 'ⵜⴰⵎⴰⵣⵉⵖⵜ';
2056 $tzm->lang_code_iso_639_2 = 'tzm';
2057 $tzm->country_code = 'ma';
2058 $tzm->wp_locale = 'tzm';
2059 $tzm->slug = 'tzm';
2060 $tzm->nplurals = 2;
2061 $tzm->plural_expression = '(n > 1)';
2062
2063 $udm = new GP_Locale();
2064 $udm->english_name = 'Udmurt';
2065 $udm->native_name = 'Удмурт кыл';
2066 $udm->lang_code_iso_639_2 = 'udm';
2067 $udm->slug = 'udm';
2068
2069 $ug = new GP_Locale();
2070 $ug->english_name = 'Uighur';
2071 $ug->native_name = 'Uyƣurqə';
2072 $ug->lang_code_iso_639_1 = 'ug';
2073 $ug->lang_code_iso_639_2 = 'uig';
2074 $ug->country_code = 'cn';
2075 $ug->wp_locale = 'ug_CN';
2076 $ug->slug = 'ug';
2077 $ug->text_direction = 'rtl';
2078
2079 $uk = new GP_Locale();
2080 $uk->english_name = 'Ukrainian';
2081 $uk->native_name = 'Українська';
2082 $uk->lang_code_iso_639_1 = 'uk';
2083 $uk->lang_code_iso_639_2 = 'ukr';
2084 $uk->country_code = 'ua';
2085 $uk->wp_locale = 'uk';
2086 $uk->slug = 'uk';
2087 $uk->nplurals = 3;
2088 $uk->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
2089 $uk->google_code = 'uk';
2090 $uk->facebook_locale = 'uk_UA';
2091
2092 $ur = new GP_Locale();
2093 $ur->english_name = 'Urdu';
2094 $ur->native_name = 'اردو';
2095 $ur->lang_code_iso_639_1 = 'ur';
2096 $ur->lang_code_iso_639_2 = 'urd';
2097 $ur->country_code = 'pk';
2098 $ur->wp_locale = 'ur';
2099 $ur->slug = 'ur';
2100 $ur->text_direction = 'rtl';
2101 $ur->google_code = 'ur';
2102 $ur->facebook_locale = 'ur_PK';
2103
2104 $uz = new GP_Locale();
2105 $uz->english_name = 'Uzbek';
2106 $uz->native_name = 'O‘zbekcha';
2107 $uz->lang_code_iso_639_1 = 'uz';
2108 $uz->lang_code_iso_639_2 = 'uzb';
2109 $uz->country_code = 'uz';
2110 $uz->wp_locale = 'uz_UZ';
2111 $uz->slug = 'uz';
2112 $uz->nplurals = 1;
2113 $uz->plural_expression = '0';
2114 $uz->google_code = 'uz';
2115 $uz->facebook_locale = 'uz_UZ';
2116
2117 $vec = new GP_Locale();
2118 $vec->english_name = 'Venetian';
2119 $vec->native_name = 'Vèneta';
2120 $vec->lang_code_iso_639_2 = 'roa';
2121 $vec->lang_code_iso_639_3 = 'vec';
2122 $vec->country_code = 'it';
2123 $vec->slug = 'vec';
2124
2125 $vi = new GP_Locale();
2126 $vi->english_name = 'Vietnamese';
2127 $vi->native_name = 'Tiếng Việt';
2128 $vi->lang_code_iso_639_1 = 'vi';
2129 $vi->lang_code_iso_639_2 = 'vie';
2130 $vi->country_code = 'vn';
2131 $vi->wp_locale = 'vi';
2132 $vi->slug = 'vi';
2133 $vi->nplurals = 1;
2134 $vi->plural_expression = '0';
2135 $vi->google_code = 'vi';
2136 $vi->facebook_locale = 'vi_VN';
2137
2138 $wa = new GP_Locale();
2139 $wa->english_name = 'Walloon';
2140 $wa->native_name = 'Walon';
2141 $wa->lang_code_iso_639_1 = 'wa';
2142 $wa->lang_code_iso_639_2 = 'wln';
2143 $wa->country_code = 'be';
2144 $wa->wp_locale = 'wa';
2145 $wa->slug = 'wa';
2146
2147 $xho = new GP_Locale();
2148 $xho->english_name = 'Xhosa';
2149 $xho->native_name = 'isiXhosa';
2150 $xho->lang_code_iso_639_1 = 'xh';
2151 $xho->lang_code_iso_639_2 = 'xho';
2152 $xho->lang_code_iso_639_3 = 'xho';
2153 $xho->country_code = 'za';
2154 $xho->wp_locale = 'xho';
2155 $xho->slug = 'xho';
2156 $xho->google_code = 'xh';
2157 $xho->facebook_locale = 'xh_ZA';
2158
2159 $xmf = new GP_Locale();
2160 $xmf->english_name = 'Mingrelian';
2161 $xmf->native_name = 'მარგალური ნინა';
2162 $xmf->lang_code_iso_639_3 = 'xmf';
2163 $xmf->country_code = 'ge';
2164 $xmf->wp_locale = 'xmf';
2165 $xmf->slug = 'xmf';
2166
2167 $yi = new GP_Locale();
2168 $yi->english_name = 'Yiddish';
2169 $yi->native_name = 'ייִדיש';
2170 $yi->lang_code_iso_639_1 = 'yi';
2171 $yi->lang_code_iso_639_2 = 'yid';
2172 $yi->slug = 'yi';
2173 $yi->text_direction = 'rtl';
2174 $yi->google_code = 'yi';
2175
2176 $yor = new GP_Locale();
2177 $yor->english_name = 'Yoruba';
2178 $yor->native_name = 'Yorùbá';
2179 $yor->lang_code_iso_639_1 = 'yo';
2180 $yor->lang_code_iso_639_2 = 'yor';
2181 $yor->lang_code_iso_639_3 = 'yor';
2182 $yor->country_code = 'ng';
2183 $yor->wp_locale = 'yor';
2184 $yor->slug = 'yor';
2185 $yor->google_code = 'yo';
2186 $yor->facebook_locale = 'yo_NG';
2187
2188 $zh_cn = new GP_Locale();
2189 $zh_cn->english_name = 'Chinese (China)';
2190 $zh_cn->native_name = '简体中文';
2191 $zh_cn->lang_code_iso_639_1 = 'zh';
2192 $zh_cn->lang_code_iso_639_2 = 'zho';
2193 $zh_cn->country_code = 'cn';
2194 $zh_cn->wp_locale = 'zh_CN';
2195 $zh_cn->slug = 'zh-cn';
2196 $zh_cn->nplurals = 1;
2197 $zh_cn->plural_expression = '0';
2198 $zh_cn->google_code = 'zh-CN';
2199 $zh_cn->facebook_locale = 'zh_CN';
2200
2201 $zh_hk = new GP_Locale();
2202 $zh_hk->english_name = 'Chinese (Hong Kong)';
2203 $zh_hk->native_name = '香港中文版 ';
2204 $zh_hk->lang_code_iso_639_1 = 'zh';
2205 $zh_hk->lang_code_iso_639_2 = 'zho';
2206 $zh_hk->country_code = 'hk';
2207 $zh_hk->wp_locale = 'zh_HK';
2208 $zh_hk->slug = 'zh-hk';
2209 $zh_hk->nplurals = 1;
2210 $zh_hk->plural_expression = '0';
2211 $zh_hk->facebook_locale = 'zh_HK';
2212
2213 $zh_sg = new GP_Locale();
2214 $zh_sg->english_name = 'Chinese (Singapore)';
2215 $zh_sg->native_name = '中文';
2216 $zh_sg->lang_code_iso_639_1 = 'zh';
2217 $zh_sg->lang_code_iso_639_2 = 'zho';
2218 $zh_sg->country_code = 'sg';
2219 $zh_sg->slug = 'zh-sg';
2220 $zh_sg->nplurals = 1;
2221 $zh_sg->plural_expression = '0';
2222
2223 $zh_tw = new GP_Locale();
2224 $zh_tw->english_name = 'Chinese (Taiwan)';
2225 $zh_tw->native_name = '繁體中文';
2226 $zh_tw->lang_code_iso_639_1 = 'zh';
2227 $zh_tw->lang_code_iso_639_2 = 'zho';
2228 $zh_tw->country_code = 'tw';
2229 $zh_tw->slug = 'zh-tw';
2230 $zh_tw->wp_locale= 'zh_TW';
2231 $zh_tw->nplurals = 1;
2232 $zh_tw->plural_expression = '0';
2233 $zh_tw->google_code = 'zh-TW';
2234 $zh_tw->facebook_locale = 'zh_TW';
2235
2236 $zh = new GP_Locale();
2237 $zh->english_name = 'Chinese';
2238 $zh->native_name = '中文';
2239 $zh->lang_code_iso_639_1 = 'zh';
2240 $zh->lang_code_iso_639_2 = 'zho';
2241 $zh->slug = 'zh';
2242 $zh->nplurals = 1;
2243 $zh->plural_expression = '0';
2244
2245 foreach( get_defined_vars() as $locale ) {
2246 $this->locales[ $locale->slug ] = $locale;
2247 }
2248 }
2249
2250 public static function &instance() {
2251 if ( ! isset( $GLOBALS['gp_locales'] ) )
2252 $GLOBALS['gp_locales'] = new GP_Locales;
2253
2254 return $GLOBALS['gp_locales'];
2255 }
2256
2257 public static function locales() {
2258 $instance = GP_Locales::instance();
2259 return $instance->locales;
2260 }
2261
2262 public static function exists( $slug ) {
2263 $instance = GP_Locales::instance();
2264 return isset( $instance->locales[ $slug ] );
2265 }
2266
2267 public static function by_slug( $slug ) {
2268 $instance = GP_Locales::instance();
2269 return isset( $instance->locales[ $slug ] )? $instance->locales[ $slug ] : null;
2270 }
2271
2272 public static function by_field( $field_name, $field_value ) {
2273 $instance = GP_Locales::instance();
2274 $result = false;
2275
2276 foreach( $instance->locales() as $locale ) {
2277 if ( isset( $locale->$field_name ) && $locale->$field_name == $field_value ) {
2278 $result = $locale;
2279 break;
2280 }
2281 }
2282
2283 return $result;
2284 }
2285 }
2286
2287 endif;
2288