PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 4.2.5
Jetpack – WP Security, Backup, Speed, & Growth v4.2.5
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.2.5, at locales.php

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