2017-10-23 04:01:08 +00:00
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
2018-05-12 19:28:48 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Contiguous series Game Language IDs
|
|
|
|
|
/// </summary>
|
2017-10-23 04:01:08 +00:00
|
|
|
|
public enum LanguageID : byte
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Undefined Language ID, usually indicative of a value not being set.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Gen5 Japanese In-game Trades happen to not have their Language value set, and express Language=0.</remarks>
|
|
|
|
|
Hacked = 0,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Japanese (日本語)
|
|
|
|
|
/// </summary>
|
|
|
|
|
Japanese = 1,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// English (US/UK/AU)
|
|
|
|
|
/// </summary>
|
|
|
|
|
English = 2,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// French (Français)
|
|
|
|
|
/// </summary>
|
|
|
|
|
French = 3,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Italian (Italiano)
|
|
|
|
|
/// </summary>
|
|
|
|
|
Italian = 4,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// German (Deutsch)
|
|
|
|
|
/// </summary>
|
|
|
|
|
German = 5,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Unused Language ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>Was reserved for Korean in Gen3 but never utilized.</remarks>
|
|
|
|
|
UNUSED_6 = 6,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Spanish (Español)
|
|
|
|
|
/// </summary>
|
|
|
|
|
Spanish = 7,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Korean (한국어)
|
|
|
|
|
/// </summary>
|
|
|
|
|
Korean = 8,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Chinese Simplified (简体中文)
|
|
|
|
|
/// </summary>
|
|
|
|
|
ChineseS = 9,
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Chinese Traditional (繁體中文)
|
|
|
|
|
/// </summary>
|
|
|
|
|
ChineseT = 10,
|
|
|
|
|
}
|
2018-08-26 00:04:01 +00:00
|
|
|
|
|
|
|
|
|
public static partial class Extensions
|
|
|
|
|
{
|
|
|
|
|
public static string GetLanguage2CharName(this LanguageID lang)
|
|
|
|
|
{
|
|
|
|
|
switch (lang)
|
|
|
|
|
{
|
|
|
|
|
default: return "en";
|
|
|
|
|
|
|
|
|
|
case LanguageID.Japanese: return "ja";
|
|
|
|
|
case LanguageID.French: return "fr";
|
|
|
|
|
case LanguageID.Italian: return "it";
|
|
|
|
|
case LanguageID.German: return "de";
|
|
|
|
|
case LanguageID.Spanish: return "es";
|
|
|
|
|
case LanguageID.Korean: return "ko";
|
|
|
|
|
case LanguageID.ChineseS:
|
|
|
|
|
case LanguageID.ChineseT: return "zh";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-23 04:01:08 +00:00
|
|
|
|
}
|