GoogleLanguages.cs 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700
  1. using System;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace I2.Loc
  5. {
  6. public static class GoogleLanguages
  7. {
  8. public static string GetLanguageCode(string Filter, bool ShowWarnings = false)
  9. {
  10. if (string.IsNullOrEmpty(Filter))
  11. {
  12. return string.Empty;
  13. }
  14. string[] filters = Filter.ToLowerInvariant().Split(" /(),".ToCharArray());
  15. foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
  16. {
  17. if (GoogleLanguages.LanguageMatchesFilter(keyValuePair.Key, filters))
  18. {
  19. return keyValuePair.Value.Code;
  20. }
  21. }
  22. if (ShowWarnings)
  23. {
  24. Debug.Log(string.Format("Language '{0}' not recognized. Please, add the language code to GoogleTranslation.cs", Filter));
  25. }
  26. return string.Empty;
  27. }
  28. public static List<string> GetLanguagesForDropdown(string Filter, string CodesToExclude)
  29. {
  30. string[] filters = Filter.ToLowerInvariant().Split(" /(),".ToCharArray());
  31. List<string> list = new List<string>();
  32. foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
  33. {
  34. if (string.IsNullOrEmpty(Filter) || GoogleLanguages.LanguageMatchesFilter(keyValuePair.Key, filters))
  35. {
  36. string text = string.Concat(new string[]
  37. {
  38. "[" + keyValuePair.Value.Code + "]"
  39. });
  40. if (!CodesToExclude.Contains(text))
  41. {
  42. list.Add(keyValuePair.Key + " " + text);
  43. }
  44. }
  45. }
  46. for (int i = list.Count - 2; i >= 0; i--)
  47. {
  48. string text2 = list[i].Substring(0, list[i].IndexOf(" ["));
  49. if (list[i + 1].StartsWith(text2))
  50. {
  51. list[i] = text2 + "/" + list[i];
  52. list.Insert(i + 1, text2 + "/");
  53. }
  54. }
  55. return list;
  56. }
  57. private static bool LanguageMatchesFilter(string Language, string[] Filters)
  58. {
  59. Language = Language.ToLowerInvariant();
  60. int i = 0;
  61. int num = Filters.Length;
  62. while (i < num)
  63. {
  64. if (Filters[i] != string.Empty)
  65. {
  66. if (!Language.Contains(Filters[i].ToLower()))
  67. {
  68. return false;
  69. }
  70. Language = Language.Remove(Language.IndexOf(Filters[i]), Filters[i].Length);
  71. }
  72. i++;
  73. }
  74. return true;
  75. }
  76. public static string GetFormatedLanguageName(string Language)
  77. {
  78. string text = string.Empty;
  79. int num = Language.IndexOf(" [");
  80. if (num > 0)
  81. {
  82. Language = Language.Substring(0, num);
  83. }
  84. num = Language.IndexOf('/');
  85. if (num > 0)
  86. {
  87. text = Language.Substring(0, num);
  88. if (Language == text + "/" + text)
  89. {
  90. return text;
  91. }
  92. Language = Language.Replace("/", " (") + ")";
  93. }
  94. return Language;
  95. }
  96. public static string GetCodedLanguage(string Language, string code)
  97. {
  98. string languageCode = GoogleLanguages.GetLanguageCode(Language, false);
  99. if (string.Compare(code, languageCode, StringComparison.OrdinalIgnoreCase) == 0)
  100. {
  101. return Language;
  102. }
  103. return Language + " [" + code + "]";
  104. }
  105. public static void UnPackCodeFromLanguageName(string CodedLanguage, out string Language, out string code)
  106. {
  107. if (string.IsNullOrEmpty(CodedLanguage))
  108. {
  109. Language = string.Empty;
  110. code = string.Empty;
  111. return;
  112. }
  113. int num = CodedLanguage.IndexOf("[");
  114. if (num < 0)
  115. {
  116. Language = CodedLanguage;
  117. code = GoogleLanguages.GetLanguageCode(Language, false);
  118. }
  119. else
  120. {
  121. Language = CodedLanguage.Substring(0, num).Trim();
  122. code = CodedLanguage.Substring(num + 1, CodedLanguage.IndexOf("]", num) - num - 1);
  123. }
  124. }
  125. public static string GetGoogleLanguageCode(string InternationalCode)
  126. {
  127. foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
  128. {
  129. if (InternationalCode == keyValuePair.Value.Code)
  130. {
  131. if (keyValuePair.Value.GoogleCode == "-")
  132. {
  133. return null;
  134. }
  135. return string.IsNullOrEmpty(keyValuePair.Value.GoogleCode) ? InternationalCode : keyValuePair.Value.GoogleCode;
  136. }
  137. }
  138. return InternationalCode;
  139. }
  140. public static string GetLanguageName(string code, bool useParenthesesForRegion = false, bool allowDiscardRegion = true)
  141. {
  142. foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
  143. {
  144. if (code == keyValuePair.Value.Code)
  145. {
  146. string text = keyValuePair.Key;
  147. if (useParenthesesForRegion)
  148. {
  149. int num = text.IndexOf('/');
  150. if (num > 0)
  151. {
  152. text = text.Substring(0, num) + " (" + text.Substring(num + 1) + ")";
  153. }
  154. }
  155. return text;
  156. }
  157. }
  158. if (allowDiscardRegion)
  159. {
  160. int num2 = code.IndexOf("-");
  161. if (num2 > 0)
  162. {
  163. return GoogleLanguages.GetLanguageName(code.Substring(0, num2), useParenthesesForRegion, false);
  164. }
  165. }
  166. return null;
  167. }
  168. public static List<string> GetAllInternationalCodes()
  169. {
  170. HashSet<string> hashSet = new HashSet<string>();
  171. foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
  172. {
  173. hashSet.Add(keyValuePair.Value.Code);
  174. }
  175. return new List<string>(hashSet);
  176. }
  177. public static bool LanguageCode_HasJoinedWord(string languageCode)
  178. {
  179. foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
  180. {
  181. if (languageCode == keyValuePair.Value.GoogleCode || languageCode == keyValuePair.Value.Code)
  182. {
  183. return keyValuePair.Value.HasJoinedWords;
  184. }
  185. }
  186. return false;
  187. }
  188. private static int GetPluralRule(string langCode)
  189. {
  190. if (langCode.Length > 2)
  191. {
  192. langCode = langCode.Substring(0, 2);
  193. }
  194. langCode = langCode.ToLower();
  195. foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
  196. {
  197. if (keyValuePair.Value.Code == langCode)
  198. {
  199. return keyValuePair.Value.PluralRule;
  200. }
  201. }
  202. return 0;
  203. }
  204. public static bool LanguageHasPluralType(string langCode, string pluralType)
  205. {
  206. if (pluralType == "Plural" || pluralType == "Zero" || pluralType == "One")
  207. {
  208. return true;
  209. }
  210. switch (GoogleLanguages.GetPluralRule(langCode))
  211. {
  212. case 3:
  213. return pluralType == "Two" || pluralType == "Few";
  214. case 4:
  215. case 5:
  216. case 6:
  217. case 7:
  218. case 8:
  219. return pluralType == "Few";
  220. case 9:
  221. return pluralType == "Two" || pluralType == "Few";
  222. case 10:
  223. case 11:
  224. case 15:
  225. case 16:
  226. return pluralType == "Two" || pluralType == "Few" || pluralType == "Many";
  227. case 12:
  228. return pluralType == "Few" || pluralType == "Many";
  229. case 13:
  230. return pluralType == "Two";
  231. }
  232. return false;
  233. }
  234. public static ePluralType GetPluralType(string langCode, int n)
  235. {
  236. if (n == 0)
  237. {
  238. return ePluralType.Zero;
  239. }
  240. if (n == 1)
  241. {
  242. return ePluralType.One;
  243. }
  244. switch (GoogleLanguages.GetPluralRule(langCode))
  245. {
  246. case 0:
  247. return ePluralType.Plural;
  248. case 1:
  249. return (n != 1) ? ePluralType.Plural : ePluralType.One;
  250. case 2:
  251. return (n > 1) ? ePluralType.Plural : ePluralType.One;
  252. case 3:
  253. return (n != 1 && n != 11) ? ((n != 2 && n != 12) ? ((!GoogleLanguages.inRange(n, 3, 10) && !GoogleLanguages.inRange(n, 13, 19)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.Two) : ePluralType.One;
  254. case 4:
  255. return (n != 1) ? ((!GoogleLanguages.inRange(n % 100, 1, 19)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.One;
  256. case 5:
  257. return (n % 10 != 1 || n % 100 == 11) ? ((n % 10 < 2 || (n % 100 >= 10 && n % 100 < 20)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.One;
  258. case 6:
  259. return (n % 10 != 1 || n % 100 == 11) ? ((!GoogleLanguages.inRange(n % 10, 2, 4) || GoogleLanguages.inRange(n % 100, 12, 14)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.One;
  260. case 7:
  261. return (n != 1) ? ((!GoogleLanguages.inRange(n, 2, 4)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.One;
  262. case 8:
  263. return (n != 1) ? ((!GoogleLanguages.inRange(n % 10, 2, 4) || GoogleLanguages.inRange(n % 100, 12, 14)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.One;
  264. case 9:
  265. return (n % 100 != 1) ? ((n % 100 != 2) ? ((!GoogleLanguages.inRange(n % 100, 3, 4)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.Two) : ePluralType.One;
  266. case 10:
  267. return (n != 1) ? ((n != 2) ? ((!GoogleLanguages.inRange(n, 3, 6)) ? ((!GoogleLanguages.inRange(n, 7, 10)) ? ePluralType.Plural : ePluralType.Many) : ePluralType.Few) : ePluralType.Two) : ePluralType.One;
  268. case 11:
  269. return (n != 0) ? ((n != 1) ? ((n != 2) ? ((!GoogleLanguages.inRange(n % 100, 3, 10)) ? ((n % 100 < 11) ? ePluralType.Plural : ePluralType.Many) : ePluralType.Few) : ePluralType.Two) : ePluralType.One) : ePluralType.Zero;
  270. case 12:
  271. return (n != 1) ? ((!GoogleLanguages.inRange(n % 100, 1, 10)) ? ((!GoogleLanguages.inRange(n % 100, 11, 19)) ? ePluralType.Plural : ePluralType.Many) : ePluralType.Few) : ePluralType.One;
  272. case 13:
  273. return (n % 10 != 1) ? ((n % 10 != 2) ? ePluralType.Plural : ePluralType.Two) : ePluralType.One;
  274. case 14:
  275. return (n % 10 != 1 || n % 100 == 11) ? ePluralType.Plural : ePluralType.One;
  276. case 15:
  277. return (n % 10 != 1 || n % 100 == 11 || n % 100 == 71 || n % 100 == 91) ? ((n % 10 != 2 || n % 100 == 12 || n % 100 == 72 || n % 100 == 92) ? (((n % 10 != 3 && n % 10 != 4 && n % 10 != 9) || n % 100 == 13 || n % 100 == 14 || n % 100 == 19 || n % 100 == 73 || n % 100 == 74 || n % 100 == 79 || n % 100 == 93 || n % 100 == 94 || n % 100 == 99) ? ((n % 1000000 != 0) ? ePluralType.Plural : ePluralType.Many) : ePluralType.Few) : ePluralType.Two) : ePluralType.One;
  278. case 16:
  279. return (n != 0) ? ((n != 1) ? ((n != 2) ? ((n != 3) ? ((n != 6) ? ePluralType.Plural : ePluralType.Many) : ePluralType.Few) : ePluralType.Two) : ePluralType.One) : ePluralType.Zero;
  280. default:
  281. return ePluralType.Plural;
  282. }
  283. }
  284. public static int GetPluralTestNumber(string langCode, ePluralType pluralType)
  285. {
  286. switch (pluralType)
  287. {
  288. case ePluralType.Zero:
  289. return 0;
  290. case ePluralType.One:
  291. return 1;
  292. case ePluralType.Few:
  293. return 3;
  294. case ePluralType.Many:
  295. {
  296. int pluralRule = GoogleLanguages.GetPluralRule(langCode);
  297. if (pluralRule == 10)
  298. {
  299. return 8;
  300. }
  301. if (pluralRule == 11 || pluralRule == 12)
  302. {
  303. return 13;
  304. }
  305. if (pluralRule == 15)
  306. {
  307. return 1000000;
  308. }
  309. return 6;
  310. }
  311. }
  312. return 936;
  313. }
  314. private static bool inRange(int amount, int min, int max)
  315. {
  316. return amount >= min && amount <= max;
  317. }
  318. public static Dictionary<string, GoogleLanguages.LanguageCodeDef> mLanguageDef = new Dictionary<string, GoogleLanguages.LanguageCodeDef>(StringComparer.Ordinal)
  319. {
  320. {
  321. "Abkhazian",
  322. new GoogleLanguages.LanguageCodeDef
  323. {
  324. PluralRule = 1,
  325. Code = "ab",
  326. GoogleCode = "-"
  327. }
  328. },
  329. {
  330. "Afar",
  331. new GoogleLanguages.LanguageCodeDef
  332. {
  333. PluralRule = 1,
  334. Code = "aa",
  335. GoogleCode = "-"
  336. }
  337. },
  338. {
  339. "Afrikaans",
  340. new GoogleLanguages.LanguageCodeDef
  341. {
  342. PluralRule = 1,
  343. Code = "af"
  344. }
  345. },
  346. {
  347. "Akan",
  348. new GoogleLanguages.LanguageCodeDef
  349. {
  350. PluralRule = 1,
  351. Code = "ak",
  352. GoogleCode = "-"
  353. }
  354. },
  355. {
  356. "Albanian",
  357. new GoogleLanguages.LanguageCodeDef
  358. {
  359. PluralRule = 1,
  360. Code = "sq"
  361. }
  362. },
  363. {
  364. "Amharic",
  365. new GoogleLanguages.LanguageCodeDef
  366. {
  367. PluralRule = 1,
  368. Code = "am"
  369. }
  370. },
  371. {
  372. "Arabic",
  373. new GoogleLanguages.LanguageCodeDef
  374. {
  375. PluralRule = 11,
  376. Code = "ar"
  377. }
  378. },
  379. {
  380. "Arabic/Algeria",
  381. new GoogleLanguages.LanguageCodeDef
  382. {
  383. PluralRule = 11,
  384. Code = "ar-DZ",
  385. GoogleCode = "ar"
  386. }
  387. },
  388. {
  389. "Arabic/Bahrain",
  390. new GoogleLanguages.LanguageCodeDef
  391. {
  392. PluralRule = 11,
  393. Code = "ar-BH",
  394. GoogleCode = "ar"
  395. }
  396. },
  397. {
  398. "Arabic/Egypt",
  399. new GoogleLanguages.LanguageCodeDef
  400. {
  401. PluralRule = 11,
  402. Code = "ar-EG",
  403. GoogleCode = "ar"
  404. }
  405. },
  406. {
  407. "Arabic/Iraq",
  408. new GoogleLanguages.LanguageCodeDef
  409. {
  410. PluralRule = 11,
  411. Code = "ar-IQ",
  412. GoogleCode = "ar"
  413. }
  414. },
  415. {
  416. "Arabic/Jordan",
  417. new GoogleLanguages.LanguageCodeDef
  418. {
  419. PluralRule = 11,
  420. Code = "ar-JO",
  421. GoogleCode = "ar"
  422. }
  423. },
  424. {
  425. "Arabic/Kuwait",
  426. new GoogleLanguages.LanguageCodeDef
  427. {
  428. PluralRule = 11,
  429. Code = "ar-KW",
  430. GoogleCode = "ar"
  431. }
  432. },
  433. {
  434. "Arabic/Lebanon",
  435. new GoogleLanguages.LanguageCodeDef
  436. {
  437. PluralRule = 11,
  438. Code = "ar-LB",
  439. GoogleCode = "ar"
  440. }
  441. },
  442. {
  443. "Arabic/Libya",
  444. new GoogleLanguages.LanguageCodeDef
  445. {
  446. PluralRule = 11,
  447. Code = "ar-LY",
  448. GoogleCode = "ar"
  449. }
  450. },
  451. {
  452. "Arabic/Morocco",
  453. new GoogleLanguages.LanguageCodeDef
  454. {
  455. PluralRule = 11,
  456. Code = "ar-MA",
  457. GoogleCode = "ar"
  458. }
  459. },
  460. {
  461. "Arabic/Oman",
  462. new GoogleLanguages.LanguageCodeDef
  463. {
  464. PluralRule = 11,
  465. Code = "ar-OM",
  466. GoogleCode = "ar"
  467. }
  468. },
  469. {
  470. "Arabic/Qatar",
  471. new GoogleLanguages.LanguageCodeDef
  472. {
  473. PluralRule = 11,
  474. Code = "ar-QA",
  475. GoogleCode = "ar"
  476. }
  477. },
  478. {
  479. "Arabic/Saudi Arabia",
  480. new GoogleLanguages.LanguageCodeDef
  481. {
  482. PluralRule = 11,
  483. Code = "ar-SA",
  484. GoogleCode = "ar"
  485. }
  486. },
  487. {
  488. "Arabic/Syria",
  489. new GoogleLanguages.LanguageCodeDef
  490. {
  491. PluralRule = 11,
  492. Code = "ar-SY",
  493. GoogleCode = "ar"
  494. }
  495. },
  496. {
  497. "Arabic/Tunisia",
  498. new GoogleLanguages.LanguageCodeDef
  499. {
  500. PluralRule = 11,
  501. Code = "ar-TN",
  502. GoogleCode = "ar"
  503. }
  504. },
  505. {
  506. "Arabic/U.A.E.",
  507. new GoogleLanguages.LanguageCodeDef
  508. {
  509. PluralRule = 11,
  510. Code = "ar-AE",
  511. GoogleCode = "ar"
  512. }
  513. },
  514. {
  515. "Arabic/Yemen",
  516. new GoogleLanguages.LanguageCodeDef
  517. {
  518. PluralRule = 11,
  519. Code = "ar-YE",
  520. GoogleCode = "ar"
  521. }
  522. },
  523. {
  524. "Aragonese",
  525. new GoogleLanguages.LanguageCodeDef
  526. {
  527. PluralRule = 1,
  528. Code = "an",
  529. GoogleCode = "-"
  530. }
  531. },
  532. {
  533. "Armenian",
  534. new GoogleLanguages.LanguageCodeDef
  535. {
  536. PluralRule = 1,
  537. Code = "hy"
  538. }
  539. },
  540. {
  541. "Assamese",
  542. new GoogleLanguages.LanguageCodeDef
  543. {
  544. PluralRule = 1,
  545. Code = "as",
  546. GoogleCode = "-"
  547. }
  548. },
  549. {
  550. "Avaric",
  551. new GoogleLanguages.LanguageCodeDef
  552. {
  553. PluralRule = 1,
  554. Code = "av",
  555. GoogleCode = "-"
  556. }
  557. },
  558. {
  559. "Avestan",
  560. new GoogleLanguages.LanguageCodeDef
  561. {
  562. PluralRule = 1,
  563. Code = "ae",
  564. GoogleCode = "-"
  565. }
  566. },
  567. {
  568. "Aymara",
  569. new GoogleLanguages.LanguageCodeDef
  570. {
  571. PluralRule = 1,
  572. Code = "ay",
  573. GoogleCode = "-"
  574. }
  575. },
  576. {
  577. "Azerbaijani",
  578. new GoogleLanguages.LanguageCodeDef
  579. {
  580. PluralRule = 1,
  581. Code = "az"
  582. }
  583. },
  584. {
  585. "Bambara",
  586. new GoogleLanguages.LanguageCodeDef
  587. {
  588. PluralRule = 1,
  589. Code = "bm",
  590. GoogleCode = "-"
  591. }
  592. },
  593. {
  594. "Bashkir",
  595. new GoogleLanguages.LanguageCodeDef
  596. {
  597. PluralRule = 1,
  598. Code = "ba",
  599. GoogleCode = "-"
  600. }
  601. },
  602. {
  603. "Basque",
  604. new GoogleLanguages.LanguageCodeDef
  605. {
  606. PluralRule = 1,
  607. Code = "eu"
  608. }
  609. },
  610. {
  611. "Basque/Spain",
  612. new GoogleLanguages.LanguageCodeDef
  613. {
  614. PluralRule = 1,
  615. Code = "eu-ES",
  616. GoogleCode = "eu"
  617. }
  618. },
  619. {
  620. "Belarusian",
  621. new GoogleLanguages.LanguageCodeDef
  622. {
  623. PluralRule = 5,
  624. Code = "be"
  625. }
  626. },
  627. {
  628. "Bengali",
  629. new GoogleLanguages.LanguageCodeDef
  630. {
  631. PluralRule = 1,
  632. Code = "bn"
  633. }
  634. },
  635. {
  636. "Bihari",
  637. new GoogleLanguages.LanguageCodeDef
  638. {
  639. PluralRule = 1,
  640. Code = "bh",
  641. GoogleCode = "-"
  642. }
  643. },
  644. {
  645. "Bislama",
  646. new GoogleLanguages.LanguageCodeDef
  647. {
  648. PluralRule = 1,
  649. Code = "bi",
  650. GoogleCode = "-"
  651. }
  652. },
  653. {
  654. "Bosnian",
  655. new GoogleLanguages.LanguageCodeDef
  656. {
  657. PluralRule = 5,
  658. Code = "bs"
  659. }
  660. },
  661. {
  662. "Breton",
  663. new GoogleLanguages.LanguageCodeDef
  664. {
  665. PluralRule = 1,
  666. Code = "br",
  667. GoogleCode = "-"
  668. }
  669. },
  670. {
  671. "Bulgariaa",
  672. new GoogleLanguages.LanguageCodeDef
  673. {
  674. PluralRule = 1,
  675. Code = "bg"
  676. }
  677. },
  678. {
  679. "Burmese",
  680. new GoogleLanguages.LanguageCodeDef
  681. {
  682. PluralRule = 1,
  683. Code = "my"
  684. }
  685. },
  686. {
  687. "Catalan",
  688. new GoogleLanguages.LanguageCodeDef
  689. {
  690. PluralRule = 1,
  691. Code = "ca"
  692. }
  693. },
  694. {
  695. "Chamorro",
  696. new GoogleLanguages.LanguageCodeDef
  697. {
  698. PluralRule = 1,
  699. Code = "ch",
  700. GoogleCode = "-"
  701. }
  702. },
  703. {
  704. "Chechen",
  705. new GoogleLanguages.LanguageCodeDef
  706. {
  707. PluralRule = 1,
  708. Code = "ce",
  709. GoogleCode = "-"
  710. }
  711. },
  712. {
  713. "Chichewa",
  714. new GoogleLanguages.LanguageCodeDef
  715. {
  716. PluralRule = 1,
  717. Code = "ny"
  718. }
  719. },
  720. {
  721. "Chinese",
  722. new GoogleLanguages.LanguageCodeDef
  723. {
  724. PluralRule = 0,
  725. Code = "zh",
  726. GoogleCode = "zh-CN",
  727. HasJoinedWords = true
  728. }
  729. },
  730. {
  731. "Chinese/Hong Kong",
  732. new GoogleLanguages.LanguageCodeDef
  733. {
  734. PluralRule = 0,
  735. Code = "zh-HK",
  736. GoogleCode = "zh-TW",
  737. HasJoinedWords = true
  738. }
  739. },
  740. {
  741. "Chinese/Macau",
  742. new GoogleLanguages.LanguageCodeDef
  743. {
  744. PluralRule = 0,
  745. Code = "zh-MO",
  746. GoogleCode = "zh-CN",
  747. HasJoinedWords = true
  748. }
  749. },
  750. {
  751. "Chinese/PRC",
  752. new GoogleLanguages.LanguageCodeDef
  753. {
  754. PluralRule = 0,
  755. Code = "zh-CN",
  756. GoogleCode = "zh-CN",
  757. HasJoinedWords = true
  758. }
  759. },
  760. {
  761. "Chinese/Simplified",
  762. new GoogleLanguages.LanguageCodeDef
  763. {
  764. PluralRule = 0,
  765. Code = "zh-CN",
  766. GoogleCode = "zh-CN",
  767. HasJoinedWords = true
  768. }
  769. },
  770. {
  771. "Chinese/Singapore",
  772. new GoogleLanguages.LanguageCodeDef
  773. {
  774. PluralRule = 0,
  775. Code = "zh-SG",
  776. GoogleCode = "zh-CN",
  777. HasJoinedWords = true
  778. }
  779. },
  780. {
  781. "Chinese/Taiwan",
  782. new GoogleLanguages.LanguageCodeDef
  783. {
  784. PluralRule = 0,
  785. Code = "zh-TW",
  786. GoogleCode = "zh-TW",
  787. HasJoinedWords = true
  788. }
  789. },
  790. {
  791. "Chinese/Traditional",
  792. new GoogleLanguages.LanguageCodeDef
  793. {
  794. PluralRule = 0,
  795. Code = "zh-TW",
  796. GoogleCode = "zh-TW",
  797. HasJoinedWords = true
  798. }
  799. },
  800. {
  801. "Chuvash",
  802. new GoogleLanguages.LanguageCodeDef
  803. {
  804. PluralRule = 1,
  805. Code = "cv",
  806. GoogleCode = "-"
  807. }
  808. },
  809. {
  810. "Cornish",
  811. new GoogleLanguages.LanguageCodeDef
  812. {
  813. PluralRule = 1,
  814. Code = "kw",
  815. GoogleCode = "-"
  816. }
  817. },
  818. {
  819. "Corsican",
  820. new GoogleLanguages.LanguageCodeDef
  821. {
  822. PluralRule = 1,
  823. Code = "co"
  824. }
  825. },
  826. {
  827. "Cree",
  828. new GoogleLanguages.LanguageCodeDef
  829. {
  830. PluralRule = 1,
  831. Code = "cr",
  832. GoogleCode = "-"
  833. }
  834. },
  835. {
  836. "Croatian",
  837. new GoogleLanguages.LanguageCodeDef
  838. {
  839. PluralRule = 5,
  840. Code = "hr"
  841. }
  842. },
  843. {
  844. "Croatian/Bosnia and Herzegovina",
  845. new GoogleLanguages.LanguageCodeDef
  846. {
  847. PluralRule = 5,
  848. Code = "hr-BA",
  849. GoogleCode = "hr"
  850. }
  851. },
  852. {
  853. "Czech",
  854. new GoogleLanguages.LanguageCodeDef
  855. {
  856. PluralRule = 7,
  857. Code = "cs"
  858. }
  859. },
  860. {
  861. "Danish",
  862. new GoogleLanguages.LanguageCodeDef
  863. {
  864. PluralRule = 1,
  865. Code = "da"
  866. }
  867. },
  868. {
  869. "Divehi",
  870. new GoogleLanguages.LanguageCodeDef
  871. {
  872. PluralRule = 1,
  873. Code = "dv",
  874. GoogleCode = "-"
  875. }
  876. },
  877. {
  878. "Dutch",
  879. new GoogleLanguages.LanguageCodeDef
  880. {
  881. PluralRule = 1,
  882. Code = "nl"
  883. }
  884. },
  885. {
  886. "Dutch/Belgium",
  887. new GoogleLanguages.LanguageCodeDef
  888. {
  889. PluralRule = 1,
  890. Code = "nl-BE",
  891. GoogleCode = "nl"
  892. }
  893. },
  894. {
  895. "Dutch/Netherlands",
  896. new GoogleLanguages.LanguageCodeDef
  897. {
  898. PluralRule = 1,
  899. Code = "nl-NL",
  900. GoogleCode = "nl"
  901. }
  902. },
  903. {
  904. "Dzongkha",
  905. new GoogleLanguages.LanguageCodeDef
  906. {
  907. PluralRule = 1,
  908. Code = "dz",
  909. GoogleCode = "-"
  910. }
  911. },
  912. {
  913. "English",
  914. new GoogleLanguages.LanguageCodeDef
  915. {
  916. PluralRule = 1,
  917. Code = "en"
  918. }
  919. },
  920. {
  921. "English/Australia",
  922. new GoogleLanguages.LanguageCodeDef
  923. {
  924. PluralRule = 1,
  925. Code = "en-AU",
  926. GoogleCode = "en"
  927. }
  928. },
  929. {
  930. "English/Belize",
  931. new GoogleLanguages.LanguageCodeDef
  932. {
  933. PluralRule = 1,
  934. Code = "en-BZ",
  935. GoogleCode = "en"
  936. }
  937. },
  938. {
  939. "English/Canada",
  940. new GoogleLanguages.LanguageCodeDef
  941. {
  942. PluralRule = 1,
  943. Code = "en-CA",
  944. GoogleCode = "en"
  945. }
  946. },
  947. {
  948. "English/Caribbean",
  949. new GoogleLanguages.LanguageCodeDef
  950. {
  951. PluralRule = 1,
  952. Code = "en-CB",
  953. GoogleCode = "en"
  954. }
  955. },
  956. {
  957. "English/Ireland",
  958. new GoogleLanguages.LanguageCodeDef
  959. {
  960. PluralRule = 1,
  961. Code = "en-IE",
  962. GoogleCode = "en"
  963. }
  964. },
  965. {
  966. "English/Jamaica",
  967. new GoogleLanguages.LanguageCodeDef
  968. {
  969. PluralRule = 1,
  970. Code = "en-JM",
  971. GoogleCode = "en"
  972. }
  973. },
  974. {
  975. "English/New Zealand",
  976. new GoogleLanguages.LanguageCodeDef
  977. {
  978. PluralRule = 1,
  979. Code = "en-NZ",
  980. GoogleCode = "en"
  981. }
  982. },
  983. {
  984. "English/Republic of the Philippines",
  985. new GoogleLanguages.LanguageCodeDef
  986. {
  987. PluralRule = 1,
  988. Code = "en-PH",
  989. GoogleCode = "en"
  990. }
  991. },
  992. {
  993. "English/South Africa",
  994. new GoogleLanguages.LanguageCodeDef
  995. {
  996. PluralRule = 1,
  997. Code = "en-ZA",
  998. GoogleCode = "en"
  999. }
  1000. },
  1001. {
  1002. "English/Trinidad",
  1003. new GoogleLanguages.LanguageCodeDef
  1004. {
  1005. PluralRule = 1,
  1006. Code = "en-TT",
  1007. GoogleCode = "en"
  1008. }
  1009. },
  1010. {
  1011. "English/United Kingdom",
  1012. new GoogleLanguages.LanguageCodeDef
  1013. {
  1014. PluralRule = 1,
  1015. Code = "en-GB",
  1016. GoogleCode = "en"
  1017. }
  1018. },
  1019. {
  1020. "English/United States",
  1021. new GoogleLanguages.LanguageCodeDef
  1022. {
  1023. PluralRule = 1,
  1024. Code = "en-US",
  1025. GoogleCode = "en"
  1026. }
  1027. },
  1028. {
  1029. "English/Zimbabwe",
  1030. new GoogleLanguages.LanguageCodeDef
  1031. {
  1032. PluralRule = 1,
  1033. Code = "en-ZW",
  1034. GoogleCode = "en"
  1035. }
  1036. },
  1037. {
  1038. "Esperanto",
  1039. new GoogleLanguages.LanguageCodeDef
  1040. {
  1041. PluralRule = 1,
  1042. Code = "eo"
  1043. }
  1044. },
  1045. {
  1046. "Estonian",
  1047. new GoogleLanguages.LanguageCodeDef
  1048. {
  1049. PluralRule = 1,
  1050. Code = "et"
  1051. }
  1052. },
  1053. {
  1054. "Ewe",
  1055. new GoogleLanguages.LanguageCodeDef
  1056. {
  1057. PluralRule = 1,
  1058. Code = "ee",
  1059. GoogleCode = "-"
  1060. }
  1061. },
  1062. {
  1063. "Faeroese",
  1064. new GoogleLanguages.LanguageCodeDef
  1065. {
  1066. PluralRule = 1,
  1067. Code = "fo",
  1068. GoogleCode = "-"
  1069. }
  1070. },
  1071. {
  1072. "Fijian",
  1073. new GoogleLanguages.LanguageCodeDef
  1074. {
  1075. PluralRule = 1,
  1076. Code = "fj",
  1077. GoogleCode = "-"
  1078. }
  1079. },
  1080. {
  1081. "Finnish",
  1082. new GoogleLanguages.LanguageCodeDef
  1083. {
  1084. PluralRule = 1,
  1085. Code = "fi"
  1086. }
  1087. },
  1088. {
  1089. "French",
  1090. new GoogleLanguages.LanguageCodeDef
  1091. {
  1092. PluralRule = 2,
  1093. Code = "fr"
  1094. }
  1095. },
  1096. {
  1097. "French/Belgium",
  1098. new GoogleLanguages.LanguageCodeDef
  1099. {
  1100. PluralRule = 2,
  1101. Code = "fr-BE",
  1102. GoogleCode = "fr"
  1103. }
  1104. },
  1105. {
  1106. "French/Canada",
  1107. new GoogleLanguages.LanguageCodeDef
  1108. {
  1109. PluralRule = 2,
  1110. Code = "fr-CA",
  1111. GoogleCode = "fr"
  1112. }
  1113. },
  1114. {
  1115. "French/France",
  1116. new GoogleLanguages.LanguageCodeDef
  1117. {
  1118. PluralRule = 2,
  1119. Code = "fr-FR",
  1120. GoogleCode = "fr"
  1121. }
  1122. },
  1123. {
  1124. "French/Luxembourg",
  1125. new GoogleLanguages.LanguageCodeDef
  1126. {
  1127. PluralRule = 2,
  1128. Code = "fr-LU",
  1129. GoogleCode = "fr"
  1130. }
  1131. },
  1132. {
  1133. "French/Principality of Monaco",
  1134. new GoogleLanguages.LanguageCodeDef
  1135. {
  1136. PluralRule = 2,
  1137. Code = "fr-MC",
  1138. GoogleCode = "fr"
  1139. }
  1140. },
  1141. {
  1142. "French/Switzerland",
  1143. new GoogleLanguages.LanguageCodeDef
  1144. {
  1145. PluralRule = 2,
  1146. Code = "fr-CH",
  1147. GoogleCode = "fr"
  1148. }
  1149. },
  1150. {
  1151. "Fulah",
  1152. new GoogleLanguages.LanguageCodeDef
  1153. {
  1154. PluralRule = 1,
  1155. Code = "ff",
  1156. GoogleCode = "-"
  1157. }
  1158. },
  1159. {
  1160. "Galician",
  1161. new GoogleLanguages.LanguageCodeDef
  1162. {
  1163. PluralRule = 1,
  1164. Code = "gl"
  1165. }
  1166. },
  1167. {
  1168. "Galician/Spain",
  1169. new GoogleLanguages.LanguageCodeDef
  1170. {
  1171. PluralRule = 1,
  1172. Code = "gl-ES",
  1173. GoogleCode = "gl"
  1174. }
  1175. },
  1176. {
  1177. "Georgian",
  1178. new GoogleLanguages.LanguageCodeDef
  1179. {
  1180. PluralRule = 0,
  1181. Code = "ka"
  1182. }
  1183. },
  1184. {
  1185. "German",
  1186. new GoogleLanguages.LanguageCodeDef
  1187. {
  1188. PluralRule = 1,
  1189. Code = "de"
  1190. }
  1191. },
  1192. {
  1193. "German/Austria",
  1194. new GoogleLanguages.LanguageCodeDef
  1195. {
  1196. PluralRule = 1,
  1197. Code = "de-AT",
  1198. GoogleCode = "de"
  1199. }
  1200. },
  1201. {
  1202. "German/Germany",
  1203. new GoogleLanguages.LanguageCodeDef
  1204. {
  1205. PluralRule = 1,
  1206. Code = "de-DE",
  1207. GoogleCode = "de"
  1208. }
  1209. },
  1210. {
  1211. "German/Liechtenstein",
  1212. new GoogleLanguages.LanguageCodeDef
  1213. {
  1214. PluralRule = 1,
  1215. Code = "de-LI",
  1216. GoogleCode = "de"
  1217. }
  1218. },
  1219. {
  1220. "German/Luxembourg",
  1221. new GoogleLanguages.LanguageCodeDef
  1222. {
  1223. PluralRule = 1,
  1224. Code = "de-LU",
  1225. GoogleCode = "de"
  1226. }
  1227. },
  1228. {
  1229. "German/Switzerland",
  1230. new GoogleLanguages.LanguageCodeDef
  1231. {
  1232. PluralRule = 1,
  1233. Code = "de-CH",
  1234. GoogleCode = "de"
  1235. }
  1236. },
  1237. {
  1238. "Greek",
  1239. new GoogleLanguages.LanguageCodeDef
  1240. {
  1241. PluralRule = 1,
  1242. Code = "el"
  1243. }
  1244. },
  1245. {
  1246. "Guaraní",
  1247. new GoogleLanguages.LanguageCodeDef
  1248. {
  1249. PluralRule = 1,
  1250. Code = "gn",
  1251. GoogleCode = "-"
  1252. }
  1253. },
  1254. {
  1255. "Gujarati",
  1256. new GoogleLanguages.LanguageCodeDef
  1257. {
  1258. PluralRule = 1,
  1259. Code = "gu"
  1260. }
  1261. },
  1262. {
  1263. "Haitian",
  1264. new GoogleLanguages.LanguageCodeDef
  1265. {
  1266. PluralRule = 1,
  1267. Code = "ht"
  1268. }
  1269. },
  1270. {
  1271. "Hausa",
  1272. new GoogleLanguages.LanguageCodeDef
  1273. {
  1274. PluralRule = 1,
  1275. Code = "ha"
  1276. }
  1277. },
  1278. {
  1279. "Hebrew",
  1280. new GoogleLanguages.LanguageCodeDef
  1281. {
  1282. PluralRule = 1,
  1283. Code = "he",
  1284. GoogleCode = "iw"
  1285. }
  1286. },
  1287. {
  1288. "Herero",
  1289. new GoogleLanguages.LanguageCodeDef
  1290. {
  1291. PluralRule = 1,
  1292. Code = "hz",
  1293. GoogleCode = "-"
  1294. }
  1295. },
  1296. {
  1297. "Hindi",
  1298. new GoogleLanguages.LanguageCodeDef
  1299. {
  1300. PluralRule = 1,
  1301. Code = "hi"
  1302. }
  1303. },
  1304. {
  1305. "Hiri Motu",
  1306. new GoogleLanguages.LanguageCodeDef
  1307. {
  1308. PluralRule = 1,
  1309. Code = "ho",
  1310. GoogleCode = "-"
  1311. }
  1312. },
  1313. {
  1314. "Hungarian",
  1315. new GoogleLanguages.LanguageCodeDef
  1316. {
  1317. PluralRule = 1,
  1318. Code = "hu"
  1319. }
  1320. },
  1321. {
  1322. "Interlingua",
  1323. new GoogleLanguages.LanguageCodeDef
  1324. {
  1325. PluralRule = 1,
  1326. Code = "ia",
  1327. GoogleCode = "-"
  1328. }
  1329. },
  1330. {
  1331. "Indonesian",
  1332. new GoogleLanguages.LanguageCodeDef
  1333. {
  1334. PluralRule = 0,
  1335. Code = "id"
  1336. }
  1337. },
  1338. {
  1339. "Interlingue",
  1340. new GoogleLanguages.LanguageCodeDef
  1341. {
  1342. PluralRule = 1,
  1343. Code = "ie",
  1344. GoogleCode = "-"
  1345. }
  1346. },
  1347. {
  1348. "Irish",
  1349. new GoogleLanguages.LanguageCodeDef
  1350. {
  1351. PluralRule = 10,
  1352. Code = "ga"
  1353. }
  1354. },
  1355. {
  1356. "Igbo",
  1357. new GoogleLanguages.LanguageCodeDef
  1358. {
  1359. PluralRule = 1,
  1360. Code = "ig"
  1361. }
  1362. },
  1363. {
  1364. "Inupiaq",
  1365. new GoogleLanguages.LanguageCodeDef
  1366. {
  1367. PluralRule = 1,
  1368. Code = "ik",
  1369. GoogleCode = "-"
  1370. }
  1371. },
  1372. {
  1373. "Ido",
  1374. new GoogleLanguages.LanguageCodeDef
  1375. {
  1376. PluralRule = 1,
  1377. Code = "io",
  1378. GoogleCode = "-"
  1379. }
  1380. },
  1381. {
  1382. "Icelandic",
  1383. new GoogleLanguages.LanguageCodeDef
  1384. {
  1385. PluralRule = 14,
  1386. Code = "is"
  1387. }
  1388. },
  1389. {
  1390. "Italian",
  1391. new GoogleLanguages.LanguageCodeDef
  1392. {
  1393. PluralRule = 1,
  1394. Code = "it"
  1395. }
  1396. },
  1397. {
  1398. "Italian/Italy",
  1399. new GoogleLanguages.LanguageCodeDef
  1400. {
  1401. PluralRule = 1,
  1402. Code = "it-IT",
  1403. GoogleCode = "it"
  1404. }
  1405. },
  1406. {
  1407. "Italian/Switzerland",
  1408. new GoogleLanguages.LanguageCodeDef
  1409. {
  1410. PluralRule = 1,
  1411. Code = "it-CH",
  1412. GoogleCode = "it"
  1413. }
  1414. },
  1415. {
  1416. "Inuktitut",
  1417. new GoogleLanguages.LanguageCodeDef
  1418. {
  1419. PluralRule = 1,
  1420. Code = "iu",
  1421. GoogleCode = "-"
  1422. }
  1423. },
  1424. {
  1425. "Japanese",
  1426. new GoogleLanguages.LanguageCodeDef
  1427. {
  1428. PluralRule = 0,
  1429. Code = "ja",
  1430. HasJoinedWords = true
  1431. }
  1432. },
  1433. {
  1434. "Javanese",
  1435. new GoogleLanguages.LanguageCodeDef
  1436. {
  1437. PluralRule = 1,
  1438. Code = "jv"
  1439. }
  1440. },
  1441. {
  1442. "Kalaallisut",
  1443. new GoogleLanguages.LanguageCodeDef
  1444. {
  1445. PluralRule = 1,
  1446. Code = "kl",
  1447. GoogleCode = "-"
  1448. }
  1449. },
  1450. {
  1451. "Kannada",
  1452. new GoogleLanguages.LanguageCodeDef
  1453. {
  1454. PluralRule = 1,
  1455. Code = "kn"
  1456. }
  1457. },
  1458. {
  1459. "Kanuri",
  1460. new GoogleLanguages.LanguageCodeDef
  1461. {
  1462. PluralRule = 1,
  1463. Code = "kr",
  1464. GoogleCode = "-"
  1465. }
  1466. },
  1467. {
  1468. "Kashmiri",
  1469. new GoogleLanguages.LanguageCodeDef
  1470. {
  1471. PluralRule = 1,
  1472. Code = "ks",
  1473. GoogleCode = "-"
  1474. }
  1475. },
  1476. {
  1477. "Kazakh",
  1478. new GoogleLanguages.LanguageCodeDef
  1479. {
  1480. PluralRule = 1,
  1481. Code = "kk"
  1482. }
  1483. },
  1484. {
  1485. "Central Khmer",
  1486. new GoogleLanguages.LanguageCodeDef
  1487. {
  1488. PluralRule = 1,
  1489. Code = "km"
  1490. }
  1491. },
  1492. {
  1493. "Kikuyu",
  1494. new GoogleLanguages.LanguageCodeDef
  1495. {
  1496. PluralRule = 1,
  1497. Code = "ki",
  1498. GoogleCode = "-"
  1499. }
  1500. },
  1501. {
  1502. "Kinyarwanda",
  1503. new GoogleLanguages.LanguageCodeDef
  1504. {
  1505. PluralRule = 1,
  1506. Code = "rw",
  1507. GoogleCode = "-"
  1508. }
  1509. },
  1510. {
  1511. "Kirghiz",
  1512. new GoogleLanguages.LanguageCodeDef
  1513. {
  1514. PluralRule = 1,
  1515. Code = "ky"
  1516. }
  1517. },
  1518. {
  1519. "Komi",
  1520. new GoogleLanguages.LanguageCodeDef
  1521. {
  1522. PluralRule = 1,
  1523. Code = "kv",
  1524. GoogleCode = "-"
  1525. }
  1526. },
  1527. {
  1528. "Kongo",
  1529. new GoogleLanguages.LanguageCodeDef
  1530. {
  1531. PluralRule = 1,
  1532. Code = "kg",
  1533. GoogleCode = "-"
  1534. }
  1535. },
  1536. {
  1537. "Korean",
  1538. new GoogleLanguages.LanguageCodeDef
  1539. {
  1540. PluralRule = 0,
  1541. Code = "ko"
  1542. }
  1543. },
  1544. {
  1545. "Kurdish",
  1546. new GoogleLanguages.LanguageCodeDef
  1547. {
  1548. PluralRule = 1,
  1549. Code = "ku"
  1550. }
  1551. },
  1552. {
  1553. "Kuanyama",
  1554. new GoogleLanguages.LanguageCodeDef
  1555. {
  1556. PluralRule = 1,
  1557. Code = "kj",
  1558. GoogleCode = "-"
  1559. }
  1560. },
  1561. {
  1562. "Latin",
  1563. new GoogleLanguages.LanguageCodeDef
  1564. {
  1565. PluralRule = 1,
  1566. Code = "la"
  1567. }
  1568. },
  1569. {
  1570. "Luxembourgish",
  1571. new GoogleLanguages.LanguageCodeDef
  1572. {
  1573. PluralRule = 1,
  1574. Code = "lb"
  1575. }
  1576. },
  1577. {
  1578. "Ganda",
  1579. new GoogleLanguages.LanguageCodeDef
  1580. {
  1581. PluralRule = 1,
  1582. Code = "lg",
  1583. GoogleCode = "-"
  1584. }
  1585. },
  1586. {
  1587. "Limburgan",
  1588. new GoogleLanguages.LanguageCodeDef
  1589. {
  1590. PluralRule = 1,
  1591. Code = "li",
  1592. GoogleCode = "-"
  1593. }
  1594. },
  1595. {
  1596. "Lingala",
  1597. new GoogleLanguages.LanguageCodeDef
  1598. {
  1599. PluralRule = 1,
  1600. Code = "ln",
  1601. GoogleCode = "-"
  1602. }
  1603. },
  1604. {
  1605. "Lao",
  1606. new GoogleLanguages.LanguageCodeDef
  1607. {
  1608. PluralRule = 1,
  1609. Code = "lo"
  1610. }
  1611. },
  1612. {
  1613. "Latvian",
  1614. new GoogleLanguages.LanguageCodeDef
  1615. {
  1616. PluralRule = 5,
  1617. Code = "lv"
  1618. }
  1619. },
  1620. {
  1621. "Luba-Katanga",
  1622. new GoogleLanguages.LanguageCodeDef
  1623. {
  1624. PluralRule = 1,
  1625. Code = "lu",
  1626. GoogleCode = "-"
  1627. }
  1628. },
  1629. {
  1630. "Lithuanian",
  1631. new GoogleLanguages.LanguageCodeDef
  1632. {
  1633. PluralRule = 5,
  1634. Code = "lt"
  1635. }
  1636. },
  1637. {
  1638. "Manx",
  1639. new GoogleLanguages.LanguageCodeDef
  1640. {
  1641. PluralRule = 1,
  1642. Code = "gv",
  1643. GoogleCode = "-"
  1644. }
  1645. },
  1646. {
  1647. "Macedonian",
  1648. new GoogleLanguages.LanguageCodeDef
  1649. {
  1650. PluralRule = 13,
  1651. Code = "mk"
  1652. }
  1653. },
  1654. {
  1655. "Malagasy",
  1656. new GoogleLanguages.LanguageCodeDef
  1657. {
  1658. PluralRule = 1,
  1659. Code = "mg"
  1660. }
  1661. },
  1662. {
  1663. "Malay",
  1664. new GoogleLanguages.LanguageCodeDef
  1665. {
  1666. PluralRule = 0,
  1667. Code = "ms"
  1668. }
  1669. },
  1670. {
  1671. "Malay/Brunei Darussalam",
  1672. new GoogleLanguages.LanguageCodeDef
  1673. {
  1674. PluralRule = 0,
  1675. Code = "ms-BN",
  1676. GoogleCode = "ms"
  1677. }
  1678. },
  1679. {
  1680. "Malay/Malaysia",
  1681. new GoogleLanguages.LanguageCodeDef
  1682. {
  1683. PluralRule = 0,
  1684. Code = "ms-MY",
  1685. GoogleCode = "ms"
  1686. }
  1687. },
  1688. {
  1689. "Malayalam",
  1690. new GoogleLanguages.LanguageCodeDef
  1691. {
  1692. PluralRule = 1,
  1693. Code = "ml"
  1694. }
  1695. },
  1696. {
  1697. "Maltese",
  1698. new GoogleLanguages.LanguageCodeDef
  1699. {
  1700. PluralRule = 12,
  1701. Code = "mt"
  1702. }
  1703. },
  1704. {
  1705. "Maori",
  1706. new GoogleLanguages.LanguageCodeDef
  1707. {
  1708. PluralRule = 2,
  1709. Code = "mi"
  1710. }
  1711. },
  1712. {
  1713. "Marathi",
  1714. new GoogleLanguages.LanguageCodeDef
  1715. {
  1716. PluralRule = 1,
  1717. Code = "mr"
  1718. }
  1719. },
  1720. {
  1721. "Marshallese",
  1722. new GoogleLanguages.LanguageCodeDef
  1723. {
  1724. PluralRule = 1,
  1725. Code = "mh",
  1726. GoogleCode = "-"
  1727. }
  1728. },
  1729. {
  1730. "Mongolian",
  1731. new GoogleLanguages.LanguageCodeDef
  1732. {
  1733. PluralRule = 1,
  1734. Code = "mn"
  1735. }
  1736. },
  1737. {
  1738. "Nauru",
  1739. new GoogleLanguages.LanguageCodeDef
  1740. {
  1741. PluralRule = 1,
  1742. Code = "na",
  1743. GoogleCode = "-"
  1744. }
  1745. },
  1746. {
  1747. "Navajo",
  1748. new GoogleLanguages.LanguageCodeDef
  1749. {
  1750. PluralRule = 1,
  1751. Code = "nv",
  1752. GoogleCode = "-"
  1753. }
  1754. },
  1755. {
  1756. "North Ndebele",
  1757. new GoogleLanguages.LanguageCodeDef
  1758. {
  1759. PluralRule = 1,
  1760. Code = "nd",
  1761. GoogleCode = "-"
  1762. }
  1763. },
  1764. {
  1765. "Nepali",
  1766. new GoogleLanguages.LanguageCodeDef
  1767. {
  1768. PluralRule = 1,
  1769. Code = "ne"
  1770. }
  1771. },
  1772. {
  1773. "Ndonga",
  1774. new GoogleLanguages.LanguageCodeDef
  1775. {
  1776. PluralRule = 1,
  1777. Code = "ng",
  1778. GoogleCode = "-"
  1779. }
  1780. },
  1781. {
  1782. "Northern Sotho",
  1783. new GoogleLanguages.LanguageCodeDef
  1784. {
  1785. PluralRule = 1,
  1786. Code = "ns",
  1787. GoogleCode = "st"
  1788. }
  1789. },
  1790. {
  1791. "Norwegian",
  1792. new GoogleLanguages.LanguageCodeDef
  1793. {
  1794. PluralRule = 1,
  1795. Code = "nb",
  1796. GoogleCode = "no"
  1797. }
  1798. },
  1799. {
  1800. "Norwegian/Nynorsk",
  1801. new GoogleLanguages.LanguageCodeDef
  1802. {
  1803. PluralRule = 1,
  1804. Code = "nn",
  1805. GoogleCode = "no"
  1806. }
  1807. },
  1808. {
  1809. "Sichuan Yi",
  1810. new GoogleLanguages.LanguageCodeDef
  1811. {
  1812. PluralRule = 1,
  1813. Code = "ii",
  1814. GoogleCode = "-"
  1815. }
  1816. },
  1817. {
  1818. "South Ndebele",
  1819. new GoogleLanguages.LanguageCodeDef
  1820. {
  1821. PluralRule = 1,
  1822. Code = "nr",
  1823. GoogleCode = "-"
  1824. }
  1825. },
  1826. {
  1827. "Occitan",
  1828. new GoogleLanguages.LanguageCodeDef
  1829. {
  1830. PluralRule = 1,
  1831. Code = "oc",
  1832. GoogleCode = "-"
  1833. }
  1834. },
  1835. {
  1836. "Ojibwa",
  1837. new GoogleLanguages.LanguageCodeDef
  1838. {
  1839. PluralRule = 1,
  1840. Code = "oj",
  1841. GoogleCode = "-"
  1842. }
  1843. },
  1844. {
  1845. "Church\u00a0Slavic",
  1846. new GoogleLanguages.LanguageCodeDef
  1847. {
  1848. PluralRule = 1,
  1849. Code = "cu",
  1850. GoogleCode = "-"
  1851. }
  1852. },
  1853. {
  1854. "Oromo",
  1855. new GoogleLanguages.LanguageCodeDef
  1856. {
  1857. PluralRule = 1,
  1858. Code = "om",
  1859. GoogleCode = "-"
  1860. }
  1861. },
  1862. {
  1863. "Oriya",
  1864. new GoogleLanguages.LanguageCodeDef
  1865. {
  1866. PluralRule = 1,
  1867. Code = "or",
  1868. GoogleCode = "-"
  1869. }
  1870. },
  1871. {
  1872. "Ossetian",
  1873. new GoogleLanguages.LanguageCodeDef
  1874. {
  1875. PluralRule = 1,
  1876. Code = "os",
  1877. GoogleCode = "-"
  1878. }
  1879. },
  1880. {
  1881. "Pali",
  1882. new GoogleLanguages.LanguageCodeDef
  1883. {
  1884. PluralRule = 1,
  1885. Code = "pi",
  1886. GoogleCode = "-"
  1887. }
  1888. },
  1889. {
  1890. "Pashto",
  1891. new GoogleLanguages.LanguageCodeDef
  1892. {
  1893. PluralRule = 1,
  1894. Code = "ps"
  1895. }
  1896. },
  1897. {
  1898. "Persian",
  1899. new GoogleLanguages.LanguageCodeDef
  1900. {
  1901. PluralRule = 0,
  1902. Code = "fa"
  1903. }
  1904. },
  1905. {
  1906. "Polish",
  1907. new GoogleLanguages.LanguageCodeDef
  1908. {
  1909. PluralRule = 8,
  1910. Code = "pl"
  1911. }
  1912. },
  1913. {
  1914. "Portuguese",
  1915. new GoogleLanguages.LanguageCodeDef
  1916. {
  1917. PluralRule = 1,
  1918. Code = "pt"
  1919. }
  1920. },
  1921. {
  1922. "Portuguese/Brazil",
  1923. new GoogleLanguages.LanguageCodeDef
  1924. {
  1925. PluralRule = 2,
  1926. Code = "pt-BR",
  1927. GoogleCode = "pt"
  1928. }
  1929. },
  1930. {
  1931. "Portuguese/Portugal",
  1932. new GoogleLanguages.LanguageCodeDef
  1933. {
  1934. PluralRule = 1,
  1935. Code = "pt-PT",
  1936. GoogleCode = "pt"
  1937. }
  1938. },
  1939. {
  1940. "Punjabi",
  1941. new GoogleLanguages.LanguageCodeDef
  1942. {
  1943. PluralRule = 1,
  1944. Code = "pa"
  1945. }
  1946. },
  1947. {
  1948. "Quechua",
  1949. new GoogleLanguages.LanguageCodeDef
  1950. {
  1951. PluralRule = 1,
  1952. Code = "qu",
  1953. GoogleCode = "-"
  1954. }
  1955. },
  1956. {
  1957. "Quechua/Bolivia",
  1958. new GoogleLanguages.LanguageCodeDef
  1959. {
  1960. PluralRule = 1,
  1961. Code = "qu-BO",
  1962. GoogleCode = "-"
  1963. }
  1964. },
  1965. {
  1966. "Quechua/Ecuador",
  1967. new GoogleLanguages.LanguageCodeDef
  1968. {
  1969. PluralRule = 1,
  1970. Code = "qu-EC",
  1971. GoogleCode = "-"
  1972. }
  1973. },
  1974. {
  1975. "Quechua/Peru",
  1976. new GoogleLanguages.LanguageCodeDef
  1977. {
  1978. PluralRule = 1,
  1979. Code = "qu-PE",
  1980. GoogleCode = "-"
  1981. }
  1982. },
  1983. {
  1984. "Rhaeto-Romanic",
  1985. new GoogleLanguages.LanguageCodeDef
  1986. {
  1987. PluralRule = 1,
  1988. Code = "rm",
  1989. GoogleCode = "ro"
  1990. }
  1991. },
  1992. {
  1993. "Romanian",
  1994. new GoogleLanguages.LanguageCodeDef
  1995. {
  1996. PluralRule = 4,
  1997. Code = "ro"
  1998. }
  1999. },
  2000. {
  2001. "Rundi",
  2002. new GoogleLanguages.LanguageCodeDef
  2003. {
  2004. PluralRule = 1,
  2005. Code = "rn",
  2006. GoogleCode = "-"
  2007. }
  2008. },
  2009. {
  2010. "Russian",
  2011. new GoogleLanguages.LanguageCodeDef
  2012. {
  2013. PluralRule = 5,
  2014. Code = "ru"
  2015. }
  2016. },
  2017. {
  2018. "Russian/Republic of Moldova",
  2019. new GoogleLanguages.LanguageCodeDef
  2020. {
  2021. PluralRule = 5,
  2022. Code = "ru-MO",
  2023. GoogleCode = "ru"
  2024. }
  2025. },
  2026. {
  2027. "Sanskrit",
  2028. new GoogleLanguages.LanguageCodeDef
  2029. {
  2030. PluralRule = 1,
  2031. Code = "sa",
  2032. GoogleCode = "-"
  2033. }
  2034. },
  2035. {
  2036. "Sardinian",
  2037. new GoogleLanguages.LanguageCodeDef
  2038. {
  2039. PluralRule = 1,
  2040. Code = "sc",
  2041. GoogleCode = "-"
  2042. }
  2043. },
  2044. {
  2045. "Sindhi",
  2046. new GoogleLanguages.LanguageCodeDef
  2047. {
  2048. PluralRule = 1,
  2049. Code = "sd"
  2050. }
  2051. },
  2052. {
  2053. "Northern Sami",
  2054. new GoogleLanguages.LanguageCodeDef
  2055. {
  2056. PluralRule = 1,
  2057. Code = "se",
  2058. GoogleCode = "-"
  2059. }
  2060. },
  2061. {
  2062. "Samoan",
  2063. new GoogleLanguages.LanguageCodeDef
  2064. {
  2065. PluralRule = 1,
  2066. Code = "sm"
  2067. }
  2068. },
  2069. {
  2070. "Sango",
  2071. new GoogleLanguages.LanguageCodeDef
  2072. {
  2073. PluralRule = 1,
  2074. Code = "sg",
  2075. GoogleCode = "-"
  2076. }
  2077. },
  2078. {
  2079. "Serbian",
  2080. new GoogleLanguages.LanguageCodeDef
  2081. {
  2082. PluralRule = 5,
  2083. Code = "sr"
  2084. }
  2085. },
  2086. {
  2087. "Serbian/Bosnia and Herzegovina",
  2088. new GoogleLanguages.LanguageCodeDef
  2089. {
  2090. PluralRule = 5,
  2091. Code = "sr-BA",
  2092. GoogleCode = "sr"
  2093. }
  2094. },
  2095. {
  2096. "Serbian/Serbia and Montenegro",
  2097. new GoogleLanguages.LanguageCodeDef
  2098. {
  2099. PluralRule = 5,
  2100. Code = "sr-SP",
  2101. GoogleCode = "sr"
  2102. }
  2103. },
  2104. {
  2105. "Scottish Gaelic",
  2106. new GoogleLanguages.LanguageCodeDef
  2107. {
  2108. PluralRule = 1,
  2109. Code = "gd"
  2110. }
  2111. },
  2112. {
  2113. "Shona",
  2114. new GoogleLanguages.LanguageCodeDef
  2115. {
  2116. PluralRule = 1,
  2117. Code = "sn"
  2118. }
  2119. },
  2120. {
  2121. "Sinhala",
  2122. new GoogleLanguages.LanguageCodeDef
  2123. {
  2124. PluralRule = 1,
  2125. Code = "si"
  2126. }
  2127. },
  2128. {
  2129. "Slovak",
  2130. new GoogleLanguages.LanguageCodeDef
  2131. {
  2132. PluralRule = 7,
  2133. Code = "sk"
  2134. }
  2135. },
  2136. {
  2137. "Slovenian",
  2138. new GoogleLanguages.LanguageCodeDef
  2139. {
  2140. PluralRule = 9,
  2141. Code = "sl"
  2142. }
  2143. },
  2144. {
  2145. "Somali",
  2146. new GoogleLanguages.LanguageCodeDef
  2147. {
  2148. PluralRule = 1,
  2149. Code = "so"
  2150. }
  2151. },
  2152. {
  2153. "Southern Sotho",
  2154. new GoogleLanguages.LanguageCodeDef
  2155. {
  2156. PluralRule = 1,
  2157. Code = "st"
  2158. }
  2159. },
  2160. {
  2161. "Spanish",
  2162. new GoogleLanguages.LanguageCodeDef
  2163. {
  2164. PluralRule = 1,
  2165. Code = "es"
  2166. }
  2167. },
  2168. {
  2169. "Spanish/Argentina",
  2170. new GoogleLanguages.LanguageCodeDef
  2171. {
  2172. PluralRule = 1,
  2173. Code = "es-AR",
  2174. GoogleCode = "es"
  2175. }
  2176. },
  2177. {
  2178. "Spanish/Bolivia",
  2179. new GoogleLanguages.LanguageCodeDef
  2180. {
  2181. PluralRule = 1,
  2182. Code = "es-BO",
  2183. GoogleCode = "es"
  2184. }
  2185. },
  2186. {
  2187. "Spanish/Castilian",
  2188. new GoogleLanguages.LanguageCodeDef
  2189. {
  2190. PluralRule = 1,
  2191. Code = "es-ES",
  2192. GoogleCode = "es"
  2193. }
  2194. },
  2195. {
  2196. "Spanish/Chile",
  2197. new GoogleLanguages.LanguageCodeDef
  2198. {
  2199. PluralRule = 1,
  2200. Code = "es-CL",
  2201. GoogleCode = "es"
  2202. }
  2203. },
  2204. {
  2205. "Spanish/Colombia",
  2206. new GoogleLanguages.LanguageCodeDef
  2207. {
  2208. PluralRule = 1,
  2209. Code = "es-CO",
  2210. GoogleCode = "es"
  2211. }
  2212. },
  2213. {
  2214. "Spanish/Costa Rica",
  2215. new GoogleLanguages.LanguageCodeDef
  2216. {
  2217. PluralRule = 1,
  2218. Code = "es-CR",
  2219. GoogleCode = "es"
  2220. }
  2221. },
  2222. {
  2223. "Spanish/Dominican Republic",
  2224. new GoogleLanguages.LanguageCodeDef
  2225. {
  2226. PluralRule = 1,
  2227. Code = "es-DO",
  2228. GoogleCode = "es"
  2229. }
  2230. },
  2231. {
  2232. "Spanish/Ecuador",
  2233. new GoogleLanguages.LanguageCodeDef
  2234. {
  2235. PluralRule = 1,
  2236. Code = "es-EC",
  2237. GoogleCode = "es"
  2238. }
  2239. },
  2240. {
  2241. "Spanish/El Salvador",
  2242. new GoogleLanguages.LanguageCodeDef
  2243. {
  2244. PluralRule = 1,
  2245. Code = "es-SV",
  2246. GoogleCode = "es"
  2247. }
  2248. },
  2249. {
  2250. "Spanish/Guatemala",
  2251. new GoogleLanguages.LanguageCodeDef
  2252. {
  2253. PluralRule = 1,
  2254. Code = "es-GT",
  2255. GoogleCode = "es"
  2256. }
  2257. },
  2258. {
  2259. "Spanish/Honduras",
  2260. new GoogleLanguages.LanguageCodeDef
  2261. {
  2262. PluralRule = 1,
  2263. Code = "es-HN",
  2264. GoogleCode = "es"
  2265. }
  2266. },
  2267. {
  2268. "Spanish/Mexico",
  2269. new GoogleLanguages.LanguageCodeDef
  2270. {
  2271. PluralRule = 1,
  2272. Code = "es-MX",
  2273. GoogleCode = "es"
  2274. }
  2275. },
  2276. {
  2277. "Spanish/Nicaragua",
  2278. new GoogleLanguages.LanguageCodeDef
  2279. {
  2280. PluralRule = 1,
  2281. Code = "es-NI",
  2282. GoogleCode = "es"
  2283. }
  2284. },
  2285. {
  2286. "Spanish/Panama",
  2287. new GoogleLanguages.LanguageCodeDef
  2288. {
  2289. PluralRule = 1,
  2290. Code = "es-PA",
  2291. GoogleCode = "es"
  2292. }
  2293. },
  2294. {
  2295. "Spanish/Paraguay",
  2296. new GoogleLanguages.LanguageCodeDef
  2297. {
  2298. PluralRule = 1,
  2299. Code = "es-PY",
  2300. GoogleCode = "es"
  2301. }
  2302. },
  2303. {
  2304. "Spanish/Peru",
  2305. new GoogleLanguages.LanguageCodeDef
  2306. {
  2307. PluralRule = 1,
  2308. Code = "es-PE",
  2309. GoogleCode = "es"
  2310. }
  2311. },
  2312. {
  2313. "Spanish/Puerto Rico",
  2314. new GoogleLanguages.LanguageCodeDef
  2315. {
  2316. PluralRule = 1,
  2317. Code = "es-PR",
  2318. GoogleCode = "es"
  2319. }
  2320. },
  2321. {
  2322. "Spanish/Spain",
  2323. new GoogleLanguages.LanguageCodeDef
  2324. {
  2325. PluralRule = 1,
  2326. Code = "es-ES",
  2327. GoogleCode = "es"
  2328. }
  2329. },
  2330. {
  2331. "Spanish/Uruguay",
  2332. new GoogleLanguages.LanguageCodeDef
  2333. {
  2334. PluralRule = 1,
  2335. Code = "es-UY",
  2336. GoogleCode = "es"
  2337. }
  2338. },
  2339. {
  2340. "Spanish/Venezuela",
  2341. new GoogleLanguages.LanguageCodeDef
  2342. {
  2343. PluralRule = 1,
  2344. Code = "es-VE",
  2345. GoogleCode = "es"
  2346. }
  2347. },
  2348. {
  2349. "Spanish/Latin Americas",
  2350. new GoogleLanguages.LanguageCodeDef
  2351. {
  2352. PluralRule = 1,
  2353. Code = "es-US",
  2354. GoogleCode = "es"
  2355. }
  2356. },
  2357. {
  2358. "Sundanese",
  2359. new GoogleLanguages.LanguageCodeDef
  2360. {
  2361. PluralRule = 1,
  2362. Code = "su"
  2363. }
  2364. },
  2365. {
  2366. "Swahili",
  2367. new GoogleLanguages.LanguageCodeDef
  2368. {
  2369. Code = "sw"
  2370. }
  2371. },
  2372. {
  2373. "Swati",
  2374. new GoogleLanguages.LanguageCodeDef
  2375. {
  2376. PluralRule = 1,
  2377. Code = "ss",
  2378. GoogleCode = "-"
  2379. }
  2380. },
  2381. {
  2382. "Swedish",
  2383. new GoogleLanguages.LanguageCodeDef
  2384. {
  2385. PluralRule = 1,
  2386. Code = "sv"
  2387. }
  2388. },
  2389. {
  2390. "Swedish/Finland",
  2391. new GoogleLanguages.LanguageCodeDef
  2392. {
  2393. PluralRule = 1,
  2394. Code = "sv-FI",
  2395. GoogleCode = "sv"
  2396. }
  2397. },
  2398. {
  2399. "Swedish/Sweden",
  2400. new GoogleLanguages.LanguageCodeDef
  2401. {
  2402. PluralRule = 1,
  2403. Code = "sv-SE",
  2404. GoogleCode = "sv"
  2405. }
  2406. },
  2407. {
  2408. "Tamil",
  2409. new GoogleLanguages.LanguageCodeDef
  2410. {
  2411. PluralRule = 1,
  2412. Code = "ta"
  2413. }
  2414. },
  2415. {
  2416. "Tatar",
  2417. new GoogleLanguages.LanguageCodeDef
  2418. {
  2419. PluralRule = 0,
  2420. Code = "tt",
  2421. GoogleCode = "-"
  2422. }
  2423. },
  2424. {
  2425. "Telugu",
  2426. new GoogleLanguages.LanguageCodeDef
  2427. {
  2428. PluralRule = 1,
  2429. Code = "te"
  2430. }
  2431. },
  2432. {
  2433. "Tajik",
  2434. new GoogleLanguages.LanguageCodeDef
  2435. {
  2436. PluralRule = 1,
  2437. Code = "tg"
  2438. }
  2439. },
  2440. {
  2441. "Thai",
  2442. new GoogleLanguages.LanguageCodeDef
  2443. {
  2444. PluralRule = 0,
  2445. Code = "th",
  2446. HasJoinedWords = true
  2447. }
  2448. },
  2449. {
  2450. "Tigrinya",
  2451. new GoogleLanguages.LanguageCodeDef
  2452. {
  2453. PluralRule = 1,
  2454. Code = "ti",
  2455. GoogleCode = "-"
  2456. }
  2457. },
  2458. {
  2459. "Tibetan",
  2460. new GoogleLanguages.LanguageCodeDef
  2461. {
  2462. PluralRule = 1,
  2463. Code = "bo",
  2464. GoogleCode = "-"
  2465. }
  2466. },
  2467. {
  2468. "Turkmen",
  2469. new GoogleLanguages.LanguageCodeDef
  2470. {
  2471. PluralRule = 1,
  2472. Code = "tk",
  2473. GoogleCode = "-"
  2474. }
  2475. },
  2476. {
  2477. "Tagalog",
  2478. new GoogleLanguages.LanguageCodeDef
  2479. {
  2480. PluralRule = 1,
  2481. Code = "tl"
  2482. }
  2483. },
  2484. {
  2485. "Tswana",
  2486. new GoogleLanguages.LanguageCodeDef
  2487. {
  2488. PluralRule = 1,
  2489. Code = "tn",
  2490. GoogleCode = "-"
  2491. }
  2492. },
  2493. {
  2494. "Tonga",
  2495. new GoogleLanguages.LanguageCodeDef
  2496. {
  2497. PluralRule = 1,
  2498. Code = "to",
  2499. GoogleCode = "-"
  2500. }
  2501. },
  2502. {
  2503. "Turkish",
  2504. new GoogleLanguages.LanguageCodeDef
  2505. {
  2506. PluralRule = 0,
  2507. Code = "tr"
  2508. }
  2509. },
  2510. {
  2511. "Tsonga",
  2512. new GoogleLanguages.LanguageCodeDef
  2513. {
  2514. PluralRule = 1,
  2515. Code = "ts",
  2516. GoogleCode = "-"
  2517. }
  2518. },
  2519. {
  2520. "Twi",
  2521. new GoogleLanguages.LanguageCodeDef
  2522. {
  2523. PluralRule = 1,
  2524. Code = "tw",
  2525. GoogleCode = "-"
  2526. }
  2527. },
  2528. {
  2529. "Tahitian",
  2530. new GoogleLanguages.LanguageCodeDef
  2531. {
  2532. PluralRule = 1,
  2533. Code = "ty",
  2534. GoogleCode = "-"
  2535. }
  2536. },
  2537. {
  2538. "Uighur",
  2539. new GoogleLanguages.LanguageCodeDef
  2540. {
  2541. PluralRule = 1,
  2542. Code = "ug",
  2543. GoogleCode = "-"
  2544. }
  2545. },
  2546. {
  2547. "Ukrainian",
  2548. new GoogleLanguages.LanguageCodeDef
  2549. {
  2550. PluralRule = 5,
  2551. Code = "uk"
  2552. }
  2553. },
  2554. {
  2555. "Urdu",
  2556. new GoogleLanguages.LanguageCodeDef
  2557. {
  2558. PluralRule = 1,
  2559. Code = "ur"
  2560. }
  2561. },
  2562. {
  2563. "Uzbek",
  2564. new GoogleLanguages.LanguageCodeDef
  2565. {
  2566. PluralRule = 2,
  2567. Code = "uz"
  2568. }
  2569. },
  2570. {
  2571. "Venda",
  2572. new GoogleLanguages.LanguageCodeDef
  2573. {
  2574. PluralRule = 1,
  2575. Code = "ve",
  2576. GoogleCode = "-"
  2577. }
  2578. },
  2579. {
  2580. "Vietnamese",
  2581. new GoogleLanguages.LanguageCodeDef
  2582. {
  2583. PluralRule = 1,
  2584. Code = "vi"
  2585. }
  2586. },
  2587. {
  2588. "Volapük",
  2589. new GoogleLanguages.LanguageCodeDef
  2590. {
  2591. PluralRule = 1,
  2592. Code = "vo",
  2593. GoogleCode = "-"
  2594. }
  2595. },
  2596. {
  2597. "Walloon",
  2598. new GoogleLanguages.LanguageCodeDef
  2599. {
  2600. PluralRule = 1,
  2601. Code = "wa",
  2602. GoogleCode = "-"
  2603. }
  2604. },
  2605. {
  2606. "Welsh",
  2607. new GoogleLanguages.LanguageCodeDef
  2608. {
  2609. PluralRule = 16,
  2610. Code = "cy"
  2611. }
  2612. },
  2613. {
  2614. "Wolof",
  2615. new GoogleLanguages.LanguageCodeDef
  2616. {
  2617. PluralRule = 1,
  2618. Code = "wo",
  2619. GoogleCode = "-"
  2620. }
  2621. },
  2622. {
  2623. "Frisian",
  2624. new GoogleLanguages.LanguageCodeDef
  2625. {
  2626. PluralRule = 1,
  2627. Code = "fy"
  2628. }
  2629. },
  2630. {
  2631. "Xhosa",
  2632. new GoogleLanguages.LanguageCodeDef
  2633. {
  2634. PluralRule = 1,
  2635. Code = "xh"
  2636. }
  2637. },
  2638. {
  2639. "Yiddish",
  2640. new GoogleLanguages.LanguageCodeDef
  2641. {
  2642. PluralRule = 1,
  2643. Code = "yi"
  2644. }
  2645. },
  2646. {
  2647. "Yoruba",
  2648. new GoogleLanguages.LanguageCodeDef
  2649. {
  2650. PluralRule = 1,
  2651. Code = "yo"
  2652. }
  2653. },
  2654. {
  2655. "Zhuang",
  2656. new GoogleLanguages.LanguageCodeDef
  2657. {
  2658. PluralRule = 1,
  2659. Code = "za",
  2660. GoogleCode = "-"
  2661. }
  2662. },
  2663. {
  2664. "Zulu",
  2665. new GoogleLanguages.LanguageCodeDef
  2666. {
  2667. PluralRule = 1,
  2668. Code = "zu"
  2669. }
  2670. }
  2671. };
  2672. public struct LanguageCodeDef
  2673. {
  2674. public string Code;
  2675. public string GoogleCode;
  2676. public bool HasJoinedWords;
  2677. public int PluralRule;
  2678. }
  2679. }
  2680. }