|
|
|
@ -8,30 +8,30 @@ namespace NzbDrone.Core.Parser
|
|
|
|
|
{
|
|
|
|
|
private static readonly HashSet<IsoLanguage> All = new HashSet<IsoLanguage>
|
|
|
|
|
{
|
|
|
|
|
new IsoLanguage("en", "", "eng", Language.English),
|
|
|
|
|
new IsoLanguage("fr", "", "fra", Language.French),
|
|
|
|
|
new IsoLanguage("es", "", "spa", Language.Spanish),
|
|
|
|
|
new IsoLanguage("de", "", "deu", Language.German),
|
|
|
|
|
new IsoLanguage("it", "", "ita", Language.Italian),
|
|
|
|
|
new IsoLanguage("da", "", "dan", Language.Danish),
|
|
|
|
|
new IsoLanguage("nl", "", "nld", Language.Dutch),
|
|
|
|
|
new IsoLanguage("ja", "", "jpn", Language.Japanese),
|
|
|
|
|
new IsoLanguage("is", "", "isl", Language.Icelandic),
|
|
|
|
|
new IsoLanguage("zh", "", "zho", Language.Chinese),
|
|
|
|
|
new IsoLanguage("ru", "", "rus", Language.Russian),
|
|
|
|
|
new IsoLanguage("pl", "", "pol", Language.Polish),
|
|
|
|
|
new IsoLanguage("vi", "", "vie", Language.Vietnamese),
|
|
|
|
|
new IsoLanguage("sv", "", "swe", Language.Swedish),
|
|
|
|
|
new IsoLanguage("no", "", "nor", Language.Norwegian),
|
|
|
|
|
new IsoLanguage("nb", "", "nob", Language.Norwegian),
|
|
|
|
|
new IsoLanguage("fi", "", "fin", Language.Finnish),
|
|
|
|
|
new IsoLanguage("tr", "", "tur", Language.Turkish),
|
|
|
|
|
new IsoLanguage("pt", "", "por", Language.Portuguese),
|
|
|
|
|
new IsoLanguage("el", "", "ell", Language.Greek),
|
|
|
|
|
new IsoLanguage("ko", "", "kor", Language.Korean),
|
|
|
|
|
new IsoLanguage("hu", "", "hun", Language.Hungarian),
|
|
|
|
|
new IsoLanguage("he", "", "heb", Language.Hebrew),
|
|
|
|
|
new IsoLanguage("cs", "", "ces", Language.Czech)
|
|
|
|
|
new IsoLanguage("en", "", "eng", "English", Language.English),
|
|
|
|
|
new IsoLanguage("fr", "", "fra", "French", Language.French),
|
|
|
|
|
new IsoLanguage("es", "", "spa", "Spanish", Language.Spanish),
|
|
|
|
|
new IsoLanguage("de", "", "deu", "German", Language.German),
|
|
|
|
|
new IsoLanguage("it", "", "ita", "Italian", Language.Italian),
|
|
|
|
|
new IsoLanguage("da", "", "dan", "Danish", Language.Danish),
|
|
|
|
|
new IsoLanguage("nl", "", "nld", "Dutch", Language.Dutch),
|
|
|
|
|
new IsoLanguage("ja", "", "jpn", "Japanese", Language.Japanese),
|
|
|
|
|
new IsoLanguage("is", "", "isl", "Icelandic", Language.Icelandic),
|
|
|
|
|
new IsoLanguage("zh", "", "zho", "Chinese", Language.Chinese),
|
|
|
|
|
new IsoLanguage("ru", "", "rus", "Russian", Language.Russian),
|
|
|
|
|
new IsoLanguage("pl", "", "pol", "Polish", Language.Polish),
|
|
|
|
|
new IsoLanguage("vi", "", "vie", "Vietnamese", Language.Vietnamese),
|
|
|
|
|
new IsoLanguage("sv", "", "swe", "Swedish", Language.Swedish),
|
|
|
|
|
new IsoLanguage("no", "", "nor", "Norwegian", Language.Norwegian),
|
|
|
|
|
new IsoLanguage("nb", "", "nob", "Norwegian Bokmal", Language.Norwegian),
|
|
|
|
|
new IsoLanguage("fi", "", "fin", "Finnish", Language.Finnish),
|
|
|
|
|
new IsoLanguage("tr", "", "tur", "Turkish", Language.Turkish),
|
|
|
|
|
new IsoLanguage("pt", "", "por", "Portuguese", Language.Portuguese),
|
|
|
|
|
new IsoLanguage("el", "", "ell", "Greek", Language.Greek),
|
|
|
|
|
new IsoLanguage("ko", "", "kor", "Korean", Language.Korean),
|
|
|
|
|
new IsoLanguage("hu", "", "hun", "Hungarian", Language.Hungarian),
|
|
|
|
|
new IsoLanguage("he", "", "heb", "Hebrew", Language.Hebrew),
|
|
|
|
|
new IsoLanguage("cs", "", "ces", "Czech", Language.Czech)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public static IsoLanguage Find(string isoCode)
|
|
|
|
@ -62,6 +62,11 @@ namespace NzbDrone.Core.Parser
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static IsoLanguage FindByName(string name)
|
|
|
|
|
{
|
|
|
|
|
return All.FirstOrDefault(l => l.EnglishName == name.Trim());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static IsoLanguage Get(Language language)
|
|
|
|
|
{
|
|
|
|
|
return All.FirstOrDefault(l => l.Language == language);
|
|
|
|
|