1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2024-11-22 08:50:18 +01:00

Compare commits

..

3 commits

Author SHA1 Message Date
Muzychenko Andrey
09c62f5909 Fixed mixed up Chinese language texts. 2021-10-25 17:40:38 +03:00
Muzychenko Andrey
cf215aaa6a Added Traditional Chinese and Simplified Chinese languages to options.
They don’t work without Chinese locale.
Ref #68.
2021-10-25 17:30:39 +03:00
Lim Chunwei
893d898d0a
Simplified Chinese and Traditional Chinese translations (#68) 2021-10-25 14:10:47 +03:00
5 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
//