mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-11-14 22:08:04 +01:00
Added Traditional Chinese and Simplified Chinese languages to options.
They don’t work without Chinese locale. Ref #68.
This commit is contained in:
parent
893d898d0a
commit
cf215aaa6a
4 changed files with 11 additions and 1 deletions
|
@ -457,6 +457,12 @@ void gdrv::grtext_draw_ttext_in_box(LPCSTR text, int xOff, int yOff, int width,
|
||||||
case Languages::Russian:
|
case Languages::Russian:
|
||||||
charset = RUSSIAN_CHARSET;
|
charset = RUSSIAN_CHARSET;
|
||||||
break;
|
break;
|
||||||
|
case Languages::TraditionalChinese:
|
||||||
|
charset = CHINESEBIG5_CHARSET;
|
||||||
|
break;
|
||||||
|
case Languages::SimplifiedChinese:
|
||||||
|
charset = GB2312_CHARSET;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default font does not scale well
|
// Default font does not scale well
|
||||||
|
|
|
@ -72,6 +72,8 @@ LanguageMenuEntry options::LanguageMenu[]
|
||||||
{
|
{
|
||||||
{L"English", Languages::English},
|
{L"English", Languages::English},
|
||||||
{L"Русский", Languages::Russian},
|
{L"Русский", Languages::Russian},
|
||||||
|
{L"正體字", Languages::SimplifiedChinese},
|
||||||
|
{L"简化字", Languages::TraditionalChinese},
|
||||||
};
|
};
|
||||||
|
|
||||||
void options::ReadOptions()
|
void options::ReadOptions()
|
||||||
|
|
|
@ -6,6 +6,8 @@ enum class Languages
|
||||||
{
|
{
|
||||||
English = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
|
English = MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
|
||||||
Russian = MAKELANGID(LANG_RUSSIAN, SUBLANG_DEFAULT),
|
Russian = MAKELANGID(LANG_RUSSIAN, SUBLANG_DEFAULT),
|
||||||
|
TraditionalChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL),
|
||||||
|
SimplifiedChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED),
|
||||||
};
|
};
|
||||||
|
|
||||||
struct LanguageMenuEntry
|
struct LanguageMenuEntry
|
||||||
|
|
|
@ -242,7 +242,7 @@
|
||||||
#define DLG_HIGHSCORES_EditName5 605
|
#define DLG_HIGHSCORES_EditName5 605
|
||||||
#define Menu1_AlternativeRender 601
|
#define Menu1_AlternativeRender 601
|
||||||
#define Menu1_Language 700
|
#define Menu1_Language 700
|
||||||
#define Menu1_LanguageMax 702
|
#define Menu1_LanguageMax 704
|
||||||
|
|
||||||
// Next default values for new objects
|
// Next default values for new objects
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue