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

Compare commits

..

4 commits

Author SHA1 Message Date
Muzychenko Andrey
a079117507 Added Korean translation. 2021-10-31 18:29:41 +03:00
Muzychenko Andrey
620ec011ec Added Spanish translation. 2021-10-31 17:35:41 +03:00
Muzychenko Andrey
1af8bb67d7 Added Greek translation. 2021-10-31 17:25:24 +03:00
Muzychenko Andrey
089ccbf549 Added Arabic translation. 2021-10-31 17:03:32 +03:00
6 changed files with 13 additions and 1 deletions

View file

@ -458,6 +458,9 @@ void gdrv::grtext_draw_ttext_in_box(LPCWSTR text, int xOff, int yOff, int width,
case Languages::Japanese: case Languages::Japanese:
font = "MS UI Gothic"; font = "MS UI Gothic";
break; break;
case Languages::Korean:
font = "Gulim";
break;
default: default:
font = "Arial"; font = "Arial";
} }

View file

@ -85,6 +85,10 @@ LanguageMenuEntry options::LanguageMenu[]
{L"Dansk", Languages::Danish}, {L"Dansk", Languages::Danish},
{L"Suomi", Languages::Finnish}, {L"Suomi", Languages::Finnish},
{L"עִברִית", Languages::Hebrew}, {L"עִברִית", Languages::Hebrew},
{L"اَلْعَرَبِيَّة", Languages::Arabic},
{L"Ελληνικά", Languages::Greek},
{L"Español", Languages::Spanish},
{L"한국어", Languages::Korean},
}; };
void options::ReadOptions() void options::ReadOptions()

View file

@ -19,6 +19,10 @@ enum class Languages
Danish = MAKELANGID(LANG_DANISH, SUBLANG_DANISH_DENMARK), Danish = MAKELANGID(LANG_DANISH, SUBLANG_DANISH_DENMARK),
Finnish = MAKELANGID(LANG_FINNISH, SUBLANG_FINNISH_FINLAND), Finnish = MAKELANGID(LANG_FINNISH, SUBLANG_FINNISH_FINLAND),
Hebrew = MAKELANGID(LANG_HEBREW, SUBLANG_HEBREW_ISRAEL), Hebrew = MAKELANGID(LANG_HEBREW, SUBLANG_HEBREW_ISRAEL),
Arabic = MAKELANGID(LANG_ARABIC, SUBLANG_ARABIC_SAUDI_ARABIA),
Greek = MAKELANGID(LANG_GREEK, SUBLANG_GREEK_GREECE),
Spanish = MAKELANGID(LANG_SPANISH, SUBLANG_SPANISH_MODERN),
Korean = MAKELANGID(LANG_KOREAN, SUBLANG_KOREAN),
}; };
struct LanguageMenuEntry struct LanguageMenuEntry

View file

@ -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 715 #define Menu1_LanguageMax 719
// Next default values for new objects // Next default values for new objects
// //

View file

@ -170,6 +170,7 @@ int winmain::WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLi
switch (options::Options.Language) switch (options::Options.Language)
{ {
case Languages::Hebrew: case Languages::Hebrew:
case Languages::Arabic:
dwExStyle = WS_EX_LAYOUTRTL; dwExStyle = WS_EX_LAYOUTRTL;
break; break;
default: default: