mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #2243 from Gymnasiast/rossija
Add support for Russian
This commit is contained in:
commit
7d51eb55e1
|
@ -144,6 +144,8 @@ config_enum_definition _languageEnum[] = {
|
|||
{ "zh-Hant", LANGUAGE_CHINESE_TRADITIONAL },
|
||||
{ "zh-Hans", LANGUAGE_CHINESE_SIMPLIFIED },
|
||||
{ "fi-FI", LANGUAGE_FINNISH },
|
||||
{ "ko", LANGUAGE_KOREAN },
|
||||
{ "ru-RU", LANUGAGE_RUSSIAN },
|
||||
END_OF_ENUM
|
||||
};
|
||||
|
||||
|
|
|
@ -61,12 +61,19 @@ static TTFFontSetDescriptor TTFFontSimSun = {{
|
|||
{ "simsun.ttc", 13, 1, 0, 20, nullptr },
|
||||
}};
|
||||
|
||||
static TTFFontSetDescriptor TTFFontMalgun = { {
|
||||
static TTFFontSetDescriptor TTFFontMalgun = {{
|
||||
{ "malgun.ttf", 8, -1, -3, 6, nullptr },
|
||||
{ "malgun.ttf", 11, 1, -2, 14, nullptr },
|
||||
{ "malgun.ttf", 12, 1, -4, 14, nullptr },
|
||||
{ "malgun.ttf", 13, 1, 0, 20, nullptr },
|
||||
} };
|
||||
}};
|
||||
|
||||
static TTFFontSetDescriptor TTFFontArial = {{
|
||||
{ "arial.ttf", 8, 0, -1, 6, nullptr },
|
||||
{ "arial.ttf", 10, 0, -1, 12, nullptr },
|
||||
{ "arial.ttf", 11, 0, -1, 12, nullptr },
|
||||
{ "arial.ttf", 12, 0, -1, 20, nullptr },
|
||||
}};
|
||||
|
||||
const language_descriptor LanguagesDescriptors[LANGUAGE_COUNT] = {
|
||||
{ "", "", "", "", FONT_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_UNDEFINED
|
||||
|
@ -80,11 +87,12 @@ const language_descriptor LanguagesDescriptors[LANGUAGE_COUNT] = {
|
|||
{ "es-ES", "Spanish", "Espa\xC3\xB1ol", "spanish_sp", FONT_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_SPANISH }, // LANGUAGE_SPANISH
|
||||
{ "sv-SE", "Swedish", "Svenska", "swedish", FONT_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_SWEDISH }, // LANGUAGE_SWEDISH
|
||||
{ "it-IT", "Italian", "Italiano", "italian", FONT_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ITALIAN }, // LANGUAGE_ITALIAN
|
||||
{ "pt-BR", "Portuguese (BR)", "Portugu\xC3\xAAs (BR)", "portuguese_br", FONT_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_PORTUGUESE }, // LANGUAGE_PORTUGUESE_BR
|
||||
{ "pt-BR", "Portuguese (BR)", "Portugu\xC3\xAAs (BR)", "portuguese_br", FONT_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_PORTUGUESE }, // LANGUAGE_PORTUGUESE_BR
|
||||
{ "zh-Hant", "Chinese (Traditional)", "Chinese (Traditional)", "chinese_traditional", &TTFFontMingLiu, RCT2_LANGUAGE_ID_CHINESE_TRADITIONAL }, // LANGUAGE_CHINESE_TRADITIONAL
|
||||
{ "zh-Hans", "Chinese (Simplified)", "Chinese (Simplified)", "chinese_simplified", &TTFFontSimSun, RCT2_LANGUAGE_ID_CHINESE_SIMPLIFIED }, // LANGUAGE_CHINESE_SIMPLIFIED
|
||||
{ "fi-FI", "Finnish", "Suomi", "finnish", FONT_OPENRCT2_SPRITE, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_FINNISH
|
||||
{ "kr-KR", "Korean", "Korean", "korean", &TTFFontMalgun, RCT2_LANGUAGE_ID_KOREAN }, // LANGUAGE_KOREAN
|
||||
{ "ru-RU", "Russian", "Russian", "russian", &TTFFontArial, RCT2_LANGUAGE_ID_ENGLISH_UK }, // LANGUAGE_RUSSIAN
|
||||
};
|
||||
|
||||
int gCurrentLanguage = LANGUAGE_UNDEFINED;
|
||||
|
|
|
@ -41,6 +41,7 @@ enum {
|
|||
LANGUAGE_CHINESE_SIMPLIFIED,
|
||||
LANGUAGE_FINNISH,
|
||||
LANGUAGE_KOREAN,
|
||||
LANUGAGE_RUSSIAN,
|
||||
LANGUAGE_COUNT
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue