Add Japanese to the list of available languages.

This commit is contained in:
Aaron van Geffen 2016-01-02 00:11:46 +09:00
parent de52321026
commit 89a2e32f28
2 changed files with 9 additions and 0 deletions

View File

@ -47,6 +47,13 @@ enum {
RCT2_LANGUAGE_ID_END = 255
};
static TTFFontSetDescriptor TTFFontMSGothic = {{
{ "msgothic_02.ttf", "MS PGothic", 9, 1, 0, 15, nullptr },
{ "msgothic_02.ttf", "MS PGothic", 12, 1, 0, 17, nullptr },
{ "msgothic_02.ttf", "MS PGothic", 12, 1, 0, 17, nullptr },
{ "msgothic_02.ttf", "MS PGothic", 13, 1, 0, 20, nullptr },
}};
static TTFFontSetDescriptor TTFFontMingLiu = {{
{ "msjh.ttc", "JhengHei", 9, -1, -3, 6, nullptr },
{ "mingliu.ttc", "MingLiU", 11, 1, 1, 12, nullptr },
@ -94,6 +101,7 @@ const language_descriptor LanguagesDescriptors[LANGUAGE_COUNT] = {
{ "ko", "Korean", "Korean", "korean", &TTFFontGulim, RCT2_LANGUAGE_ID_KOREAN }, // LANGUAGE_KOREAN
{ "ru-RU", "Russian", "Russian", "russian", &TTFFontArial, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_RUSSIAN
{ "cz-CZ", "Czech", "Czech", "czech", &TTFFontArial, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_CZECH
{ "jp-JP", "Japanese", "Japanese", "japanese", &TTFFontMSGothic, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_JAPANESE
};
int gCurrentLanguage = LANGUAGE_UNDEFINED;

View File

@ -43,6 +43,7 @@ enum {
LANGUAGE_KOREAN,
LANGUAGE_RUSSIAN,
LANGUAGE_CZECH,
LANGUAGE_JAPANESE,
LANGUAGE_COUNT
};