Completed
Push — fix/untranslated-module-names ( 4226a9...c5f2cb )
by
unknown
11:13
created

GP_Locales::locales()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
nc 1
cc 1
eloc 3
nop 0
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
0 ignored issues
show
Coding Style Best Practice introduced by
Comments for TODO tasks are often forgotten in the code; it might be better to use a dedicated issue tracker.
Loading history...
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 );
0 ignored issues
show
Bug introduced by
The property _index_for_number does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
79
		}
80
81
		$f = $this->_index_for_number;
82
83
		return $f( $number );
84
	}
85
86
}
87
88
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...
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;
0 ignored issues
show
Documentation Bug introduced by
The property $text_direction was declared of type string, but true is of type boolean. 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...
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
0 ignored issues
show
Coding Style introduced by
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

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