From 955c2a8fd9b5613c7ece6352afb08acc754d8b20 Mon Sep 17 00:00:00 2001 From: Exynox Date: Sat, 14 Dec 2024 21:53:05 +0200 Subject: [PATCH] Added Unicode support, Romanian translation --- src/Config/MainDialog.cpp | 56 ++++++++++++++++++++++++++++++++ src/Config/Metin2Config.vcxproj | 6 ++-- src/Config/ui.rc | Bin 9521 -> 29002 bytes 3 files changed, 59 insertions(+), 3 deletions(-) diff --git a/src/Config/MainDialog.cpp b/src/Config/MainDialog.cpp index 9e54319f..e8bbcb14 100644 --- a/src/Config/MainDialog.cpp +++ b/src/Config/MainDialog.cpp @@ -229,10 +229,66 @@ void CMainDialog::InitDefaultConfig() auto lang = PRIMARYLANGID(LANGIDFROMLCID(GetUserDefaultLCID())); switch (lang) { + case LANG_CZECH: + m_stConfig.language = kLanguageCzech; + break; + + case LANG_DANISH: + m_stConfig.language = kLanguageDanish; + break; + + case LANG_DUTCH: + m_stConfig.language = kLanguageDutch; + break; + + case LANG_ENGLISH: + m_stConfig.language = kLanguageEnglish; + break; + + case LANG_FRENCH: + m_stConfig.language = kLanguageFrench; + break; + case LANG_GERMAN: m_stConfig.language = kLanguageGerman; break; + case LANG_GREEK: + m_stConfig.language = kLanguageGreek; + break; + + case LANG_HUNGARIAN: + m_stConfig.language = kLanguageHungarian; + break; + + case LANG_ITALIAN: + m_stConfig.language = kLanguageItalian; + break; + + case LANG_POLISH: + m_stConfig.language = kLanguagePolish; + break; + + case LANG_PORTUGUESE: + m_stConfig.language = kLanguagePortuguese; + break; + + case LANG_ROMANIAN: + m_stConfig.language = kLanguageRomanian; + break; + + case LANG_RUSSIAN: + m_stConfig.language = kLanguageRussian; + break; + + case LANG_SPANISH: + m_stConfig.language = kLanguageSpanish; + break; + + case LANG_TURKISH: + m_stConfig.language = kLanguageTurkish; + break; + default: m_stConfig.language = kLanguageEnglish; break; diff --git a/src/Config/Metin2Config.vcxproj b/src/Config/Metin2Config.vcxproj index 9c58713e..a889feb4 100644 --- a/src/Config/Metin2Config.vcxproj +++ b/src/Config/Metin2Config.vcxproj @@ -31,18 +31,18 @@ Application v143 false - MultiByte + Unicode Application v143 false - MultiByte + Unicode Application false - MultiByte + Unicode v143 diff --git a/src/Config/ui.rc b/src/Config/ui.rc index a08cdd906c723ad27c8c4a7cf2cc3a4ba0bb8522..7b44bf03cc0bc6cb96d7c71d35f041fa6275b323 100644 GIT binary patch literal 29002 zcmeI5OK%*<5y!{&EkHg%;LCb-iDAYzMamB#2tX|#Vnk95ACesyASjZeXj7!JB<)D> zN6jh7*+-v(B>!L67N=)-dLAo^kBC?-XLn|{y6e%^)m8s#{`WthWuIl8Y&ko~cCvnU zoSo?XEIZY?$2xbCon_nEp}zI9PxR_!``KQ0q<3HEPj%eYxxSA4?o6L{^tq#NP&>$8 z>Yh)t-)6s2E1!kq9i2VW)kEFA8}9vM_ER{wD+)j9m!D?Ovp*&7?T)m?-QDvRXyy97 zoc~TXC*JqPJCc1~BDs^m3HKwXXS(B~Af;zPLP-1f*-SQ{eUoivYofNEJ<2xqsi)6d z*=)9?*T?$R&w6!|zuXXwwQNDZn9El5`;SAbOFFxvvzt0D=t@Vl?2O&Fpzn)n@j*7B zYwNo2essr*ezBQti0+Ke8V4_>t!?r9LVr8b`ElscmaKxad*bDb>|XY{UXz19xTLP1 z4(XBi&W{~Q{6M@MinIN~Rqj~S)iud@SrS>4WaooymV;zxbp|;-3X=Xt()m0{)&Abi zzLI2+@}!Pm2FmM_?YH^`dYP5la#hz?rLEP$ zuk7sOpxwowRa(jK?}^r`+E@&2!P}fHFz%62;OthocU3LH^Q?aHB=o;XqoXm~lhlr6 z;|G!*o&$e!5YE|n&N=%!$f7IC_!Q*bjilw0`@5t?-|nk-3!!zsbq23lot+O{W5M@> zt!@NwOwS}gpf@ObIXs;)JmIGJioH!QN1 z@v`mYH6P}!ze!rmo;#J=F=P)mhpmx;*(a-wewZ5f-k~f zIBjQj*7qW3#c?^Mmc9<-a#|eV@!}RPN`|>SuS$-S;t^jyt|Zq(%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