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