New: Add Macedonian and Slovenian languages

pull/10372/head
Bogdan 3 months ago
parent 2700a6cf8a
commit 2d4846e5be

@ -57,7 +57,9 @@ namespace NzbDrone.Core.Test.Languages
new object[] { 42, Language.Estonian },
new object[] { 43, Language.Tamil },
new object[] { 44, Language.Indonesian },
new object[] { 45, Language.Telugu }
new object[] { 45, Language.Telugu },
new object[] { 46, Language.Macedonian },
new object[] { 47, Language.Slovenian }
};
public static object[] ToIntCases =
@ -109,7 +111,9 @@ namespace NzbDrone.Core.Test.Languages
new object[] { Language.Estonian, 42 },
new object[] { Language.Tamil, 43 },
new object[] { Language.Indonesian, 44 },
new object[] { Language.Telugu, 45 }
new object[] { Language.Telugu, 45 },
new object[] { Language.Macedonian, 46 },
new object[] { Language.Slovenian, 47 }
};
[Test]

@ -53,6 +53,10 @@ namespace NzbDrone.Core.ImportLists.TMDb
[FieldOption(Hint = "Bengali")]
bn,
[FieldOption(Hint = "Romanian")]
ro
ro,
[FieldOption(Hint = "Macedonian")]
mk,
[FieldOption(Hint = "Slovenian")]
sl
}
}

@ -116,6 +116,8 @@ namespace NzbDrone.Core.Languages
public static Language Tamil => new Language(43, "Tamil");
public static Language Indonesian => new Language(44, "Indonesian");
public static Language Telugu => new Language(45, "Telugu");
public static Language Macedonian => new Language(46, "Macedonian");
public static Language Slovenian => new Language(47, "Slovenian");
public static Language Any => new Language(-1, "Any");
public static Language Original => new Language(-2, "Original");
@ -171,6 +173,8 @@ namespace NzbDrone.Core.Languages
Tamil,
Indonesian,
Telugu,
Macedonian,
Slovenian,
Any,
Original
};

@ -54,7 +54,9 @@ namespace NzbDrone.Core.Parser
new IsoLanguage("et", "", "est", "Estonian", Language.Estonian),
new IsoLanguage("ta", "", "tam", "Tamil", Language.Tamil),
new IsoLanguage("id", "", "ind", "Indonesian", Language.Indonesian),
new IsoLanguage("te", "", "tel", "Telugu", Language.Telugu)
new IsoLanguage("te", "", "tel", "Telugu", Language.Telugu),
new IsoLanguage("mk", "", "mkd", "Macedonian", Language.Macedonian),
new IsoLanguage("sl", "", "slv", "Slovenian", Language.Slovenian),
};
private static readonly Dictionary<string, Language> AlternateIsoCodeMappings = new ()

Loading…
Cancel
Save