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

1,815 lines 50.9 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 $fi = new GP_Locale();
622 $fi->english_name = 'Finnish';
623 $fi->native_name = 'Suomi';
624 $fi->lang_code_iso_639_1 = 'fi';
625 $fi->lang_code_iso_639_2 = 'fin';
626 $fi->country_code = 'fi';
627 $fi->wp_locale = 'fi';
628 $fi->slug = 'fi';
629 $fi->google_code = 'fi';
630 $fi->facebook_locale = 'fi_FI';
631
632 $fj = new GP_Locale();
633 $fj->english_name = 'Fijian';
634 $fj->native_name = 'vosa Vakaviti';
635 $fj->lang_code_iso_639_1 = 'fj';
636 $fj->lang_code_iso_639_2 = 'fij';
637 $fj->country_code = 'fj';
638 $fj->slug = 'fj';
639
640 $fo = new GP_Locale();
641 $fo->english_name = 'Faroese';
642 $fo->native_name = 'føroyskt';
643 $fo->lang_code_iso_639_1 = 'fo';
644 $fo->lang_code_iso_639_2 = 'fao';
645 $fo->country_code = 'fo';
646 $fo->wp_locale = 'fo';
647 $fo->slug = 'fo';
648 $fo->facebook_locale = 'fo_FO';
649
650 $fr = new GP_Locale();
651 $fr->english_name = 'French (France)';
652 $fr->native_name = 'Français';
653 $fr->lang_code_iso_639_1 = 'fr';
654 $fr->country_code = 'fr';
655 $fr->wp_locale = 'fr_FR';
656 $fr->slug = 'fr';
657 $fr->google_code = 'fr';
658 $fr->facebook_locale = 'fr_FR';
659 $fr->nplurals = 2;
660 $fr->plural_expression = 'n > 1';
661
662 $fr_be = new GP_Locale();
663 $fr_be->english_name = 'French (Belgium)';
664 $fr_be->native_name = 'Français de Belgique';
665 $fr_be->lang_code_iso_639_1 = 'fr';
666 $fr_be->lang_code_iso_639_2 = 'fra';
667 $fr_be->country_code = 'be';
668 $fr_be->wp_locale = 'fr_BE';
669 $fr_be->slug = 'fr-be';
670
671 $fr_ca = new GP_Locale();
672 $fr_ca->english_name = 'French (Canada)';
673 $fr_ca->native_name = 'Français du Canada';
674 $fr_ca->lang_code_iso_639_1 = 'fr';
675 $fr_ca->lang_code_iso_639_2 = 'fra';
676 $fr_ca->country_code = 'ca';
677 $fr_ca->facebook_locale = 'fr_CA';
678 $fr_ca->slug = 'fr-ca';
679
680 $fr_ch = new GP_Locale();
681 $fr_ch->english_name = 'French (Switzerland)';
682 $fr_ch->native_name = 'Français de Suisse';
683 $fr_ch->lang_code_iso_639_1 = 'fr';
684 $fr_ch->lang_code_iso_639_2 = 'fra';
685 $fr_ch->country_code = 'ch';
686 $fr_ch->slug = 'fr-ch';
687
688 $fy = new GP_Locale();
689 $fy->english_name = 'Frisian';
690 $fy->native_name = 'Frysk';
691 $fy->lang_code_iso_639_1 = 'fy';
692 $fy->lang_code_iso_639_2 = 'fry';
693 $fy->country_code = 'fy';
694 $fy->facebook_locale = 'fy_NL';
695 $fy->slug = 'fy';
696 $fy->wp_locale = 'fy';
697
698 $ga = new GP_Locale();
699 $ga->english_name = 'Irish';
700 $ga->native_name = 'Gaelige';
701 $ga->lang_code_iso_639_1 = 'ga';
702 $ga->lang_code_iso_639_2 = 'gle';
703 $ga->country_code = 'ie';
704 $ga->slug = 'ga';
705 $ga->google_code = 'ga';
706 $ga->facebook_locale = 'ga_IE';
707 $ga->nplurals = 5;
708 $ga->plural_expression = 'n==1 ? 0 : n==2 ? 1 : n<7 ? 2 : n<11 ? 3 : 4';
709
710 $gd = new GP_Locale();
711 $gd->english_name = 'Scottish Gaelic';
712 $gd->native_name = 'Gàidhlig';
713 $gd->lang_code_iso_639_1 = 'gd';
714 $gd->lang_code_iso_639_2 = 'gla';
715 $gd->lang_code_iso_639_3 = 'gla';
716 $gd->country_code = 'uk';
717 $gd->wp_locale = 'gd';
718 $gd->slug = 'gd';
719 $gd->google_code = 'gd';
720 $gd->nplurals = 4;
721 $gd->plural_expression = '(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n < 20) ? 2 : 3';
722
723 $gl = new GP_Locale();
724 $gl->english_name = 'Galician';
725 $gl->native_name = 'Galego';
726 $gl->lang_code_iso_639_1 = 'gl';
727 $gl->lang_code_iso_639_2 = 'glg';
728 $gl->country_code = 'es';
729 $gl->wp_locale = 'gl_ES';
730 $gl->slug = 'gl';
731 $gl->google_code = 'gl';
732 $gl->facebook_locale = 'gl_ES';
733
734 $gn = new GP_Locale();
735 $gn->english_name = 'Guaraní';
736 $gn->native_name = 'Avañe\'';
737 $gn->lang_code_iso_639_1 = 'gn';
738 $gn->lang_code_iso_639_2 = 'grn';
739 $gn->country_code = '';
740 $gn->wp_locale = 'gn';
741 $gn->slug = 'gn';
742 $gn->google_code = 'gn';
743
744 $gu = new GP_Locale();
745 $gu->english_name = 'Gujarati';
746 $gu->native_name = 'ગુજરાતી';
747 $gu->lang_code_iso_639_1 = 'gu';
748 $gu->lang_code_iso_639_2 = 'guj';
749 $gu->country_code = '';
750 $gu->slug = 'gu';
751 $gu->google_code = 'gu';
752
753 $ha = new GP_Locale();
754 $ha->english_name = 'Hausa';
755 $ha->native_name = 'هَوُسَ';
756 $ha->lang_code_iso_639_1 = 'he';
757 $ha->lang_code_iso_639_2 = 'hau';
758 $ha->country_code = '';
759 $ha->slug = 'ha';
760 $ha->rtl = true;
761
762 $haw = new GP_Locale();
763 $haw->english_name = 'Hawaiian';
764 $haw->native_name = 'Ōlelo Hawaiʻi';
765 $haw->lang_code_iso_639_1 = null;
766 $haw->lang_code_iso_639_2 = 'haw';
767 $haw->country_code = 'us';
768 $haw->wp_locale = 'haw_US';
769 $haw->slug = 'haw';
770
771 $he = new GP_Locale();
772 $he->english_name = 'Hebrew';
773 $he->native_name = 'עִבְרִית';
774 $he->lang_code_iso_639_1 = 'he';
775 $he->country_code = 'il';
776 $he->wp_locale = 'he_IL';
777 $he->slug = 'he';
778 $he->google_code = 'iw';
779 $he->facebook_locale = 'he_IL';
780 $he->rtl = true;
781
782 $hi = new GP_Locale();
783 $hi->english_name = 'Hindi';
784 $hi->native_name = 'हिन्दी';
785 $hi->lang_code_iso_639_1 = 'hi';
786 $hi->lang_code_iso_639_2 = 'hin';
787 $hi->country_code = 'in';
788 $hi->wp_locale = 'hi_IN';
789 $hi->slug = 'hi';
790 $hi->google_code = 'hi';
791 $hi->facebook_locale = 'hi_IN';
792
793 $hr = new GP_Locale();
794 $hr->english_name = 'Croatian';
795 $hr->native_name = 'Hrvatski';
796 $hr->lang_code_iso_639_1 = 'hr';
797 $hr->lang_code_iso_639_2 = 'hrv';
798 $hr->country_code = 'hr';
799 $hr->wp_locale = 'hr';
800 $hr->slug = 'hr';
801 $hr->google_code = 'hr';
802 $hr->facebook_locale = 'hr_HR';
803 $hr->nplurals = 3;
804 $hr->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
805
806 $hu = new GP_Locale();
807 $hu->english_name = 'Hungarian';
808 $hu->native_name = 'Magyar';
809 $hu->lang_code_iso_639_1 = 'hu';
810 $hu->lang_code_iso_639_2 = 'hun';
811 $hu->country_code = 'hu';
812 $hu->wp_locale = 'hu_HU';
813 $hu->slug = 'hu';
814 $hu->google_code = 'hu';
815 $hu->facebook_locale = 'hu_HU';
816
817 $hy = new GP_Locale();
818 $hy->english_name = 'Armenian';
819 $hy->native_name = 'Հայերեն';
820 $hy->lang_code_iso_639_1 = 'hy';
821 $hy->lang_code_iso_639_2 = 'hye';
822 $hy->country_code = 'am';
823 $hy->wp_locale = 'hy';
824 $hy->slug = 'hy';
825 $hy->facebook_locale = 'hy_AM';
826 $hy->nplurals = 2;
827
828 $ia = new GP_Locale();
829 $ia->english_name = 'Interlingua';
830 $ia->native_name = 'Interlingua';
831 $ia->lang_code_iso_639_1 = 'ia';
832 $ia->lang_code_iso_639_2 = 'ina';
833 $ia->country_code = '';
834 $ia->slug = 'ia';
835
836 $id = new GP_Locale();
837 $id->english_name = 'Indonesian';
838 $id->native_name = 'Bahasa Indonesia';
839 $id->lang_code_iso_639_1 = 'id';
840 $id->lang_code_iso_639_2 = 'ind';
841 $id->country_code = 'id';
842 $id->wp_locale = 'id_ID';
843 $id->slug = 'id';
844 $id->google_code = 'id';
845 $id->facebook_locale = 'id_ID';
846 $id->nplurals = 2;
847 $id->plural_expression = 'n > 1';
848
849 $ike = new GP_Locale();
850 $ike->english_name = 'Inuktitut';
851 $ike->native_name = 'ᐃᓄᒃᑎᑐᑦ';
852 $ike->lang_code_iso_639_1 = 'iu';
853 $ike->lang_code_iso_639_2 = 'iku';
854 $ike->country_code = 'ca';
855 $ike->slug = 'ike';
856
857 $ilo = new GP_Locale();
858 $ilo->english_name = 'Iloko';
859 $ilo->native_name = 'Pagsasao nga Iloko';
860 $ilo->lang_code_iso_639_1 = null;
861 $ilo->lang_code_iso_639_2 = 'ilo';
862 $ilo->country_code = 'ph';
863 $ilo->slug = 'ilo';
864
865 $is = new GP_Locale();
866 $is->english_name = 'Icelandic';
867 $is->native_name = 'Íslenska';
868 $is->lang_code_iso_639_1 = 'is';
869 $is->lang_code_iso_639_2 = 'isl';
870 $is->country_code = 'is';
871 $is->slug = 'is';
872 $is->google_code = 'is';
873 $is->facebook_locale = 'is_IS';
874 $is->wp_locale = 'is_IS';
875 $is->nplurals = 2;
876 $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)';
877
878 $it = new GP_Locale();
879 $it->english_name = 'Italian';
880 $it->native_name = 'Italiano';
881 $it->lang_code_iso_639_1 = 'it';
882 $it->lang_code_iso_639_2 = 'ita';
883 $it->country_code = 'it';
884 $it->wp_locale = 'it_IT';
885 $it->slug = 'it';
886 $it->google_code = 'it';
887 $it->facebook_locale = 'it_IT';
888
889 $ja = new GP_Locale();
890 $ja->english_name = 'Japanese';
891 $ja->native_name = '日本語';
892 $ja->lang_code_iso_639_1 = 'ja';
893 $ja->country_code = 'jp';
894 $ja->wp_locale = 'ja';
895 $ja->slug = 'ja';
896 $ja->google_code = 'ja';
897 $ja->facebook_locale = 'ja_JP';
898 $ja->nplurals = 1;
899 $ja->plural_expression = '0';
900
901 $jv = new GP_Locale();
902 $jv->english_name = 'Javanese';
903 $jv->native_name = 'Basa Jawa';
904 $jv->lang_code_iso_639_1 = 'jv';
905 $jv->lang_code_iso_639_1 = 'jav';
906 $jv->country_code = 'id';
907 $jv->wp_locale = 'jv_ID';
908 $jv->slug = 'jv';
909
910 $ka = new GP_Locale();
911 $ka->english_name = 'Georgian';
912 $ka->native_name = 'ქართული';
913 $ka->lang_code_iso_639_1 = 'ka';
914 $ka->lang_code_iso_639_2 = 'kat';
915 $ka->country_code = 'ge';
916 $ka->wp_locale = 'ka_GE';
917 $ka->slug = 'ka';
918 $ka->google_code = 'ka';
919 $ka->facebook_locale = 'ka_GE';
920 $ka->nplurals = 1;
921 $ka->plural_expression = '0';
922
923 $kk = new GP_Locale();
924 $kk->english_name = 'Kazakh';
925 $kk->native_name = 'Қазақ тілі';
926 $kk->lang_code_iso_639_1 = 'kk';
927 $kk->lang_code_iso_639_2 = 'kaz';
928 $kk->country_code = 'kz';
929 $kk->wp_locale = 'kk';
930 $kk->slug = 'kk';
931 $kk->google_code = 'kk';
932
933 $km = new GP_Locale();
934 $km->english_name = 'Khmer';
935 $km->native_name = 'ភាសាខ្មែរ';
936 $km->lang_code_iso_639_1 = 'km';
937 $km->lang_code_iso_639_2 = 'khm';
938 $km->country_code = 'kh';
939 $km->slug = 'km';
940 $km->google_code = 'km';
941 $km->facebook_locale = 'km_KH';
942 $km->nplurals = 1;
943 $km->plural_expression = '0';
944
945 $kn = new GP_Locale();
946 $kn->english_name = 'Kannada';
947 $kn->native_name = 'ಕನ್ನಡ';
948 $kn->lang_code_iso_639_1 = 'kn';
949 $kn->lang_code_iso_639_2 = 'kan';
950 $kn->country_code = 'in';
951 $kn->wp_locale = 'kn';
952 $kn->slug = 'kn';
953 $kn->google_code = 'kn';
954
955 $ko = new GP_Locale();
956 $ko->english_name = 'Korean';
957 $ko->native_name = '한국어';
958 $ko->lang_code_iso_639_1 = 'ko';
959 $ko->lang_code_iso_639_2 = 'kor';
960 $ko->country_code = 'kr';
961 $ko->wp_locale = 'ko_KR';
962 $ko->slug = 'ko';
963 $ko->google_code = 'ko';
964 $ko->facebook_locale = 'ko_KR';
965 $ko->nplurals = 1;
966 $ko->plural_expression = '0';
967
968 $ks = new GP_Locale();
969 $ks->english_name = 'Kashmiri';
970 $ks->native_name = 'कश्मीरी';
971 $ks->lang_code_iso_639_1 = 'ks';
972 $ks->lang_code_iso_639_2 = 'kas';
973 $ks->country_code = '';
974 $ks->slug = 'ks';
975
976 $ku = new GP_Locale();
977 $ku->english_name = 'Kurdish (Kurmanji)';
978 $ku->native_name = 'Kurdî';
979 $ku->lang_code_iso_639_1 = 'ku';
980 $ku->lang_code_iso_639_2 = 'kur';
981 $ku->country_code = 'ku';
982 $ku->slug = 'ku';
983 $ku->google_code = 'ku';
984 $ku->facebook_locale = 'ku_TR';
985
986 $ky = new GP_Locale();
987 $ky->english_name = 'Kirghiz';
988 $ky->native_name = 'кыргыз тили';
989 $ky->lang_code_iso_639_1 = 'ky';
990 $ky->lang_code_iso_639_2 = 'kir';
991 $ky->country_code = 'kg';
992 $ky->wp_locale = 'ky_KY';
993 $ky->slug = 'ky';
994 $ky->nplurals = 1;
995 $ky->plural_expression = '0';
996
997 $la = new GP_Locale();
998 $la->english_name = 'Latin';
999 $la->native_name = 'latine';
1000 $la->lang_code_iso_639_1 = 'la';
1001 $la->lang_code_iso_639_2 = 'lat';
1002 $la->country_code = '';
1003 $la->slug = 'la';
1004 $la->facebook_locale = 'la_VA';
1005
1006 $lb = new GP_Locale();
1007 $lb->english_name = 'Luxembourgish';
1008 $lb->native_name = 'Lëtzebuergesch';
1009 $lb->lang_code_iso_639_1 = 'lb';
1010 $lb->country_code = 'lu';
1011 $lb->wp_locale = 'lb_LU';
1012 $lb->slug = 'lb';
1013
1014 $li = new GP_Locale();
1015 $li->english_name = 'Limburgish';
1016 $li->native_name = 'Limburgs';
1017 $li->lang_code_iso_639_1 = 'li';
1018 $li->lang_code_iso_639_2 = 'lim';
1019 $li->lang_code_iso_639_3 = 'lim';
1020 $li->country_code = 'nl';
1021 $li->wp_locale = 'li';
1022 $li->slug = 'li';
1023 $li->google_code = 'li';
1024
1025 $lo = new GP_Locale();
1026 $lo->english_name = 'Lao';
1027 $lo->native_name = 'ພາສາລາວ';
1028 $lo->lang_code_iso_639_1 = 'lo';
1029 $lo->lang_code_iso_639_2 = 'lao';
1030 $lo->country_code = '';
1031 $lo->wp_locale = 'lo';
1032 $lo->slug = 'lo';
1033 $lo->google_code = 'lo';
1034 $lo->nplurals = 1;
1035 $lo->plural_expression = '0';
1036
1037 $lt = new GP_Locale();
1038 $lt->english_name = 'Lithuanian';
1039 $lt->native_name = 'Lietuvių kalba';
1040 $lt->lang_code_iso_639_1 = 'lt';
1041 $lt->lang_code_iso_639_2 = 'lit';
1042 $lt->country_code = 'lt';
1043 $lt->wp_locale = 'lt_LT';
1044 $lt->slug = 'lt';
1045 $lt->google_code = 'lt';
1046 $lt->facebook_locale = 'lt_LT';
1047 $lt->nplurals = 3;
1048 $lt->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2)';
1049
1050 $lv = new GP_Locale();
1051 $lv->english_name = 'Latvian';
1052 $lv->native_name = 'latviešu valoda';
1053 $lv->lang_code_iso_639_1 = 'lv';
1054 $lv->lang_code_iso_639_2 = 'lav';
1055 $lv->country_code = 'lv';
1056 $lv->wp_locale = 'lv';
1057 $lv->slug = 'lv';
1058 $lv->google_code = 'lv';
1059 $lv->facebook_locale = 'lv_LV';
1060 $lv->nplurals = 3;
1061 $lv->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2)';
1062
1063 $me = new GP_Locale();
1064 $me->english_name = 'Montenegrin';
1065 $me->native_name = 'Crnogorski jezik';
1066 $me->lang_code_iso_639_1 = 'me';
1067 $me->country_code = 'me';
1068 $me->wp_locale = 'me_ME';
1069 $me->google_code = 'srp';
1070 $me->slug = 'me';
1071 $me->nplurals = 3;
1072 $me->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1073
1074 $mg = new GP_Locale();
1075 $mg->english_name = 'Malagasy';
1076 $mg->native_name = 'Malagasy';
1077 $mg->lang_code_iso_639_1 = 'mg';
1078 $mg->lang_code_iso_639_2 = 'mlg';
1079 $mg->country_code = 'mg';
1080 $mg->wp_locale = 'mg_MG';
1081 $mg->slug = 'mg';
1082
1083 $mhr = new GP_Locale();
1084 $mhr->english_name = 'Mari (Meadow)';
1085 $mhr->native_name = 'олык марий';
1086 $mhr->lang_code_iso_639_1 = null;
1087 $mhr->lang_code_iso_639_2 = null;
1088 $mhr->lang_code_iso_639_3 = 'mhr';
1089 $mhr->country_code = 'ru';
1090 $mhr->slug = 'mhr';
1091 $mhr->google_code = 'chm';
1092
1093 $mk = new GP_Locale();
1094 $mk->english_name = 'Macedonian';
1095 $mk->native_name = 'македонски јазик';
1096 $mk->lang_code_iso_639_1 = 'mk';
1097 $mk->lang_code_iso_639_2 = 'mkd';
1098 $mk->country_code = 'mk';
1099 $mk->wp_locale = 'mk_MK';
1100 $mk->slug = 'mk';
1101 $mk->google_code = 'mk';
1102 $mk->facebook_locale = 'mk_MK';
1103 $mk->nplurals = 2;
1104 $mk->plural_expression = 'n==1 || n%10==1 ? 0 : 1';
1105
1106 $ml = new GP_Locale();
1107 $ml->english_name = 'Malayalam';
1108 $ml->native_name = 'മലയാളം';
1109 $ml->lang_code_iso_639_1 = 'ml';
1110 $ml->lang_code_iso_639_2 = 'mal';
1111 $ml->country_code = 'in';
1112 $ml->wp_locale = 'ml_IN';
1113 $ml->slug = 'ml';
1114 $ml->google_code = 'ml';
1115 $ml->facebook_locale = 'ml_IN';
1116
1117 $mn = new GP_Locale();
1118 $mn->english_name = 'Mongolian';
1119 $mn->native_name = 'Монгол';
1120 $mn->lang_code_iso_639_1 = 'mn';
1121 $mn->lang_code_iso_639_2 = 'mon';
1122 $mn->country_code = 'mn';
1123 $mn->slug = 'mn';
1124 $mn->google_code = 'mn';
1125
1126 $mr = new GP_Locale();
1127 $mr->english_name = 'Marathi';
1128 $mr->native_name = 'मराठी';
1129 $mr->lang_code_iso_639_1 = 'mr';
1130 $mr->lang_code_iso_639_2 = 'mar';
1131 $mr->country_code = '';
1132 $mr->slug = 'mr';
1133 $mr->google_code = 'mr';
1134
1135 $mrj = new GP_Locale();
1136 $mrj->english_name = 'Mari (Hill)';
1137 $mrj->native_name = 'кырык мары';
1138 $mrj->lang_code_iso_639_1 = null;
1139 $mrj->lang_code_iso_639_2 = null;
1140 $mrj->lang_code_iso_639_3 = 'mrj';
1141 $mrj->country_code = 'ru';
1142 $mrj->slug = 'mrj';
1143 $mrj->google_code = 'chm';
1144
1145 $ms = new GP_Locale();
1146 $ms->english_name = 'Malay';
1147 $ms->native_name = 'Bahasa Melayu';
1148 $ms->lang_code_iso_639_1 = 'ms';
1149 $ms->lang_code_iso_639_2 = 'msa';
1150 $ms->country_code = '';
1151 $ms->wp_locale = 'ms_MY';
1152 $ms->slug = 'ms';
1153 $ms->google_code = 'ms';
1154 $ms->facebook_locale = 'ms_MY';
1155 $ms->nplurals = 1;
1156 $ms->plural_expression = '0';
1157
1158 $mwl = new GP_Locale();
1159 $mwl->english_name = 'Mirandese';
1160 $mwl->native_name = 'Mirandés';
1161 $mwl->lang_code_iso_639_1 = null;
1162 $mwl->lang_code_iso_639_2 = 'mwl';
1163 $mwl->country_code = '';
1164 $mwl->slug = 'mwl';
1165
1166 $my = new GP_Locale();
1167 $my->english_name = 'Burmese';
1168 $my->native_name = 'ဗမာ�
1169 ';
1170 $my->lang_code_iso_639_1 = 'my';
1171 $my->lang_code_iso_639_2 = 'mya';
1172 $my->country_code = 'mm';
1173 $my->wp_locale = 'my_MM';
1174 $my->slug = 'mya';
1175 $my->google_code = 'my';
1176
1177 $ne = new GP_Locale();
1178 $ne->english_name = 'Nepali';
1179 $ne->native_name = 'नेपाली';
1180 $ne->lang_code_iso_639_1 = 'ne';
1181 $ne->lang_code_iso_639_2 = 'nep';
1182 $ne->country_code = 'np';
1183 $ne->wp_locale = 'ne_NP';
1184 $ne->slug = 'ne';
1185 $ne->facebook_locale = 'ne_NP';
1186
1187 $nb = new GP_Locale();
1188 $nb->english_name = 'Norwegian (Bokmål)';
1189 $nb->native_name = 'Norsk bokmål';
1190 $nb->lang_code_iso_639_1 = 'nb';
1191 $nb->lang_code_iso_639_2 = 'nob';
1192 $nb->country_code = 'no';
1193 $nb->wp_locale = 'nb_NO';
1194 $nb->slug = 'nb';
1195 $nb->google_code = 'no';
1196 $nb->facebook_locale = 'nb_NO';
1197
1198 $nl = new GP_Locale();
1199 $nl->english_name = 'Dutch';
1200 $nl->native_name = 'Nederlands';
1201 $nl->lang_code_iso_639_1 = 'nl';
1202 $nl->lang_code_iso_639_2 = 'nld';
1203 $nl->country_code = 'nl';
1204 $nl->wp_locale = 'nl_NL';
1205 $nl->slug = 'nl';
1206 $nl->google_code = 'nl';
1207 $nl->facebook_locale = 'nl_NL';
1208
1209 $nl_be = new GP_Locale();
1210 $nl_be->english_name = 'Dutch (Belgium)';
1211 $nl_be->native_name = 'Nederlands (België)';
1212 $nl_be->lang_code_iso_639_1 = 'nl';
1213 $nl_be->lang_code_iso_639_2 = 'nld';
1214 $nl_be->country_code = 'be';
1215 $nl_be->wp_locale = 'nl_BE';
1216 $nl_be->slug = 'nl-be';
1217 $nl_be->google_code = 'nl';
1218
1219 $nn = new GP_Locale();
1220 $nn->english_name = 'Norwegian (Nynorsk)';
1221 $nn->native_name = 'Norsk nynorsk';
1222 $nn->lang_code_iso_639_1 = 'nn';
1223 $nn->lang_code_iso_639_2 = 'nno';
1224 $nn->country_code = 'no';
1225 $nn->wp_locale = 'nn_NO';
1226 $nn->slug = 'nn';
1227 $nn->facebook_locale = 'nn_NO';
1228
1229 $no = new GP_Locale();
1230 $no->english_name = 'Norwegian';
1231 $no->native_name = 'Norsk';
1232 $no->lang_code_iso_639_1 = 'no';
1233 $no->lang_code_iso_639_2 = 'nor';
1234 $no->country_code = 'no';
1235 $no->slug = 'no';
1236 $no->google_code = 'no';
1237
1238 $oc = new GP_Locale();
1239 $oc->english_name = 'Occitan';
1240 $oc->native_name = 'Occitan';
1241 $oc->lang_code_iso_639_1 = 'oc';
1242 $oc->lang_code_iso_639_2 = 'oci';
1243 $oc->country_code = '';
1244 $oc->slug = 'oc';
1245
1246 $os = new GP_Locale();
1247 $os->english_name = 'Ossetic';
1248 $os->native_name = 'Ирон';
1249 $os->lang_code_iso_639_1 = 'os';
1250 $os->lang_code_iso_639_2 = 'oss';
1251 $os->wp_locale = 'os';
1252 $os->country_code = '';
1253 $os->slug = 'os';
1254
1255 $pa = new GP_Locale();
1256 $pa->english_name = 'Punjabi';
1257 $pa->native_name = 'ਪੰਜਾਬੀ';
1258 $pa->lang_code_iso_639_1 = 'pa';
1259 $pa->lang_code_iso_639_2 = 'pan';
1260 $pa->country_code = 'in';
1261 $pa->wp_locale = 'pa_IN';
1262 $pa->slug = 'pa';
1263 $pa->facebook_locale = 'pa_IN';
1264
1265 $pl = new GP_Locale();
1266 $pl->english_name = 'Polish';
1267 $pl->native_name = 'Polski';
1268 $pl->lang_code_iso_639_1 = 'pl';
1269 $pl->lang_code_iso_639_2 = 'pol';
1270 $pl->country_code = 'pl';
1271 $pl->wp_locale = 'pl_PL';
1272 $pl->slug = 'pl';
1273 $pl->google_code = 'pl';
1274 $pl->facebook_locale = 'pl_PL';
1275 $pl->nplurals = 3;
1276 $pl->plural_expression = '(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1277
1278
1279 $pt_br = new GP_Locale();
1280 $pt_br->english_name = 'Portuguese (Brazil)';
1281 $pt_br->native_name = 'Português do Brasil';
1282 $pt_br->lang_code_iso_639_1 = 'pt';
1283 $pt_br->lang_code_iso_639_2 = 'por';
1284 $pt_br->country_code = 'br';
1285 $pt_br->wp_locale = 'pt_BR';
1286 $pt_br->slug = 'pt-br';
1287 $pt_br->google_code = 'pt-PT';
1288 $pt_br->facebook_locale = 'pt_BR';
1289 $pt_br->nplurals = 2;
1290 $pt_br->plural_expression = '(n > 1)';
1291
1292 $pt = new GP_Locale();
1293 $pt->english_name = 'Portuguese (Portugal)';
1294 $pt->native_name = 'Português';
1295 $pt->lang_code_iso_639_1 = 'pt';
1296 $pt->country_code = 'pt';
1297 $pt->wp_locale = 'pt_PT';
1298 $pt->slug = 'pt';
1299 $pt->google_code = 'pt-PT';
1300 $pt->facebook_locale = 'pt_PT';
1301
1302 $ps = new GP_Locale();
1303 $ps->english_name = 'Pashto';
1304 $ps->native_name = 'پښتو';
1305 $ps->lang_code_iso_639_1 = 'ps';
1306 $ps->country_code = '';
1307 $ps->wp_locale = 'ps';
1308 $ps->slug = 'ps';
1309 $ps->google_code = 'ps';
1310 $ps->facebook_locale = 'ps_AF';
1311 $ps->rtl = true;
1312
1313 $ro = new GP_Locale();
1314 $ro->english_name = 'Romanian';
1315 $ro->native_name = 'Română';
1316 $ro->lang_code_iso_639_1 = 'ro';
1317 $ro->lang_code_iso_639_2 = 'ron';
1318 $ro->country_code = 'ro';
1319 $ro->wp_locale = 'ro_RO';
1320 $ro->slug = 'ro';
1321 $ro->google_code = 'ro';
1322 $ro->facebook_locale = 'ro_RO';
1323 $ro->nplurals = 3;
1324 $ro->plural_expression = '(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2)';
1325
1326 $ru = new GP_Locale();
1327 $ru->english_name = 'Russian';
1328 $ru->native_name = 'Русский';
1329 $ru->lang_code_iso_639_1 = 'ru';
1330 $ru->lang_code_iso_639_2 = 'rus';
1331 $ru->country_code = 'ru';
1332 $ru->wp_locale = 'ru_RU';
1333 $ru->slug = 'ru';
1334 $ru->google_code = 'ru';
1335 $ru->facebook_locale = 'ru_RU';
1336 $ru->nplurals = 3;
1337 $ru->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1338
1339 $ru_ua = new GP_Locale();
1340 $ru_ua->english_name = 'Russian (Ukraine)';
1341 $ru_ua->native_name = 'украї́нська мо́ва';
1342 $ru_ua->lang_code_iso_639_1 = 'ru';
1343 $ru_ua->lang_code_iso_639_2 = 'rus';
1344 $ru_ua->country_code = 'ua';
1345 $ru_ua->wp_locale = 'ru_UA';
1346 $ru_ua->slug = 'ru-ua';
1347 $ru_ua->google_code = 'ru';
1348 $ru_ua->nplurals = 3;
1349 $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)';
1350
1351 $rue = new GP_Locale();
1352 $rue->english_name = 'Rusyn';
1353 $rue->native_name = 'Русиньскый';
1354 $rue->lang_code_iso_639_1 = null;
1355 $rue->lang_code_iso_639_2 = null;
1356 $rue->lang_code_iso_639_3 = 'rue';
1357 $rue->country_code = null;
1358 $rue->wp_locale = 'rue';
1359 $rue->slug = 'rue';
1360 $rue->nplurals = 3;
1361 $rue->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1362
1363 $rup = new GP_Locale();
1364 $rup->english_name = 'Aromanian';
1365 $rup->native_name = 'Armãneashce';
1366 $rup->lang_code_iso_639_2 = 'rup';
1367 $rup->lang_code_iso_639_3 = 'rup';
1368 $rup->country_code = 'mk';
1369 $rup->wp_locale = 'rup_MK';
1370 $rup->slug = 'rup';
1371
1372 $sah = new GP_Locale();
1373 $sah->english_name = 'Sakha';
1374 $sah->native_name = 'Sakha';
1375 $sah->lang_code_iso_639_1 = null;
1376 $sah->lang_code_iso_639_2 = 'sah';
1377 $sah->lang_code_iso_639_3 = 'sah';
1378 $sah->country_code = 'ru';
1379 $sah->wp_locale = 'sah';
1380 $sah->slug = 'sah';
1381
1382 $sa_in = new GP_Locale();
1383 $sa_in->english_name = 'Sanskrit';
1384 $sa_in->native_name = 'भारतम्';
1385 $sa_in->lang_code_iso_639_1 = null;
1386 $sa_in->lang_code_iso_639_2 = 'san';
1387 $sa_in->lang_code_iso_639_3 = 'san';
1388 $sa_in->country_code = 'in';
1389 $sa_in->wp_locale = 'sa_IN';
1390 $sa_in->slug = 'sa-in';
1391
1392 $sd = new GP_Locale();
1393 $sd->english_name = 'Sindhi';
1394 $sd->native_name = 'سندھ';
1395 $sd->lang_code_iso_639_1 = 'sd';
1396 $sd->lang_code_iso_639_2 = 'snd';
1397 $sd->country_code = 'pk';
1398 $sd->wp_locale = 'sd_PK';
1399 $sd->slug = 'sd';
1400 $sd->google_code = 'sd';
1401
1402 $si = new GP_Locale();
1403 $si->english_name = 'Sinhala';
1404 $si->native_name = 'සිංහල';
1405 $si->lang_code_iso_639_1 = 'si';
1406 $si->lang_code_iso_639_2 = 'sin';
1407 $si->country_code = 'lk';
1408 $si->wp_locale = 'si_LK';
1409 $si->slug = 'si';
1410 $si->google_code = 'si';
1411
1412 $sk = new GP_Locale();
1413 $sk->english_name = 'Slovak';
1414 $sk->native_name = 'Slovenčina';
1415 $sk->lang_code_iso_639_1 = 'sk';
1416 $sk->lang_code_iso_639_2 = 'slk';
1417 $sk->country_code = 'sk';
1418 $sk->slug = 'sk';
1419 $sk->wp_locale = 'sk_SK';
1420 $sk->google_code = 'sk';
1421 $sk->facebook_locale = 'sk_SK';
1422 $sk->nplurals = 3;
1423 $sk->plural_expression = '(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2';
1424
1425 $sl = new GP_Locale();
1426 $sl->english_name = 'Slovenian';
1427 $sl->native_name = 'slovenščina';
1428 $sl->lang_code_iso_639_1 = 'sl';
1429 $sl->lang_code_iso_639_2 = 'slv';
1430 $sl->country_code = 'si';
1431 $sl->wp_locale = 'sl_SI';
1432 $sl->slug = 'sl';
1433 $sl->google_code = 'sl';
1434 $sl->facebook_locale = 'sl_SI';
1435 $sl->nplurals = 4;
1436 $sl->plural_expression = '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3)';
1437
1438 $so = new GP_Locale();
1439 $so->english_name = 'Somali';
1440 $so->native_name = 'Afsoomaali';
1441 $so->lang_code_iso_639_1 = 'so';
1442 $so->lang_code_iso_639_2 = 'som';
1443 $so->lang_code_iso_639_3 = 'som';
1444 $so->country_code = 'so';
1445 $so->wp_locale = 'so_SO';
1446 $so->slug = 'so';
1447 $so->google_code = 'so';
1448
1449 $sq = new GP_Locale();
1450 $sq->english_name = 'Albanian';
1451 $sq->native_name = 'Shqip';
1452 $sq->lang_code_iso_639_1 = 'sq';
1453 $sq->lang_code_iso_639_2 = 'sqi';
1454 $sq->wp_locale = 'sq';
1455 $sq->country_code = 'al';
1456 $sq->slug = 'sq';
1457 $sq->google_code = 'sq';
1458 $sq->facebook_locale = 'sq_AL';
1459
1460 $sr = new GP_Locale();
1461 $sr->english_name = 'Serbian';
1462 $sr->native_name = 'Српски језик';
1463 $sr->lang_code_iso_639_1 = 'sr';
1464 $sr->lang_code_iso_639_2 = 'srp';
1465 $sr->country_code = 'rs';
1466 $sr->wp_locale = 'sr_RS';
1467 $sr->slug = 'sr';
1468 $sr->google_code = 'sr';
1469 $sr->facebook_locale = 'sr_RS';
1470 $sr->nplurals = 3;
1471 $sr->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1472
1473 $srd = new GP_Locale();
1474 $srd->english_name = 'Sardinian';
1475 $srd->native_name = 'sardu';
1476 $srd->lang_code_iso_639_1 = 'sc';
1477 $srd->lang_code_iso_639_2 = 'srd';
1478 $srd->country_code = 'srd';
1479 $srd->wp_locale = 'srd';
1480 $srd->slug = 'srd';
1481
1482 $su = new GP_Locale();
1483 $su->english_name = 'Sundanese';
1484 $su->native_name = 'Basa Sunda';
1485 $su->lang_code_iso_639_1 = 'su';
1486 $su->lang_code_iso_639_2 = 'sun';
1487 $su->country_code = 'id';
1488 $su->wp_locale = 'su_ID';
1489 $su->slug = 'su';
1490 $su->nplurals = 1;
1491 $su->plural_expression = '0';
1492
1493 $sv = new GP_Locale();
1494 $sv->english_name = 'Swedish';
1495 $sv->native_name = 'Svenska';
1496 $sv->lang_code_iso_639_1 = 'sv';
1497 $sv->lang_code_iso_639_2 = 'swe';
1498 $sv->country_code = 'se';
1499 $sv->wp_locale = 'sv_SE';
1500 $sv->slug = 'sv';
1501 $sv->google_code = 'sv';
1502 $sv->facebook_locale = 'sv_SE';
1503
1504 $sw = new GP_Locale();
1505 $sw->english_name = 'Swahili';
1506 $sw->native_name = 'Kiswahili';
1507 $sw->lang_code_iso_639_1 = 'sw';
1508 $sw->lang_code_iso_639_2 = 'swa';
1509 $sw->country_code = '';
1510 $sw->wp_locale = 'sw';
1511 $sw->slug = 'sw';
1512 $sw->google_code = 'sw';
1513 $sw->facebook_locale = 'sw_KE';
1514
1515 $ta = new GP_Locale();
1516 $ta->english_name = 'Tamil';
1517 $ta->native_name = 'தமிழ்';
1518 $ta->lang_code_iso_639_1 = 'ta';
1519 $ta->lang_code_iso_639_2 = 'tam';
1520 $ta->country_code = 'IN';
1521 $ta->wp_locale = 'ta_IN';
1522 $ta->slug = 'ta';
1523 $ta->google_code = 'ta';
1524 $ta->facebook_locale = 'ta_IN';
1525
1526 $ta_lk = new GP_Locale();
1527 $ta_lk->english_name = 'Tamil (Sri Lanka)';
1528 $ta_lk->native_name = 'தமிழ்';
1529 $ta_lk->lang_code_iso_639_1 = 'ta';
1530 $ta_lk->lang_code_iso_639_2 = 'tam';
1531 $ta_lk->country_code = 'LK';
1532 $ta_lk->wp_locale = 'ta_LK';
1533 $ta_lk->slug = 'ta-lk';
1534 $ta_lk->google_code = 'ta';
1535
1536 $te = new GP_Locale();
1537 $te->english_name = 'Telugu';
1538 $te->native_name = 'తెలుగు';
1539 $te->lang_code_iso_639_1 = 'te';
1540 $te->lang_code_iso_639_2 = 'tel';
1541 $te->country_code = '';
1542 $te->wp_locale = 'te';
1543 $te->slug = 'te';
1544 $te->google_code = 'te';
1545 $te->facebook_locale = 'te_IN';
1546
1547 $tg = new GP_Locale();
1548 $tg->english_name = 'Tajik';
1549 $tg->native_name = 'тоҷикӣ';
1550 $tg->lang_code_iso_639_1 = 'tg';
1551 $tg->lang_code_iso_639_2 = 'tgk';
1552 $tg->country_code = '';
1553 $tg->wp_locale = 'tg';
1554 $tg->slug = 'tg';
1555 $tg->google_code = 'tg';
1556 $tg->nplurals = 2;
1557 $tg->plural_expression = 'n != 1;';
1558
1559 $th = new GP_Locale();
1560 $th->english_name = 'Thai';
1561 $th->native_name = 'ไทย';
1562 $th->lang_code_iso_639_1 = 'th';
1563 $th->lang_code_iso_639_2 = 'tha';
1564 $th->country_code = '';
1565 $th->wp_locale = 'th';
1566 $th->slug = 'th';
1567 $th->google_code = 'th';
1568 $th->facebook_locale = 'th_TH';
1569 $th->nplurals = 1;
1570 $th->plural_expression = '0';
1571
1572 $tlh = new GP_Locale();
1573 $tlh->english_name = 'Klingon';
1574 $tlh->native_name = 'TlhIngan';
1575 $tlh->lang_code_iso_639_1 = '';
1576 $tlh->lang_code_iso_639_2 = 'tlh';
1577 $tlh->country_code = '';
1578 $tlh->slug = 'tlh';
1579 $tlh->nplurals = 1;
1580 $tlh->plural_expression = '0';
1581
1582 $tl = new GP_Locale();
1583 $tl->english_name = 'Tagalog';
1584 $tl->native_name = 'Tagalog';
1585 $tl->lang_code_iso_639_1 = 'tl';
1586 $tl->lang_code_iso_639_2 = 'tgl';
1587 $tl->country_code = 'ph';
1588 $tl->wp_locale = 'ph';
1589 $tl->slug = 'tl';
1590 $tl->google_code = 'tl';
1591 $tl->facebook_locale = 'tl_PH';
1592
1593 $tr = new GP_Locale();
1594 $tr->english_name = 'Turkish';
1595 $tr->native_name = 'Türkçe';
1596 $tr->lang_code_iso_639_1 = 'tr';
1597 $tr->lang_code_iso_639_2 = 'tur';
1598 $tr->country_code = 'tr';
1599 $tr->wp_locale = 'tr_TR';
1600 $tr->slug = 'tr';
1601 $tr->google_code = 'tr';
1602 $tr->facebook_locale = 'tr_TR';
1603 $tr->nplurals = 2;
1604 $tr->plural_expression = '(n > 1)';
1605
1606 $udm = new GP_Locale();
1607 $udm->english_name = 'Udmurt';
1608 $udm->native_name = 'удмурт кыл';
1609 $udm->lang_code_iso_639_1 = null;
1610 $udm->lang_code_iso_639_2 = 'udm';
1611 $udm->country_code = '';
1612 $udm->slug = 'udm';
1613
1614 $ug = new GP_Locale();
1615 $ug->english_name = 'Uighur';
1616 $ug->native_name = 'Uyƣurqə';
1617 $ug->lang_code_iso_639_1 = 'ug';
1618 $ug->lang_code_iso_639_2 = 'uig';
1619 $ug->country_code = 'cn';
1620 $ug->wp_locale = 'ug_CN';
1621 $ug->slug = 'ug';
1622 $ug->google_code = 'ug';
1623
1624 $uk = new GP_Locale();
1625 $uk->english_name = 'Ukrainian';
1626 $uk->native_name = 'Українська';
1627 $uk->lang_code_iso_639_1 = 'uk';
1628 $uk->lang_code_iso_639_2 = 'ukr';
1629 $uk->country_code = 'ua';
1630 $uk->wp_locale = 'uk';
1631 $uk->slug = 'uk';
1632 $uk->google_code = 'uk';
1633 $uk->facebook_locale = 'uk_UA';
1634 $uk->nplurals = 3;
1635 $uk->plural_expression = '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)';
1636
1637 $ur = new GP_Locale();
1638 $ur->english_name = 'Urdu';
1639 $ur->native_name = 'اردو';
1640 $ur->lang_code_iso_639_1 = 'ur';
1641 $ur->lang_code_iso_639_2 = 'urd';
1642 $ur->country_code = '';
1643 $ur->wp_locale = 'ur';
1644 $ur->slug = 'ur';
1645 $ur->google_code = 'ur';
1646
1647 $uz = new GP_Locale();
1648 $uz->english_name = 'Uzbek';
1649 $uz->native_name = 'O‘zbekcha';
1650 $uz->lang_code_iso_639_1 = 'uz';
1651 $uz->lang_code_iso_639_2 = 'uzb';
1652 $uz->country_code = 'uz';
1653 $uz->wp_locale = 'uz_UZ';
1654 $uz->slug = 'uz';
1655 $uz->google_code = 'uz';
1656 $uz->rtl = true;
1657 $uz->nplurals = 1;
1658 $uz->plural_expression = '0';
1659
1660 $vec = new GP_Locale();
1661 $vec->english_name = 'Venetian';
1662 $vec->native_name = 'vèneta';
1663 $vec->lang_code_iso_639_1 = null;
1664 $vec->lang_code_iso_639_2 = 'roa';
1665 $vec->country_code = 'uz';
1666 $vec->slug = 'vec';
1667
1668 $vi = new GP_Locale();
1669 $vi->english_name = 'Vietnamese';
1670 $vi->native_name = 'Tiếng Việt';
1671 $vi->lang_code_iso_639_1 = 'vi';
1672 $vi->lang_code_iso_639_2 = 'vie';
1673 $vi->country_code = 'vn';
1674 $vi->wp_locale = 'vi';
1675 $vi->slug = 'vi';
1676 $vi->google_code = 'vi';
1677 $vi->facebook_locale = 'vi_VN';
1678 $vi->nplurals = 1;
1679 $vi->plural_expression = '0';
1680
1681 $wa = new GP_Locale();
1682 $wa->english_name = 'Walloon';
1683 $wa->native_name = 'Walon';
1684 $wa->lang_code_iso_639_1 = 'wa';
1685 $wa->lang_code_iso_639_2 = 'wln';
1686 $wa->country_code = 'be';
1687 $wa->wp_locale = 'wa';
1688 $wa->slug = 'wa';
1689
1690 $xmf = new GP_Locale();
1691 $xmf->english_name = 'Mingrelian';
1692 $xmf->native_name = 'მარგალური ნინა';
1693 $xmf->lang_code_iso_639_1 = null;
1694 $xmf->lang_code_iso_639_2 = null;
1695 $xmf->lang_code_iso_639_3 = 'xmf';
1696 $xmf->country_code = 'ge';
1697 $xmf->wp_locale = 'xmf';
1698 $xmf->slug = 'xmf';
1699
1700 $yi = new GP_Locale();
1701 $yi->english_name = 'Yiddish';
1702 $yi->native_name = 'ייִדיש';
1703 $yi->lang_code_iso_639_1 = 'yi';
1704 $yi->lang_code_iso_639_2 = 'yid';
1705 $yi->country_code = '';
1706 $yi->slug = 'yi';
1707 $yi->google_code = 'yi';
1708 $yi->rtl = true;
1709
1710 $yo = new GP_Locale();
1711 $yo->english_name = 'Yorùbá';
1712 $yo->native_name = 'èdè Yorùbá';
1713 $yo->lang_code_iso_639_1 = 'yo';
1714 $yo->lang_code_iso_639_2 = 'yor';
1715 $yo->country_code = '';
1716 $yo->slug = 'yo';
1717
1718 $zh_cn = new GP_Locale();
1719 $zh_cn->english_name = 'Chinese (China)';
1720 $zh_cn->native_name = '中文';
1721 $zh_cn->lang_code_iso_639_1 = 'zh';
1722 $zh_cn->lang_code_iso_639_2 = 'zho';
1723 $zh_cn->country_code = 'cn';
1724 $zh_cn->wp_locale = 'zh_CN';
1725 $zh_cn->slug = 'zh-cn';
1726 $zh_cn->google_code = 'zh-CN';
1727 $zh_cn->facebook_locale = 'zh_CN';
1728 $zh_cn->nplurals = 1;
1729 $zh_cn->plural_expression = '0';
1730
1731 $zh_hk = new GP_Locale();
1732 $zh_hk->english_name = 'Chinese (Hong Kong)';
1733 $zh_hk->native_name = '香港中文版 ';
1734 $zh_hk->lang_code_iso_639_1 = 'zh';
1735 $zh_hk->lang_code_iso_639_2 = 'zho';
1736 $zh_hk->country_code = 'hk';
1737 $zh_hk->wp_locale = 'zh_HK';
1738 $zh_hk->slug = 'zh-hk';
1739 $zh_hk->facebook_locale = 'zh_HK';
1740 $zh_hk->nplurals = 1;
1741 $zh_hk->plural_expression = '0';
1742
1743 $zh_sg = new GP_Locale();
1744 $zh_sg->english_name = 'Chinese (Singapore)';
1745 $zh_sg->native_name = '中文';
1746 $zh_sg->lang_code_iso_639_1 = 'zh';
1747 $zh_sg->lang_code_iso_639_2 = 'zho';
1748 $zh_sg->country_code = 'sg';
1749 $zh_sg->slug = 'zh-sg';
1750 $zh_sg->nplurals = 1;
1751 $zh_sg->plural_expression = '0';
1752
1753 $zh_tw = new GP_Locale();
1754 $zh_tw->english_name = 'Chinese (Taiwan)';
1755 $zh_tw->native_name = '中文';
1756 $zh_tw->lang_code_iso_639_1 = 'zh';
1757 $zh_tw->lang_code_iso_639_2 = 'zho';
1758 $zh_tw->country_code = 'tw';
1759 $zh_tw->slug = 'zh-tw';
1760 $zh_tw->wp_locale= 'zh_TW';
1761 $zh_tw->google_code = 'zh-TW';
1762 $zh_tw->facebook_locale = 'zh_TW';
1763 $zh_tw->nplurals = 1;
1764 $zh_tw->plural_expression = '0';
1765
1766 $zh = new GP_Locale();
1767 $zh->english_name = 'Chinese';
1768 $zh->native_name = '中文';
1769 $zh->lang_code_iso_639_1 = 'zh';
1770 $zh->lang_code_iso_639_2 = 'zho';
1771 $zh->country_code = '';
1772 $zh->slug = 'zh';
1773 $zh->nplurals = 1;
1774 $zh->plural_expression = '0';
1775
1776 foreach( get_defined_vars() as $locale ) {
1777 $this->locales[$locale->slug] = $locale;
1778 }
1779 }
1780
1781 public static function instance() {
1782 if ( !isset( $GLOBALS['gp_locales'] ) )
1783 $GLOBALS['gp_locales'] = new GP_Locales;
1784 return $GLOBALS['gp_locales'];
1785 }
1786
1787 public static function locales() {
1788 $instance = GP_Locales::instance();
1789 return $instance->locales;
1790 }
1791
1792 public static function exists( $slug ) {
1793 $instance = GP_Locales::instance();
1794 return isset( $instance->locales[$slug] );
1795 }
1796
1797 public static function by_slug( $slug ) {
1798 $instance = GP_Locales::instance();
1799 return isset( $instance->locales[$slug] )? $instance->locales[$slug] : null;
1800 }
1801
1802 public static function by_field( $field_name, $field_value ) {
1803 $instance = GP_Locales::instance();
1804 $result = false;
1805 foreach( $instance->locales() as $locale ) {
1806 if ( isset( $locale->$field_name ) && $locale->$field_name == $field_value ) {
1807 $result = $locale;
1808 break;
1809 }
1810 }
1811
1812 return $result;
1813 }
1814 }
1815