Added Traditional Chinese and Simplified Chinese languages to options.

They don’t work without Chinese locale.
Ref #68.
This commit is contained in:
Muzychenko Andrey 2021-10-25 17:30:39 +03:00
parent 893d898d0a
commit cf215aaa6a
4 changed files with 11 additions and 1 deletions

View File

@ -457,6 +457,12 @@ void gdrv::grtext_draw_ttext_in_box(LPCSTR text, int xOff, int yOff, int width,
case Languages::Russian:
charset = RUSSIAN_CHARSET;
break;
case Languages::TraditionalChinese:
charset = CHINESEBIG5_CHARSET;
break;
case Languages::SimplifiedChinese:
charset = GB2312_CHARSET;
break;
}
// Default font does not scale well

View File

@ -72,6 +72,8 @@ LanguageMenuEntry options::LanguageMenu[]
{
{L"English", Languages::English},
{L"Русский", Languages::Russian},
{L"正體字", Languages::SimplifiedChinese},
{L"简化字", Languages::TraditionalChinese},
};
void options::ReadOptions()

View File

@ -6,6 +6,8 @@ enum class Languages
{
English = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
Russian = MAKELANGID(LANG_RUSSIAN, SUBLANG_DEFAULT),
TraditionalChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL),
SimplifiedChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED),
};
struct LanguageMenuEntry

View File

@ -242,7 +242,7 @@
#define DLG_HIGHSCORES_EditName5 605
#define Menu1_AlternativeRender 601
#define Menu1_Language 700
#define Menu1_LanguageMax 702
#define Menu1_LanguageMax 704
// Next default values for new objects
//