diff --git a/src/config.c b/src/config.c index 493e501952..7dbe386f49 100644 --- a/src/config.c +++ b/src/config.c @@ -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 }; diff --git a/src/localisation/language.cpp b/src/localisation/language.cpp index eba6a6af0f..4ed859df83 100644 --- a/src/localisation/language.cpp +++ b/src/localisation/language.cpp @@ -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; diff --git a/src/localisation/language.h b/src/localisation/language.h index 4b76850447..9dbb1ff889 100644 --- a/src/localisation/language.h +++ b/src/localisation/language.h @@ -41,6 +41,7 @@ enum { LANGUAGE_CHINESE_SIMPLIFIED, LANGUAGE_FINNISH, LANGUAGE_KOREAN, + LANUGAGE_RUSSIAN, LANGUAGE_COUNT };