Add gen2 KOR localization exceptions

Closes #1547
Thanks @host1126 !
This commit is contained in:
Kurt 2017-10-26 20:37:11 -07:00
parent c2cf824afd
commit f6927e4fe5
2 changed files with 19 additions and 0 deletions

View file

@ -220,6 +220,8 @@ namespace PKHeX.Core
return "タマゴ"; return "タマゴ";
string nick = GetSpeciesName(species, lang); string nick = GetSpeciesName(species, lang);
if (generation == 2 && lang == (int)LanguageID.Korean)
return StringConverter.LocalizeKOR2(nick);
if (generation < 5 && (generation != 4 || species != 0)) // All caps GenIV and previous, except GenIV eggs. if (generation < 5 && (generation != 4 || species != 0)) // All caps GenIV and previous, except GenIV eggs.
{ {

View file

@ -2040,5 +2040,22 @@ namespace PKHeX.Core
{ 'Ê', 'E' }, { 'Ê', 'E' },
{ 'Ï', 'I' }, { 'Ï', 'I' },
}; };
/// <summary>
/// Localizes a Gen4+ Korean species name to the localization used in Generation 2 Gold/Silver
/// </summary>
/// <param name="nick">Generation 4 Species Name</param>
/// <returns>Localized Name for Generation 2</returns>
public static string LocalizeKOR2(string nick)
{
if (KorG2Localized.TryGetValue(nick, out string localized))
return localized;
return nick;
}
private static readonly Dictionary<string, string> KorG2Localized = new Dictionary<string, string>
{
{ "덩쿠리", "덩구리" }, // Tangela
{ "슈륙챙이", "수륙챙이" }, // Poliwhirl
};
} }
} }