mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
parent
c2cf824afd
commit
f6927e4fe5
2 changed files with 19 additions and 0 deletions
|
@ -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.
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue