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