123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700 |
- using System;
- using System.Collections.Generic;
- using UnityEngine;
- namespace I2.Loc
- {
- public static class GoogleLanguages
- {
- public static string GetLanguageCode(string Filter, bool ShowWarnings = false)
- {
- if (string.IsNullOrEmpty(Filter))
- {
- return string.Empty;
- }
- string[] filters = Filter.ToLowerInvariant().Split(" /(),".ToCharArray());
- foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
- {
- if (GoogleLanguages.LanguageMatchesFilter(keyValuePair.Key, filters))
- {
- return keyValuePair.Value.Code;
- }
- }
- if (ShowWarnings)
- {
- Debug.Log(string.Format("Language '{0}' not recognized. Please, add the language code to GoogleTranslation.cs", Filter));
- }
- return string.Empty;
- }
- public static List<string> GetLanguagesForDropdown(string Filter, string CodesToExclude)
- {
- string[] filters = Filter.ToLowerInvariant().Split(" /(),".ToCharArray());
- List<string> list = new List<string>();
- foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
- {
- if (string.IsNullOrEmpty(Filter) || GoogleLanguages.LanguageMatchesFilter(keyValuePair.Key, filters))
- {
- string text = string.Concat(new string[]
- {
- "[" + keyValuePair.Value.Code + "]"
- });
- if (!CodesToExclude.Contains(text))
- {
- list.Add(keyValuePair.Key + " " + text);
- }
- }
- }
- for (int i = list.Count - 2; i >= 0; i--)
- {
- string text2 = list[i].Substring(0, list[i].IndexOf(" ["));
- if (list[i + 1].StartsWith(text2))
- {
- list[i] = text2 + "/" + list[i];
- list.Insert(i + 1, text2 + "/");
- }
- }
- return list;
- }
- private static bool LanguageMatchesFilter(string Language, string[] Filters)
- {
- Language = Language.ToLowerInvariant();
- int i = 0;
- int num = Filters.Length;
- while (i < num)
- {
- if (Filters[i] != string.Empty)
- {
- if (!Language.Contains(Filters[i].ToLower()))
- {
- return false;
- }
- Language = Language.Remove(Language.IndexOf(Filters[i]), Filters[i].Length);
- }
- i++;
- }
- return true;
- }
- public static string GetFormatedLanguageName(string Language)
- {
- string text = string.Empty;
- int num = Language.IndexOf(" [");
- if (num > 0)
- {
- Language = Language.Substring(0, num);
- }
- num = Language.IndexOf('/');
- if (num > 0)
- {
- text = Language.Substring(0, num);
- if (Language == text + "/" + text)
- {
- return text;
- }
- Language = Language.Replace("/", " (") + ")";
- }
- return Language;
- }
- public static string GetCodedLanguage(string Language, string code)
- {
- string languageCode = GoogleLanguages.GetLanguageCode(Language, false);
- if (string.Compare(code, languageCode, StringComparison.OrdinalIgnoreCase) == 0)
- {
- return Language;
- }
- return Language + " [" + code + "]";
- }
- public static void UnPackCodeFromLanguageName(string CodedLanguage, out string Language, out string code)
- {
- if (string.IsNullOrEmpty(CodedLanguage))
- {
- Language = string.Empty;
- code = string.Empty;
- return;
- }
- int num = CodedLanguage.IndexOf("[");
- if (num < 0)
- {
- Language = CodedLanguage;
- code = GoogleLanguages.GetLanguageCode(Language, false);
- }
- else
- {
- Language = CodedLanguage.Substring(0, num).Trim();
- code = CodedLanguage.Substring(num + 1, CodedLanguage.IndexOf("]", num) - num - 1);
- }
- }
- public static string GetGoogleLanguageCode(string InternationalCode)
- {
- foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
- {
- if (InternationalCode == keyValuePair.Value.Code)
- {
- if (keyValuePair.Value.GoogleCode == "-")
- {
- return null;
- }
- return string.IsNullOrEmpty(keyValuePair.Value.GoogleCode) ? InternationalCode : keyValuePair.Value.GoogleCode;
- }
- }
- return InternationalCode;
- }
- public static string GetLanguageName(string code, bool useParenthesesForRegion = false, bool allowDiscardRegion = true)
- {
- foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
- {
- if (code == keyValuePair.Value.Code)
- {
- string text = keyValuePair.Key;
- if (useParenthesesForRegion)
- {
- int num = text.IndexOf('/');
- if (num > 0)
- {
- text = text.Substring(0, num) + " (" + text.Substring(num + 1) + ")";
- }
- }
- return text;
- }
- }
- if (allowDiscardRegion)
- {
- int num2 = code.IndexOf("-");
- if (num2 > 0)
- {
- return GoogleLanguages.GetLanguageName(code.Substring(0, num2), useParenthesesForRegion, false);
- }
- }
- return null;
- }
- public static List<string> GetAllInternationalCodes()
- {
- HashSet<string> hashSet = new HashSet<string>();
- foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
- {
- hashSet.Add(keyValuePair.Value.Code);
- }
- return new List<string>(hashSet);
- }
- public static bool LanguageCode_HasJoinedWord(string languageCode)
- {
- foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
- {
- if (languageCode == keyValuePair.Value.GoogleCode || languageCode == keyValuePair.Value.Code)
- {
- return keyValuePair.Value.HasJoinedWords;
- }
- }
- return false;
- }
- private static int GetPluralRule(string langCode)
- {
- if (langCode.Length > 2)
- {
- langCode = langCode.Substring(0, 2);
- }
- langCode = langCode.ToLower();
- foreach (KeyValuePair<string, GoogleLanguages.LanguageCodeDef> keyValuePair in GoogleLanguages.mLanguageDef)
- {
- if (keyValuePair.Value.Code == langCode)
- {
- return keyValuePair.Value.PluralRule;
- }
- }
- return 0;
- }
- public static bool LanguageHasPluralType(string langCode, string pluralType)
- {
- if (pluralType == "Plural" || pluralType == "Zero" || pluralType == "One")
- {
- return true;
- }
- switch (GoogleLanguages.GetPluralRule(langCode))
- {
- case 3:
- return pluralType == "Two" || pluralType == "Few";
- case 4:
- case 5:
- case 6:
- case 7:
- case 8:
- return pluralType == "Few";
- case 9:
- return pluralType == "Two" || pluralType == "Few";
- case 10:
- case 11:
- case 15:
- case 16:
- return pluralType == "Two" || pluralType == "Few" || pluralType == "Many";
- case 12:
- return pluralType == "Few" || pluralType == "Many";
- case 13:
- return pluralType == "Two";
- }
- return false;
- }
- public static ePluralType GetPluralType(string langCode, int n)
- {
- if (n == 0)
- {
- return ePluralType.Zero;
- }
- if (n == 1)
- {
- return ePluralType.One;
- }
- switch (GoogleLanguages.GetPluralRule(langCode))
- {
- case 0:
- return ePluralType.Plural;
- case 1:
- return (n != 1) ? ePluralType.Plural : ePluralType.One;
- case 2:
- return (n > 1) ? ePluralType.Plural : ePluralType.One;
- case 3:
- 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;
- case 4:
- return (n != 1) ? ((!GoogleLanguages.inRange(n % 100, 1, 19)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.One;
- case 5:
- return (n % 10 != 1 || n % 100 == 11) ? ((n % 10 < 2 || (n % 100 >= 10 && n % 100 < 20)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.One;
- case 6:
- 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;
- case 7:
- return (n != 1) ? ((!GoogleLanguages.inRange(n, 2, 4)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.One;
- case 8:
- return (n != 1) ? ((!GoogleLanguages.inRange(n % 10, 2, 4) || GoogleLanguages.inRange(n % 100, 12, 14)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.One;
- case 9:
- return (n % 100 != 1) ? ((n % 100 != 2) ? ((!GoogleLanguages.inRange(n % 100, 3, 4)) ? ePluralType.Plural : ePluralType.Few) : ePluralType.Two) : ePluralType.One;
- case 10:
- 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;
- case 11:
- 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;
- case 12:
- return (n != 1) ? ((!GoogleLanguages.inRange(n % 100, 1, 10)) ? ((!GoogleLanguages.inRange(n % 100, 11, 19)) ? ePluralType.Plural : ePluralType.Many) : ePluralType.Few) : ePluralType.One;
- case 13:
- return (n % 10 != 1) ? ((n % 10 != 2) ? ePluralType.Plural : ePluralType.Two) : ePluralType.One;
- case 14:
- return (n % 10 != 1 || n % 100 == 11) ? ePluralType.Plural : ePluralType.One;
- case 15:
- 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;
- case 16:
- return (n != 0) ? ((n != 1) ? ((n != 2) ? ((n != 3) ? ((n != 6) ? ePluralType.Plural : ePluralType.Many) : ePluralType.Few) : ePluralType.Two) : ePluralType.One) : ePluralType.Zero;
- default:
- return ePluralType.Plural;
- }
- }
- public static int GetPluralTestNumber(string langCode, ePluralType pluralType)
- {
- switch (pluralType)
- {
- case ePluralType.Zero:
- return 0;
- case ePluralType.One:
- return 1;
- case ePluralType.Few:
- return 3;
- case ePluralType.Many:
- {
- int pluralRule = GoogleLanguages.GetPluralRule(langCode);
- if (pluralRule == 10)
- {
- return 8;
- }
- if (pluralRule == 11 || pluralRule == 12)
- {
- return 13;
- }
- if (pluralRule == 15)
- {
- return 1000000;
- }
- return 6;
- }
- }
- return 936;
- }
- private static bool inRange(int amount, int min, int max)
- {
- return amount >= min && amount <= max;
- }
- public static Dictionary<string, GoogleLanguages.LanguageCodeDef> mLanguageDef = new Dictionary<string, GoogleLanguages.LanguageCodeDef>(StringComparer.Ordinal)
- {
- {
- "Abkhazian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ab",
- GoogleCode = "-"
- }
- },
- {
- "Afar",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "aa",
- GoogleCode = "-"
- }
- },
- {
- "Afrikaans",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "af"
- }
- },
- {
- "Akan",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ak",
- GoogleCode = "-"
- }
- },
- {
- "Albanian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "sq"
- }
- },
- {
- "Amharic",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "am"
- }
- },
- {
- "Arabic",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar"
- }
- },
- {
- "Arabic/Algeria",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-DZ",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Bahrain",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-BH",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Egypt",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-EG",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Iraq",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-IQ",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Jordan",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-JO",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Kuwait",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-KW",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Lebanon",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-LB",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Libya",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-LY",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Morocco",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-MA",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Oman",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-OM",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Qatar",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-QA",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Saudi Arabia",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-SA",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Syria",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-SY",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Tunisia",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-TN",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/U.A.E.",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-AE",
- GoogleCode = "ar"
- }
- },
- {
- "Arabic/Yemen",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 11,
- Code = "ar-YE",
- GoogleCode = "ar"
- }
- },
- {
- "Aragonese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "an",
- GoogleCode = "-"
- }
- },
- {
- "Armenian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "hy"
- }
- },
- {
- "Assamese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "as",
- GoogleCode = "-"
- }
- },
- {
- "Avaric",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "av",
- GoogleCode = "-"
- }
- },
- {
- "Avestan",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ae",
- GoogleCode = "-"
- }
- },
- {
- "Aymara",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ay",
- GoogleCode = "-"
- }
- },
- {
- "Azerbaijani",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "az"
- }
- },
- {
- "Bambara",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "bm",
- GoogleCode = "-"
- }
- },
- {
- "Bashkir",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ba",
- GoogleCode = "-"
- }
- },
- {
- "Basque",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "eu"
- }
- },
- {
- "Basque/Spain",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "eu-ES",
- GoogleCode = "eu"
- }
- },
- {
- "Belarusian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "be"
- }
- },
- {
- "Bengali",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "bn"
- }
- },
- {
- "Bihari",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "bh",
- GoogleCode = "-"
- }
- },
- {
- "Bislama",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "bi",
- GoogleCode = "-"
- }
- },
- {
- "Bosnian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "bs"
- }
- },
- {
- "Breton",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "br",
- GoogleCode = "-"
- }
- },
- {
- "Bulgariaa",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "bg"
- }
- },
- {
- "Burmese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "my"
- }
- },
- {
- "Catalan",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ca"
- }
- },
- {
- "Chamorro",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ch",
- GoogleCode = "-"
- }
- },
- {
- "Chechen",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ce",
- GoogleCode = "-"
- }
- },
- {
- "Chichewa",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ny"
- }
- },
- {
- "Chinese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "zh",
- GoogleCode = "zh-CN",
- HasJoinedWords = true
- }
- },
- {
- "Chinese/Hong Kong",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "zh-HK",
- GoogleCode = "zh-TW",
- HasJoinedWords = true
- }
- },
- {
- "Chinese/Macau",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "zh-MO",
- GoogleCode = "zh-CN",
- HasJoinedWords = true
- }
- },
- {
- "Chinese/PRC",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "zh-CN",
- GoogleCode = "zh-CN",
- HasJoinedWords = true
- }
- },
- {
- "Chinese/Simplified",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "zh-CN",
- GoogleCode = "zh-CN",
- HasJoinedWords = true
- }
- },
- {
- "Chinese/Singapore",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "zh-SG",
- GoogleCode = "zh-CN",
- HasJoinedWords = true
- }
- },
- {
- "Chinese/Taiwan",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "zh-TW",
- GoogleCode = "zh-TW",
- HasJoinedWords = true
- }
- },
- {
- "Chinese/Traditional",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "zh-TW",
- GoogleCode = "zh-TW",
- HasJoinedWords = true
- }
- },
- {
- "Chuvash",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "cv",
- GoogleCode = "-"
- }
- },
- {
- "Cornish",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "kw",
- GoogleCode = "-"
- }
- },
- {
- "Corsican",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "co"
- }
- },
- {
- "Cree",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "cr",
- GoogleCode = "-"
- }
- },
- {
- "Croatian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "hr"
- }
- },
- {
- "Croatian/Bosnia and Herzegovina",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "hr-BA",
- GoogleCode = "hr"
- }
- },
- {
- "Czech",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 7,
- Code = "cs"
- }
- },
- {
- "Danish",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "da"
- }
- },
- {
- "Divehi",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "dv",
- GoogleCode = "-"
- }
- },
- {
- "Dutch",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "nl"
- }
- },
- {
- "Dutch/Belgium",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "nl-BE",
- GoogleCode = "nl"
- }
- },
- {
- "Dutch/Netherlands",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "nl-NL",
- GoogleCode = "nl"
- }
- },
- {
- "Dzongkha",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "dz",
- GoogleCode = "-"
- }
- },
- {
- "English",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en"
- }
- },
- {
- "English/Australia",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-AU",
- GoogleCode = "en"
- }
- },
- {
- "English/Belize",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-BZ",
- GoogleCode = "en"
- }
- },
- {
- "English/Canada",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-CA",
- GoogleCode = "en"
- }
- },
- {
- "English/Caribbean",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-CB",
- GoogleCode = "en"
- }
- },
- {
- "English/Ireland",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-IE",
- GoogleCode = "en"
- }
- },
- {
- "English/Jamaica",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-JM",
- GoogleCode = "en"
- }
- },
- {
- "English/New Zealand",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-NZ",
- GoogleCode = "en"
- }
- },
- {
- "English/Republic of the Philippines",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-PH",
- GoogleCode = "en"
- }
- },
- {
- "English/South Africa",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-ZA",
- GoogleCode = "en"
- }
- },
- {
- "English/Trinidad",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-TT",
- GoogleCode = "en"
- }
- },
- {
- "English/United Kingdom",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-GB",
- GoogleCode = "en"
- }
- },
- {
- "English/United States",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-US",
- GoogleCode = "en"
- }
- },
- {
- "English/Zimbabwe",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "en-ZW",
- GoogleCode = "en"
- }
- },
- {
- "Esperanto",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "eo"
- }
- },
- {
- "Estonian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "et"
- }
- },
- {
- "Ewe",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ee",
- GoogleCode = "-"
- }
- },
- {
- "Faeroese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "fo",
- GoogleCode = "-"
- }
- },
- {
- "Fijian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "fj",
- GoogleCode = "-"
- }
- },
- {
- "Finnish",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "fi"
- }
- },
- {
- "French",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 2,
- Code = "fr"
- }
- },
- {
- "French/Belgium",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 2,
- Code = "fr-BE",
- GoogleCode = "fr"
- }
- },
- {
- "French/Canada",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 2,
- Code = "fr-CA",
- GoogleCode = "fr"
- }
- },
- {
- "French/France",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 2,
- Code = "fr-FR",
- GoogleCode = "fr"
- }
- },
- {
- "French/Luxembourg",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 2,
- Code = "fr-LU",
- GoogleCode = "fr"
- }
- },
- {
- "French/Principality of Monaco",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 2,
- Code = "fr-MC",
- GoogleCode = "fr"
- }
- },
- {
- "French/Switzerland",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 2,
- Code = "fr-CH",
- GoogleCode = "fr"
- }
- },
- {
- "Fulah",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ff",
- GoogleCode = "-"
- }
- },
- {
- "Galician",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "gl"
- }
- },
- {
- "Galician/Spain",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "gl-ES",
- GoogleCode = "gl"
- }
- },
- {
- "Georgian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "ka"
- }
- },
- {
- "German",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "de"
- }
- },
- {
- "German/Austria",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "de-AT",
- GoogleCode = "de"
- }
- },
- {
- "German/Germany",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "de-DE",
- GoogleCode = "de"
- }
- },
- {
- "German/Liechtenstein",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "de-LI",
- GoogleCode = "de"
- }
- },
- {
- "German/Luxembourg",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "de-LU",
- GoogleCode = "de"
- }
- },
- {
- "German/Switzerland",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "de-CH",
- GoogleCode = "de"
- }
- },
- {
- "Greek",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "el"
- }
- },
- {
- "Guaraní",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "gn",
- GoogleCode = "-"
- }
- },
- {
- "Gujarati",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "gu"
- }
- },
- {
- "Haitian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ht"
- }
- },
- {
- "Hausa",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ha"
- }
- },
- {
- "Hebrew",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "he",
- GoogleCode = "iw"
- }
- },
- {
- "Herero",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "hz",
- GoogleCode = "-"
- }
- },
- {
- "Hindi",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "hi"
- }
- },
- {
- "Hiri Motu",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ho",
- GoogleCode = "-"
- }
- },
- {
- "Hungarian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "hu"
- }
- },
- {
- "Interlingua",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ia",
- GoogleCode = "-"
- }
- },
- {
- "Indonesian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "id"
- }
- },
- {
- "Interlingue",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ie",
- GoogleCode = "-"
- }
- },
- {
- "Irish",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 10,
- Code = "ga"
- }
- },
- {
- "Igbo",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ig"
- }
- },
- {
- "Inupiaq",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ik",
- GoogleCode = "-"
- }
- },
- {
- "Ido",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "io",
- GoogleCode = "-"
- }
- },
- {
- "Icelandic",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 14,
- Code = "is"
- }
- },
- {
- "Italian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "it"
- }
- },
- {
- "Italian/Italy",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "it-IT",
- GoogleCode = "it"
- }
- },
- {
- "Italian/Switzerland",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "it-CH",
- GoogleCode = "it"
- }
- },
- {
- "Inuktitut",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "iu",
- GoogleCode = "-"
- }
- },
- {
- "Japanese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "ja",
- HasJoinedWords = true
- }
- },
- {
- "Javanese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "jv"
- }
- },
- {
- "Kalaallisut",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "kl",
- GoogleCode = "-"
- }
- },
- {
- "Kannada",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "kn"
- }
- },
- {
- "Kanuri",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "kr",
- GoogleCode = "-"
- }
- },
- {
- "Kashmiri",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ks",
- GoogleCode = "-"
- }
- },
- {
- "Kazakh",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "kk"
- }
- },
- {
- "Central Khmer",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "km"
- }
- },
- {
- "Kikuyu",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ki",
- GoogleCode = "-"
- }
- },
- {
- "Kinyarwanda",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "rw",
- GoogleCode = "-"
- }
- },
- {
- "Kirghiz",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ky"
- }
- },
- {
- "Komi",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "kv",
- GoogleCode = "-"
- }
- },
- {
- "Kongo",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "kg",
- GoogleCode = "-"
- }
- },
- {
- "Korean",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "ko"
- }
- },
- {
- "Kurdish",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ku"
- }
- },
- {
- "Kuanyama",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "kj",
- GoogleCode = "-"
- }
- },
- {
- "Latin",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "la"
- }
- },
- {
- "Luxembourgish",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "lb"
- }
- },
- {
- "Ganda",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "lg",
- GoogleCode = "-"
- }
- },
- {
- "Limburgan",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "li",
- GoogleCode = "-"
- }
- },
- {
- "Lingala",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ln",
- GoogleCode = "-"
- }
- },
- {
- "Lao",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "lo"
- }
- },
- {
- "Latvian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "lv"
- }
- },
- {
- "Luba-Katanga",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "lu",
- GoogleCode = "-"
- }
- },
- {
- "Lithuanian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "lt"
- }
- },
- {
- "Manx",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "gv",
- GoogleCode = "-"
- }
- },
- {
- "Macedonian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 13,
- Code = "mk"
- }
- },
- {
- "Malagasy",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "mg"
- }
- },
- {
- "Malay",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "ms"
- }
- },
- {
- "Malay/Brunei Darussalam",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "ms-BN",
- GoogleCode = "ms"
- }
- },
- {
- "Malay/Malaysia",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "ms-MY",
- GoogleCode = "ms"
- }
- },
- {
- "Malayalam",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ml"
- }
- },
- {
- "Maltese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 12,
- Code = "mt"
- }
- },
- {
- "Maori",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 2,
- Code = "mi"
- }
- },
- {
- "Marathi",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "mr"
- }
- },
- {
- "Marshallese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "mh",
- GoogleCode = "-"
- }
- },
- {
- "Mongolian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "mn"
- }
- },
- {
- "Nauru",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "na",
- GoogleCode = "-"
- }
- },
- {
- "Navajo",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "nv",
- GoogleCode = "-"
- }
- },
- {
- "North Ndebele",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "nd",
- GoogleCode = "-"
- }
- },
- {
- "Nepali",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ne"
- }
- },
- {
- "Ndonga",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ng",
- GoogleCode = "-"
- }
- },
- {
- "Northern Sotho",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ns",
- GoogleCode = "st"
- }
- },
- {
- "Norwegian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "nb",
- GoogleCode = "no"
- }
- },
- {
- "Norwegian/Nynorsk",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "nn",
- GoogleCode = "no"
- }
- },
- {
- "Sichuan Yi",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ii",
- GoogleCode = "-"
- }
- },
- {
- "South Ndebele",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "nr",
- GoogleCode = "-"
- }
- },
- {
- "Occitan",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "oc",
- GoogleCode = "-"
- }
- },
- {
- "Ojibwa",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "oj",
- GoogleCode = "-"
- }
- },
- {
- "Church\u00a0Slavic",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "cu",
- GoogleCode = "-"
- }
- },
- {
- "Oromo",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "om",
- GoogleCode = "-"
- }
- },
- {
- "Oriya",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "or",
- GoogleCode = "-"
- }
- },
- {
- "Ossetian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "os",
- GoogleCode = "-"
- }
- },
- {
- "Pali",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "pi",
- GoogleCode = "-"
- }
- },
- {
- "Pashto",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ps"
- }
- },
- {
- "Persian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "fa"
- }
- },
- {
- "Polish",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 8,
- Code = "pl"
- }
- },
- {
- "Portuguese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "pt"
- }
- },
- {
- "Portuguese/Brazil",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 2,
- Code = "pt-BR",
- GoogleCode = "pt"
- }
- },
- {
- "Portuguese/Portugal",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "pt-PT",
- GoogleCode = "pt"
- }
- },
- {
- "Punjabi",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "pa"
- }
- },
- {
- "Quechua",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "qu",
- GoogleCode = "-"
- }
- },
- {
- "Quechua/Bolivia",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "qu-BO",
- GoogleCode = "-"
- }
- },
- {
- "Quechua/Ecuador",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "qu-EC",
- GoogleCode = "-"
- }
- },
- {
- "Quechua/Peru",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "qu-PE",
- GoogleCode = "-"
- }
- },
- {
- "Rhaeto-Romanic",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "rm",
- GoogleCode = "ro"
- }
- },
- {
- "Romanian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 4,
- Code = "ro"
- }
- },
- {
- "Rundi",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "rn",
- GoogleCode = "-"
- }
- },
- {
- "Russian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "ru"
- }
- },
- {
- "Russian/Republic of Moldova",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "ru-MO",
- GoogleCode = "ru"
- }
- },
- {
- "Sanskrit",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "sa",
- GoogleCode = "-"
- }
- },
- {
- "Sardinian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "sc",
- GoogleCode = "-"
- }
- },
- {
- "Sindhi",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "sd"
- }
- },
- {
- "Northern Sami",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "se",
- GoogleCode = "-"
- }
- },
- {
- "Samoan",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "sm"
- }
- },
- {
- "Sango",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "sg",
- GoogleCode = "-"
- }
- },
- {
- "Serbian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "sr"
- }
- },
- {
- "Serbian/Bosnia and Herzegovina",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "sr-BA",
- GoogleCode = "sr"
- }
- },
- {
- "Serbian/Serbia and Montenegro",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "sr-SP",
- GoogleCode = "sr"
- }
- },
- {
- "Scottish Gaelic",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "gd"
- }
- },
- {
- "Shona",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "sn"
- }
- },
- {
- "Sinhala",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "si"
- }
- },
- {
- "Slovak",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 7,
- Code = "sk"
- }
- },
- {
- "Slovenian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 9,
- Code = "sl"
- }
- },
- {
- "Somali",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "so"
- }
- },
- {
- "Southern Sotho",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "st"
- }
- },
- {
- "Spanish",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es"
- }
- },
- {
- "Spanish/Argentina",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-AR",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Bolivia",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-BO",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Castilian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-ES",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Chile",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-CL",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Colombia",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-CO",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Costa Rica",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-CR",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Dominican Republic",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-DO",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Ecuador",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-EC",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/El Salvador",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-SV",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Guatemala",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-GT",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Honduras",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-HN",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Mexico",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-MX",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Nicaragua",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-NI",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Panama",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-PA",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Paraguay",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-PY",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Peru",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-PE",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Puerto Rico",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-PR",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Spain",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-ES",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Uruguay",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-UY",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Venezuela",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-VE",
- GoogleCode = "es"
- }
- },
- {
- "Spanish/Latin Americas",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "es-US",
- GoogleCode = "es"
- }
- },
- {
- "Sundanese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "su"
- }
- },
- {
- "Swahili",
- new GoogleLanguages.LanguageCodeDef
- {
- Code = "sw"
- }
- },
- {
- "Swati",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ss",
- GoogleCode = "-"
- }
- },
- {
- "Swedish",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "sv"
- }
- },
- {
- "Swedish/Finland",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "sv-FI",
- GoogleCode = "sv"
- }
- },
- {
- "Swedish/Sweden",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "sv-SE",
- GoogleCode = "sv"
- }
- },
- {
- "Tamil",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ta"
- }
- },
- {
- "Tatar",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "tt",
- GoogleCode = "-"
- }
- },
- {
- "Telugu",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "te"
- }
- },
- {
- "Tajik",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "tg"
- }
- },
- {
- "Thai",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "th",
- HasJoinedWords = true
- }
- },
- {
- "Tigrinya",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ti",
- GoogleCode = "-"
- }
- },
- {
- "Tibetan",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "bo",
- GoogleCode = "-"
- }
- },
- {
- "Turkmen",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "tk",
- GoogleCode = "-"
- }
- },
- {
- "Tagalog",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "tl"
- }
- },
- {
- "Tswana",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "tn",
- GoogleCode = "-"
- }
- },
- {
- "Tonga",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "to",
- GoogleCode = "-"
- }
- },
- {
- "Turkish",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 0,
- Code = "tr"
- }
- },
- {
- "Tsonga",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ts",
- GoogleCode = "-"
- }
- },
- {
- "Twi",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "tw",
- GoogleCode = "-"
- }
- },
- {
- "Tahitian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ty",
- GoogleCode = "-"
- }
- },
- {
- "Uighur",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ug",
- GoogleCode = "-"
- }
- },
- {
- "Ukrainian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 5,
- Code = "uk"
- }
- },
- {
- "Urdu",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ur"
- }
- },
- {
- "Uzbek",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 2,
- Code = "uz"
- }
- },
- {
- "Venda",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "ve",
- GoogleCode = "-"
- }
- },
- {
- "Vietnamese",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "vi"
- }
- },
- {
- "Volapük",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "vo",
- GoogleCode = "-"
- }
- },
- {
- "Walloon",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "wa",
- GoogleCode = "-"
- }
- },
- {
- "Welsh",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 16,
- Code = "cy"
- }
- },
- {
- "Wolof",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "wo",
- GoogleCode = "-"
- }
- },
- {
- "Frisian",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "fy"
- }
- },
- {
- "Xhosa",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "xh"
- }
- },
- {
- "Yiddish",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "yi"
- }
- },
- {
- "Yoruba",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "yo"
- }
- },
- {
- "Zhuang",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "za",
- GoogleCode = "-"
- }
- },
- {
- "Zulu",
- new GoogleLanguages.LanguageCodeDef
- {
- PluralRule = 1,
- Code = "zu"
- }
- }
- };
- public struct LanguageCodeDef
- {
- public string Code;
- public string GoogleCode;
- public bool HasJoinedWords;
- public int PluralRule;
- }
- }
- }
|