Completed
Push — master-stable ( 771587...6129d5 )
by
unknown
48:19 queued 37:52
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
class GP_Locale {
3
	public $english_name;
4
	public $native_name;
5
	public $text_direction = 'ltr';
6
	public $lang_code_iso_639_1 = null;
7
	public $lang_code_iso_639_2 = null;
8
	public $lang_code_iso_639_3 = null;
9
	public $country_code;
10
	public $wp_locale;
11
	public $slug;
12
	public $nplurals = 2;
13
	public $plural_expression = 'n != 1';
14
	public $google_code = null;
15
	public $preferred_sans_serif_font_family = null;
16
	public $facebook_locale = null;
17
	// TODO: days, months, decimals, quotes
18
19
	public function __construct( $args = array() ) {
20
		foreach( $args as $key => $value ) {
21
			$this->$key = $value;
22
		}
23
	}
24
25
	public static function __set_state( $state ) {
26
		return new GP_Locale( $state );
27
	}
28
29
	/**
30
	 * Make deprecated properties checkable for backwards compatibility.
31
	 *
32
	 * @param string $name Property to check if set.
33
	 * @return bool Whether the property is set.
34
	 */
35
	public function __isset( $name ) {
36
		if ( 'rtl' == $name ) {
37
			return isset( $this->text_direction );
38
		}
39
	}
40
41
	/**
42
	 * Make deprecated properties readable for backwards compatibility.
43
	 *
44
	 * @param string $name Property to get.
45
	 * @return mixed Property.
46
	 */
47
	public function __get( $name ) {
48
		if ( 'rtl' == $name ) {
49
			return ( 'rtl' === $this->text_direction );
50
		}
51
	}
52
53
	public function combined_name() {
54
		/* translators: combined name for locales: 1: name in English, 2: native name */
55
		return sprintf( _x( '%1$s/%2$s', 'locales', 'jetpack' ), $this->english_name, $this->native_name );
56
	}
57
58
	public function numbers_for_index( $index, $how_many = 3, $test_up_to = 1000 ) {
59
		$numbers = array();
60
61
		for( $number = 0; $number < $test_up_to; ++$number ) {
62
			if ( $this->index_for_number( $number ) == $index ) {
63
				$numbers[] = $number;
64
65
				if ( count( $numbers ) >= $how_many ) {
66
					break;
67
				}
68
			}
69
		}
70
71
		return $numbers;
72
	}
73
74
	public function index_for_number( $number ) {
75
		if ( ! isset( $this->_index_for_number ) ) {
76
			$gettext = new Gettext_Translations;
77
			$expression = $gettext->parenthesize_plural_exression( $this->plural_expression );
78
			$this->_index_for_number = $gettext->make_plural_form_function( $this->nplurals, $expression );
79
		}
80
81
		$f = $this->_index_for_number;
82
83
		return $f( $number );
84
	}
85
86
}
87
88
class GP_Locales {
89
90
	public $locales = array();
91
92
	public function __construct() {
93
		$aa = new GP_Locale();
94
		$aa->english_name = 'Afar';
95
		$aa->native_name = 'Afaraf';
96
		$aa->lang_code_iso_639_1 = 'aa';
97
		$aa->lang_code_iso_639_2 = 'aar';
98
		$aa->slug = 'aa';
99
100
		$ae = new GP_Locale();
101
		$ae->english_name = 'Avestan';
102
		$ae->native_name = 'Avesta';
103
		$ae->lang_code_iso_639_1 = 'ae';
104
		$ae->lang_code_iso_639_2 = 'ave';
105
		$ae->slug = 'ae';
106
107
		$af = new GP_Locale();
108
		$af->english_name = 'Afrikaans';
109
		$af->native_name = 'Afrikaans';
110
		$af->lang_code_iso_639_1 = 'af';
111
		$af->lang_code_iso_639_2 = 'afr';
112
		$af->country_code = 'za';
113
		$af->wp_locale = 'af';
114
		$af->slug = 'af';
115
		$af->google_code = 'af';
116
		$af->facebook_locale = 'af_ZA';
117
118
		$ak = new GP_Locale();
119
		$ak->english_name = 'Akan';
120
		$ak->native_name = 'Akan';
121
		$ak->lang_code_iso_639_1 = 'ak';
122
		$ak->lang_code_iso_639_2 = 'aka';
123
		$ak->wp_locale = 'ak';
124
		$ak->slug = 'ak';
125
126
		$am = new GP_Locale();
127
		$am->english_name = 'Amharic';
128
		$am->native_name = 'አማርኛ';
129
		$am->lang_code_iso_639_1 = 'am';
130
		$am->lang_code_iso_639_2 = 'amh';
131
		$am->country_code = 'et';
132
		$am->wp_locale = 'am';
133
		$am->slug = 'am';
134
135
		$an = new GP_Locale();
136
		$an->english_name = 'Aragonese';
137
		$an->native_name = 'Aragonés';
138
		$an->lang_code_iso_639_1 = 'an';
139
		$an->lang_code_iso_639_2 = 'arg';
140
		$an->country_code = 'es';
141
		$an->slug = 'an';
142
143
		$ar = new GP_Locale();
144
		$ar->english_name = 'Arabic';
145
		$ar->native_name = 'العربية';
146
		$ar->lang_code_iso_639_1 = 'ar';
147
		$ar->lang_code_iso_639_2 = 'ara';
148
		$ar->wp_locale = 'ar';
149
		$ar->slug = 'ar';
150
		$ar->google_code = 'ar';
151
		$ar->facebook_locale = 'ar_AR';
152
		$ar->nplurals = 6;
153
		$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';
154
		$ar->text_direction = 'rtl';
155
		$ar->preferred_sans_serif_font_family = 'Tahoma';
156
157
		$arq = new GP_Locale();
158
		$arq->english_name = 'Algerian Arabic';
159
		$arq->native_name = 'الدارجة الجزايرية';
160
		$arq->lang_code_iso_639_1 = 'ar_DZ';
161
		$arq->lang_code_iso_639_3 = 'arq';
162
		$arq->country_code = 'dz';
163
		$arq->wp_locale = 'arq';
164
		$arq->slug = 'arq';
165
		$arq->nplurals = 6;
166
		$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';
167
		$arq->text_direction = 'rtl';
168
169
		$ary = new GP_Locale();
170
		$ary->english_name = 'Moroccan Arabic';
171
		$ary->native_name = 'العربية المغربية';
172
		$ary->lang_code_iso_639_1 = 'ar_MA';
173
		$ary->lang_code_iso_639_3 = 'ary';
174
		$ary->country_code = 'ma';
175
		$ary->wp_locale = 'ary';
176
		$ary->slug = 'ary';
177
		$ary->nplurals = 6;
178
		$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';
179
		$ary->text_direction = 'rtl';
180
181
		$as = new GP_Locale();
182
		$as->english_name = 'Assamese';
183
		$as->native_name = 'অসমীয়া';
184
		$as->lang_code_iso_639_1 = 'as';
185
		$as->lang_code_iso_639_2 = 'asm';
186
		$as->lang_code_iso_639_3 = 'asm';
187
		$as->country_code = 'in';
188
		$as->wp_locale = 'as';
189
		$as->slug = 'as';
190
191
		$ast = new GP_Locale();
192
		$ast->english_name = 'Asturian';
193
		$ast->native_name = 'Asturianu';
194
		$ast->lang_code_iso_639_2 = 'ast';
195
		$ast->country_code = 'es';
196
		$ast->slug = 'ast';
197
198
		$av = new GP_Locale();
199
		$av->english_name = 'Avaric';
200
		$av->native_name = 'авар мацӀ';
201
		$av->lang_code_iso_639_1 = 'av';
202
		$av->lang_code_iso_639_2 = 'ava';
203
		$av->slug = 'av';
204
205
		$ay = new GP_Locale();
206
		$ay->english_name = 'Aymara';
207
		$ay->native_name = 'aymar aru';
208
		$ay->lang_code_iso_639_1 = 'ay';
209
		$ay->lang_code_iso_639_2 = 'aym';
210
		$ay->slug = 'ay';
211
		$ay->nplurals = 1;
212
		$ay->plural_expression = '0';
213
214
		$az = new GP_Locale();
215
		$az->english_name = 'Azerbaijani';
216
		$az->native_name = 'Azərbaycan dili';
217
		$az->lang_code_iso_639_1 = 'az';
218
		$az->lang_code_iso_639_2 = 'aze';
219
		$az->country_code = 'az';
220
		$az->wp_locale = 'az';
221
		$az->slug = 'az';
222
		$az->google_code = 'az';
223
		$az->facebook_locale = 'az_AZ';
224
225
		$azb = new GP_Locale();
226
		$azb->english_name = 'South Azerbaijani';
227
		$azb->native_name = 'گؤنئی آذربایجان';
228
		$azb->lang_code_iso_639_3 = 'azb';
229
		$azb->country_code = 'az';
230
		$azb->wp_locale = 'azb';
231
		$azb->slug = 'azb';
232
		$azb->text_direction = 'rtl';
233
234
		$az_tr = new GP_Locale();
235
		$az_tr->english_name = 'Azerbaijani (Turkey)';
236
		$az_tr->native_name = 'Azərbaycan Türkcəsi';
237
		$az_tr->lang_code_iso_639_1 = 'az';
238
		$az_tr->lang_code_iso_639_2 = 'aze';
239
		$az_tr->country_code = 'tr';
240
		$az_tr->wp_locale = 'az_TR';
241
		$az_tr->slug = 'az-tr';
242
		$az_tr->text_direction = true;
243
244
		$ba = new GP_Locale();
245
		$ba->english_name = 'Bashkir';
246
		$ba->native_name = 'башҡорт теле';
247
		$ba->lang_code_iso_639_1 = 'ba';
248
		$ba->lang_code_iso_639_2 = 'bak';
249
		$ba->wp_locale = 'ba';
250
		$ba->slug = 'ba';
251
252
		$bal = new GP_Locale();
253
		$bal->english_name = 'Catalan (Balear)';
254
		$bal->native_name = 'Català (Balear)';
255
		$bal->lang_code_iso_639_2 = 'bal';
256
		$bal->country_code = 'es';
257
		$bal->wp_locale = 'bal';
258
		$bal->slug = 'bal';
259
260
		$bcc = new GP_Locale();
261
		$bcc->english_name = 'Balochi Southern';
262
		$bcc->native_name = 'بلوچی مکرانی';
263
		$bcc->lang_code_iso_639_3 = 'bcc';
264
		$bcc->country_code = 'pk';
265
		$bcc->wp_locale = 'bcc';
266
		$bcc->slug = 'bcc';
267
		$bcc->nplurals = 1;
268
		$bcc->plural_expression = 0;
0 ignored issues
show
Documentation Bug introduced by
The property $plural_expression was declared of type string, but 0 is of type integer. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

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