From e2f10333d963900e6bc94cbb171fb4b4e394093c Mon Sep 17 00:00:00 2001 From: Muzychenko Andrey <33288308+k4zmu2a@users.noreply.github.com> Date: Thu, 28 Oct 2021 09:56:14 +0300 Subject: [PATCH] Added Japanese translation. --- SpaceCadetPinball/SpaceCadetPinball.rc | Bin 199478 -> 229348 bytes SpaceCadetPinball/gdrv.cpp | 3 +++ SpaceCadetPinball/options.cpp | 1 + SpaceCadetPinball/options.h | 1 + SpaceCadetPinball/resource.h | 2 +- 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/SpaceCadetPinball/SpaceCadetPinball.rc b/SpaceCadetPinball/SpaceCadetPinball.rc index 9ea0d993f2a2dbeef2749bce812cbcb80d26e1bf..8b43c83e858058f6288ffde26429c9b99b447926 100644 GIT binary patch delta 6974 zcma)B4OG-elJ9OtiX$Sm+BAOL!K9VEGB{PbIMI0FcqXLR39|m_s)QGv&V0O<{ zj0u^3p-tYtEcw{1YcycoNHDub!}^u=BJM45BRPW^5i=PU_&_MJmZU_}9o3GB~H=*U|Cn z$a?z3s60|Y9MZmV;^;hLhwpY7JSz6!o$KSM|2yK2=oNB_e{Mjh_y7i{gbdh}p&~ZY z?C^^)z9F7^(o#BwOeXn~1}3ZKjWllzam=bJEvTrSPK^D#oI78Xhel74N5ewo?a|K! zofU70PH|AYCgg>u(p2}iu<4}uT=c{2DRC3{c8Gt6k-QUNY_bK4@#!QRj__xgHUzuG ztj*gTD0&fyjz{L|)+U+}v{#(>?7tnD=l{rt3RSaRW(8&F@*9J)qECQ?Pe6Ba#7kA=M`SmxOCx)N7`%p@rwQ&r^8m@_yP)HtjQPK8~ms_q#YruO}e%?wT( zTuH+fT_y1^%odzJxR5@$VB1V>!5M=K8Ro(^))e}#coR-~TA*@;urwW&vswDp=2bE! zB1Lxl2LbyhqYeVqDe)2)8IJarL@wS(BH$mw9pKlaiV&NAiQNm<^`b0qSZ zLO4M&`4N0RM%Iw^q=u{_E7W%(Y&^|WspDC!>>ZmR!@gY~v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_ zn1=SvlOWyVrz=UbvDEt|oB*9>YB^wTeW&dfdfv>?D2TT=R|c-g1^3X=Yfr zxHbPb%XC@NQO=|A5wc(KW=Hd2plO$AZZxWZsEu;G73jW1dEf_4|68rc8|ox&%Q=4y zp7Btj;n}6Af)$L%4x71wdq%@Yi=YqvirFKuK*WB_uzFpks{5Ly$gB#U5&cJR6Viy@ z{^BouxEN8#{+rn&O?>ni)?NW#X|Lj;p6g^F$lCv5L$Sh(-agx>7y}pMRYrI+Ugtb^ z!dC?2*}}Axhf!)R`>$~i!y}7Eu9caOnMR|oY{hhm?5>#{?y~{~MWWPJB}95ZD(ZW1 zMcrLV6GE?*8Bd<(^wLT?DYU=PclzxmK(%Y|8PvBagvM@i%PN`>WOjo}tfEVXl!U7N7PWGiws0-Ib{F|4#Y+ z!@Xx2nD*6oY~zG$W#5|`bUl^pHbB8(gR2`Rg!ll5G*wS diff --git a/SpaceCadetPinball/gdrv.cpp b/SpaceCadetPinball/gdrv.cpp index 2d5791f..55dec27 100644 --- a/SpaceCadetPinball/gdrv.cpp +++ b/SpaceCadetPinball/gdrv.cpp @@ -455,6 +455,9 @@ void gdrv::grtext_draw_ttext_in_box(LPCWSTR text, int xOff, int yOff, int width, case Languages::SimplifiedChinese: font = "Microsoft YaHei"; break; + case Languages::Japanese: + font = "MS UI Gothic"; + break; default: font = "Arial"; } diff --git a/SpaceCadetPinball/options.cpp b/SpaceCadetPinball/options.cpp index dd55f53..1092ebb 100644 --- a/SpaceCadetPinball/options.cpp +++ b/SpaceCadetPinball/options.cpp @@ -76,6 +76,7 @@ LanguageMenuEntry options::LanguageMenu[] {L"正體字", Languages::TraditionalChinese}, {L"Polski", Languages::Polish}, {L"Deutsch", Languages::German}, + {L"日本", Languages::Japanese}, }; void options::ReadOptions() diff --git a/SpaceCadetPinball/options.h b/SpaceCadetPinball/options.h index 45965cb..aa4a1da 100644 --- a/SpaceCadetPinball/options.h +++ b/SpaceCadetPinball/options.h @@ -10,6 +10,7 @@ enum class Languages SimplifiedChinese = MAKELANGID(LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED), Polish = MAKELANGID(LANG_POLISH, SUBLANG_POLISH_POLAND), German = MAKELANGID(LANG_GERMAN, SUBLANG_GERMAN), + Japanese = MAKELANGID(LANG_JAPANESE, SUBLANG_JAPANESE_JAPAN), }; struct LanguageMenuEntry diff --git a/SpaceCadetPinball/resource.h b/SpaceCadetPinball/resource.h index 5cbd7f3..2141272 100644 --- a/SpaceCadetPinball/resource.h +++ b/SpaceCadetPinball/resource.h @@ -242,7 +242,7 @@ #define DLG_HIGHSCORES_EditName5 605 #define Menu1_AlternativeRender 601 #define Menu1_Language 700 -#define Menu1_LanguageMax 706 +#define Menu1_LanguageMax 707 // Next default values for new objects //