locales.php 64 KB

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