Completed
Push — master ( 229a5c...c3a81a )
by George
67:21 queued 67:07
created

locales.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
if ( ! class_exists( 'GP_Locale' ) ) :
4
	
5
class GP_Locale {
6
	public $english_name;
7
	public $native_name;
8
	public $text_direction = 'ltr';
9
	public $lang_code_iso_639_1 = null;
10
	public $lang_code_iso_639_2 = null;
11
	public $lang_code_iso_639_3 = null;
12
	public $country_code;
13
	public $wp_locale;
14
	public $slug;
15
	public $nplurals = 2;
16
	public $plural_expression = 'n != 1';
17
	public $google_code = null;
18
	public $preferred_sans_serif_font_family = null;
19
	public $facebook_locale = null;
20
	// TODO: days, months, decimals, quotes
21
22
	private $_index_for_number;
23
24
	public function __construct( $args = array() ) {
25
		foreach( $args as $key => $value ) {
26
			$this->$key = $value;
27
		}
28
	}
29
30
	public static function __set_state( $state ) {
31
		return new GP_Locale( $state );
32
	}
33
34
	/**
35
	 * Make deprecated properties checkable for backwards compatibility.
36
	 *
37
	 * @param string $name Property to check if set.
38
	 * @return bool Whether the property is set.
39
	 */
40
	public function __isset( $name ) {
41
		if ( 'rtl' == $name ) {
42
			return isset( $this->text_direction );
43
		}
44
	}
45
46
	/**
47
	 * Make deprecated properties readable for backwards compatibility.
48
	 *
49
	 * @param string $name Property to get.
50
	 * @return mixed Property.
51
	 */
52
	public function __get( $name ) {
53
		if ( 'rtl' == $name ) {
54
			return ( 'rtl' === $this->text_direction );
55
		}
56
	}
57
58
	public function combined_name() {
59
		/* translators: combined name for locales: 1: name in English, 2: native name */
60
		return sprintf( _x( '%1$s/%2$s', 'locales', 'jetpack' ), $this->english_name, $this->native_name );
61
	}
62
63
	public function numbers_for_index( $index, $how_many = 3, $test_up_to = 1000 ) {
64
		$numbers = array();
65
66
		for( $number = 0; $number < $test_up_to; ++$number ) {
67
			if ( $this->index_for_number( $number ) == $index ) {
68
				$numbers[] = $number;
69
70
				if ( count( $numbers ) >= $how_many ) {
71
					break;
72
				}
73
			}
74
		}
75
76
		return $numbers;
77
	}
78
79
	public function index_for_number( $number ) {
80
		if ( ! isset( $this->_index_for_number ) ) {
81
			$gettext = new Gettext_Translations;
82
			$expression = $gettext->parenthesize_plural_exression( $this->plural_expression );
83
			$this->_index_for_number = $gettext->make_plural_form_function( $this->nplurals, $expression );
84
		}
85
86
		$f = $this->_index_for_number;
87
88
		return $f( $number );
89
	}
90
91
}
92
93
endif;
94
95
if ( ! class_exists( 'GP_Locales' ) ) :
96
97
class GP_Locales {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class should be in its own file to aid autoloaders.

Having each class in a dedicated file usually plays nice with PSR autoloaders and is therefore a well established practice. If you use other autoloaders, you might not want to follow this rule.

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