System Multi-Language

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    I'm retired, I'm already jorklenis2 is offline
    MemberRank
    Oct 2011 Join Date
    PanamáLocation
    879Posts

    note System Multi-Language

    Well here I bring the multilanguage system that it serves, used to exact customer who does not understand Spanish, Portuguese and English language, this will be very useful and I ami was very easy to "fix".

    Example Image:



    1. First of all you are going to download the font I uploaded zipped file named "Multi-Language Source By Jorklenis2 and MAIET.zip" is below and follow the "Readme.txt" inside the folder, replace the files zip.

    Source Multi-Lenguage By Jorklenis2 and MAIET.zip

    2. Edit the following are:

    ZConfiguration.cpp

    Go line 1 and replace to 48
    Code:
    #include "stdafx.h"
    //By Jorklenis2 and MAET
    #include "ZConfiguration.h"
    #include "Mint.h"
    #include "ZInterface.h"
    //#include "ZGameInterface.h"
    #include "ZLocatorList.h"
    #include "ZGameTypeList.h"
    #include "ZLocale.h"
    
    ZConfiguration	g_Configuration;
    ZConfiguration* ZGetConfiguration()		{ return &g_Configuration; }
    
    #ifdef LOCALE_BRAZIL
    	LANGID LangID = LANG_PORTUGUESE;		/* Brazil */
    #elif LOCALE_JAPAN
    	LangID = LANG_JAPANESE;					/* Japanese */
    #elif  LOCALE_US
    	LangID = LANG_ENGLISH;					/* International */
    #elif LOCALE_KOREAN
    	LangID = LANG_KOREAN;			        /* Korean */
    #elif  LOCALE_INDIA
    	LangID = LANG_ENGLISH;					/* India */
    #endif
    
    
    
    unsigned int ZLanguageSetting_forNHNUSA::m_idLang = 0;
    
    void ZLanguageSetting_forNHNUSA::SetLanguageIndexFromCmdLineStr(const char* cmdline)
    {
    	// -¾ð¾îº° id´Â ÇϵåÄÚµù;-
    	// xml\usa\locale.xml ¿¡ ÀÖ´Â ¼±Åð¡´ÉÇÑ ¾ð¾î ¸ñ·Ï¿£ ´ÙÀ½°ú °°Àº À妽º°¡ ÁöÁ¤µÇ¾î ÀÖ´Ù
    	const unsigned int id_USA = 0;
    	const unsigned int id_POR = 1;
    	const unsigned int id_SPA = 2;
    
    	m_idLang = id_USA;
    
    	if (NULL == cmdline) return;
    
    	if (NULL!= strstr(cmdline, "&u100e:2=en"))		m_idLang = id_USA;
    	else if (NULL!= strstr(cmdline, "&u100e:2=po")) m_idLang = id_POR;
    	else if (NULL!= strstr(cmdline, "&u100e:2=sp")) m_idLang = id_SPA;
    }
    
    ZLanguageSetting_forNHNUSA g_LanguageSettingForNHNUSA;
    ZLanguageSetting_forNHNUSA* ZGetLanguageSetting_forNHNUSA() { return &g_LanguageSettingForNHNUSA; }
    Search "aRootElement.AppendText("\n");" y reemplace to all these code.

    Code:
     
    	aRootElement.AppendText("\n");
    
    
    #ifdef LOCALE_BRAZIL
    	LANGID LangID = LANG_PORTUGUESE;		/* Brazil */
    #elif LOCALE_JAPAN
    	LangID = LANG_JAPANESE;					/* Japanese */
    #elif  LOCALE_US
    	LangID = LANG_ENGLISH;					/* International */
    #elif LOCALE_KOREAN
    	LangID = LANG_KOREAN;			        /* Korean */
    #elif  LOCALE_INDIA
    	LangID = LANG_ENGLISH;					/* India */
    #endif
    
    	return xmlConfig.SaveToFile(szFileName);
    }
    2. Edit the following are:

    stdafx.h

    Go line 44 to 75 and reemplace all the code of here.

    Code:
    #define _QUEST		// Äù½ºÆ® °³¹ß¿ë µðÆÄÀÎ
    
    #define _QUEST_ITEM	// Äù½ºÆ® ¾ÆÀÌÅÛ °³¹ß¿ë. //<- ÇöÀç ÀÌ°É undefÇÑ´Ù°í Äù½ºÆ®¾ÆÀÌÅÛ Äڵ带 Á¦¿ÜÇÒ ¼ö´Â ¾ø°Ô µÇ¾ú½À´Ï´Ù. (°¨½ÎÁö ¾ÊÀº ºÎºÐÀÌ Á» ÀÖÀ½)
    
    #define _MONSTER_BIBLE 
    
    #define MULTIPLE_INSTANCES
    
    //#define _MEF
    
    //#define _ADMIN_HALT
    
    #define _GAMBLEITEM_TEST_LOG	// °×ºí ¾ÆÀÌÅÛÀÌ ¹®Á¦ÀÖÀ»¶§ È®ÀÎÀ» À§ÇØ(Æò¼Ò¿¡´Â ÁÖ¼®Ã³¸®)
    
    //#define _REPLAY_TEST_LOG // ¸®Ç÷¹À̽à Ư¼ö¾ÆÀÌÅÛ »ç¿ë È®ÀÎÀ» À§ÇØ(Æò¼Ò´Â ÁÖ¼®À¸·Î)
    
    //#define _LOCATOR
    
    if defined(_DEBUG) || defined(_RELEASE) || defined(LOCALE_KOREA) || defined(LOCALE_NHNUSA) || defined(LOCALE_JAPAN) || defined(LOCALE_BRAZIL)
    	#define _MULTILANGUAGE	// ´ÙÁß¾ð¾î Áö¿ø ¿©ºÎ
    #endif
    
    #if defined(_DEBUG) || defined(_RELEASE) || defined(LOCALE_KOREA) || defined(LOCALE_NHNUSA) || defined(LOCALE_JAPAN) || defined(LOCALE_BRAZIL)
    	#define _DUELTOURNAMENT	// µà¾óÅä³Ê¸ÕÆ® Áö¿ø ¿©ºÎ
    #endif
    
    
    #ifdef _DEBUG
    // #define _XTRAP // Å×½ºÆ® Çϱâ À§Çؼ­. by sunge
    // #define _HSHIELD // Å×½ºÆ® Çϱâ À§Çؼ­. by sunge
    // #define _XTRAP
    #endif
    3. Edit your system.mrs and edit your locale.xml
    put this

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <XML>
    	<LOCALE>
     		<COUNTRY>BRZ</COUNTRY>
    		<LANGUAGE>BRZ</LANGUAGE>	<!-- 아래의 SELECTABLE_LANGUAGES:English -->
    		<MAXPLAYERS>64</MAXPLAYERS>
    	<SELECTABLE_LANGUAGES>		<!--  Idioma Selecionado e automatico es: ZLanguageSetting_forNHNUSA::SetLanguageIndexFromCmdLineStrByJorklenis2() -->
    	        <LANGUAGE id="USA" name="English" />
    			<LANGUAGE id="POR" name="Portugues" />
    			<LANGUAGE id="SPA" name="Español" />
    		</SELECTABLE_LANGUAGES> 
    	</LOCALE>
    </XML>
    and remember also in your system.mrs to create 2 folders, a name it "SPA" and the other "POR" which means, "BY" is portuguese, "SPA" Spanish .

    within those folder you add 4 xml files are: cserror.xml, messages.xml, strings.xml and tips.xml

    below should translate into Spanish 4 files and folders portuguese to correta it should be, here is translating the xml files.

    4. and finally add this code to your "Interface/Option.xml", compile all the interface and system.mrs and its executable built by the multilanguage system and be happy.

    Code:
    	<BUTTON item="BoostOption" parent="EtcOptionGroup">
    		<BUTTONLOOK>Custom1ButtonLook</BUTTONLOOK>
    		<PUSHBUTTON/>
    		<BOUNDS>
    			<X>229</X>
    			<Y>30</Y>
    			<W>24</W>
    			<H>24</H>
    		</BOUNDS>
    		<ALIGN>
    			<HALIGN>right</HALIGN>
    		</ALIGN>
    	</BUTTON>
    	<LABEL item="LanguageSelectLabel" parent="EtcOptionGroup">
    		<FONT>FONTa9</FONT>
    		<TEXTCOLOR>
    			<R>205</R>
    			<G>205</G>
    			<B>205</B>
    		</TEXTCOLOR>
    		<BOUNDS>
    			<X>2</X>1
    			
    			<Y>60</Y>
    			<W>300</W>
    			<H>24</H>
    		</BOUNDS>
    		<TEXT>STR:UI_OPTION_LANGUAGE_SELECT</TEXT> <!-- 언어 선택 지 -->
    	</LABEL>
    	<COMBOBOX item="LanguageSelectComboBox" parent="EtcOptionGroup">
    		<LISTBOXLOOK>CustomListBoxLook</LISTBOXLOOK>
    		<BUTTONLOOK>ListBoxButtonLook</BUTTONLOOK>
    		<FONT>FONTa9</FONT>
    		<TEXTCOLOR>
    			<R>205</R>
    			<G>205</G>
    			<B>205</B>
    		</TEXTCOLOR>
    		<TEXTALIGN>
    			<VALIGN>center</VALIGN>
    			<HALIGN>left</HALIGN>
    		</TEXTALIGN>
    		<BOUNDS>
    			<X>105</X>
    			<Y>60</Y>
    			<W>90</W>
    			<H>24</H>
    		</BOUNDS>
    		<ALIGN>
    			<HALIGN>right</HALIGN>
    		</ALIGN>
    		<DROPSIZE>80</DROPSIZE>
    		<COMBOTYPE>1</COMBOTYPE>
    	</COMBOBOX>
    NOTE: Actually these files include any source that gunz, because that's what the MAIET release, this has not been created by me only repaired only make it work, dare not support i'm busy.


  2. #2
    Account Upgraded | Title Enabled! medotarek is offline
    MemberRank
    Apr 2012 Join Date
    Egypt/RageZoneLocation
    615Posts

    Re: System Multi-Language

    Code:
    #if defined(LOCALE_NHNUSA)|| defined(LOCALE_BRAZIL) || defined(LOCALE_KOREA)
    	#define _MULTILANGUAGE	// ´ÙÁß¾ð¾î Áö¿ø ¿©ºÎ
    #endif
    no need to all from that -_-

  3. #3
    I'm retired, I'm already jorklenis2 is offline
    MemberRank
    Oct 2011 Join Date
    PanamáLocation
    879Posts

    Re: System Multi-Language

    Quote Originally Posted by medotarek View Post
    Code:
    #if defined(LOCALE_NHNUSA)|| defined(LOCALE_BRAZIL) || defined(LOCALE_KOREA)
    	#define _MULTILANGUAGE	// ´ÙÁß¾ð¾î Áö¿ø ¿©ºÎ
    #endif
    no need to all from that -_-
    xD, ok no, it can also be:

    Code:
    #if defined(LOCALE_BRAZIL)|| // You can add what you compile.
    #endif

  4. #4
    Account Upgraded | Title Enabled! medotarek is offline
    MemberRank
    Apr 2012 Join Date
    Egypt/RageZoneLocation
    615Posts

    Re: System Multi-Language

    Quote Originally Posted by jorklenis2 View Post
    xD, ok no, it can also be:

    Code:
    #if defined(LOCALE_BRAZIL)|| // You can add what you compile.
    #endif
    lol what's differense ? xd

  5. #5
    TBF Guru jetman82 is offline
    MemberRank
    Jan 2009 Join Date
    631Posts

    Re: System Multi-Language

    Which filter do they go under? or does it not matter.

  6. #6
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: System Multi-Language

    You removed useful lines from the original code, Anyway good job

    There is hot fix that may people want it:
    - "The bug" -> To change language the user must be logged in to user so if you will change language on Login where server connection, it will enter you to bugged lobby. (There is server that have options button on login server so it's useful for them).

    So this is the fix-> main.cpp

    *m_sbRemainClientConnectionForResetApp if it's true, After the language change it will direct you lobby even if you are not connected to your account.

    Search for:
    ZGetGameInterface()->m_sbRemainClientConnectionForResetApp = true;
    And change it to:

    ZGetGameInterface()->m_sbRemainClientConnectionForResetApp = false;
    Or just remove this line from main.cpp

  7. #7
    Gregon13 OldSchoolGZ is offline
    MemberRank
    Jan 2012 Join Date
    CanadaLocation
    244Posts

    Re: System Multi-Language

    Quote Originally Posted by sahar042 View Post
    You removed useful lines from the original code, Anyway good job

    There is hot fix that may people want it:
    - "The bug" -> To change language the user must be logged in to user so if you will change language on Login where server connection, it will enter you to bugged lobby. (There is server that have options button on login server so it's useful for them).

    So this is the fix-> main.cpp

    *m_sbRemainClientConnectionForResetApp if it's true, After the language change it will direct you lobby even if you are not connected to your account.

    Search for:


    And change it to:



    Or just remove this line from main.cpp
    Only thing worth mentioning, OP went overboard GJ to the both of you either way

  8. #8
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: System Multi-Language

    i wish you can send me your source, it used to be mine. ik from the FPS Bug lol

  9. #9
    I'm retired, I'm already jorklenis2 is offline
    MemberRank
    Oct 2011 Join Date
    PanamáLocation
    879Posts

    Re: System Multi-Language

    I think I see another mistake but failed to solve it, edit controls, video, ect in the game and everything looks in restear "??????", I say it's in the config.xml.

  10. #10
    TBF Guru jetman82 is offline
    MemberRank
    Jan 2009 Join Date
    631Posts

    Re: System Multi-Language

    Do you have the source set to read the childcontents for it?

  11. #11
    I'm retired, I'm already jorklenis2 is offline
    MemberRank
    Oct 2011 Join Date
    PanamáLocation
    879Posts

    Re: System Multi-Language

    Quote Originally Posted by jetman82 View Post
    Do you have the source set to read the childcontents for it?
    yhea, is correct.

  12. #12
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Re: System Multi-Language

    Good release

  13. #13
    Member Sahar Tales Gun is offline
    MemberRank
    Aug 2014 Join Date
    61Posts

    Re: System Multi-Language

    Gunz error LNK2019: unresolved external symbol "public: __thiscall MMessageNameGroup::MMessageNameGroup(void)" (??0MMessageNameGroup@@QAE@XZ) referenced in function "public: __thiscall ZMessageNameGroup::ZMessageNameGroup(void)" (??0ZMessageNameGroup@@QAE@XZ)
    Gunz error LNK2019: unresolved external symbol "public: virtual __thiscall MMessageNameGroup::~MMessageNameGroup(void)" (??1MMessageNameGroup@@UAE@XZ) referenced in function "public: virtual __thiscall ZMessageNameGroup::~ZMessageNameGroup(void)" (??1ZMessageNameGroup@@UAE@XZ)
    Gunz error LNK2001: unresolved external symbol "public: virtual void __thiscall MLanguageConf::Release(void)" (?Release@MLanguageConf@@UAEXXZ)
    Gunz error LNK2019: unresolved external symbol "public: __thiscall MLanguageConf::MLanguageConf(void)" (??0MLanguageConf@@QAE@XZ) referenced in function "public: __thiscall ZLanguageConf::ZLanguageConf(void)" (??0ZLanguageConf@@QAE@XZ)
    Gunz error LNK2019: unresolved external symbol "public: virtual __thiscall MLanguageConf::~MLanguageConf(void)" (??1MLanguageConf@@UAE@XZ) referenced in function "public: virtual __thiscall ZLanguageConf::~ZLanguageConf(void)" (??1ZLanguageConf@@UAE@XZ)
    Gunz error LNK2001: unresolved external symbol "private: virtual bool __thiscall MMessengerManager::LoadFile(class MMessageNameGroup *,class MZFileSystem *)" (?LoadFile@MMessengerManager@@EAE_NPAVMMessageNameGroup@@PAVMZFileSystem@@@Z)
    Gunz error LNK2019: unresolved external symbol "public: __thiscall MMessengerManager::MMessengerManager(void)" (??0MMessengerManager@@QAE@XZ) referenced in function "public: __thiscall ZMessengerManager::ZMessengerManager(void)" (??0ZMessengerManager@@QAE@XZ)
    Gunz error LNK2019: unresolved external symbol "public: virtual __thiscall MMessengerManager::~MMessengerManager(void)" (??1MMessengerManager@@UAE@XZ) referenced in function "public: virtual __thiscall ZMessengerManager::~ZMessengerManager(void)" (??1ZMessengerManager@@UAE@XZ)
    Gunz error LNK2019: unresolved external symbol "public: void __thiscall MMessenger::Release(void)" (?Release@MMessenger@@QAEXXZ) referenced in function "private: virtual void __thiscall ZMessengerManager::ReleaseSubTask(void)" (?ReleaseSubTask@ZMessengerManager@@EAEXXZ)
    Gunz error LNK2019: unresolved external symbol "public: bool __thiscall MMessenger::InitializeMessage(char const *,class MZFileSystem *)" (?InitializeMessage@MMessenger@@QAE_NPBDPAVMZFileSystem@@@Z) referenced in function "private: virtual bool __thiscall ZMessengerManager::AllocateSubTask(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class MZFileSystem *)" (?AllocateSubTask@ZMessengerManager@@EAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0PAVMZFileSystem@@@Z)
    Gunz error LNK2019: unresolved external symbol "public: __thiscall MMessenger::MMessenger(char const *,char const *)" (??0MMessenger@@QAE@PBD0@Z) referenced in function "private: virtual bool __thiscall ZMessengerManager::AllocateSubTask(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class MZFileSystem *)" (?AllocateSubTask@ZMessengerManager@@EAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0PAVMZFileSystem@@@Z)
    Gunz fatal error LNK1120: 11 unresolved externals




    help :| ?

    - - - Updated - - -


  14. #14
    I'm retired, I'm already jorklenis2 is offline
    MemberRank
    Oct 2011 Join Date
    PanamáLocation
    879Posts

    Re: System Multi-Language

    Quote Originally Posted by Sahar Tales Gun View Post
    Gunz error LNK2019: unresolved external symbol "public: __thiscall MMessageNameGroup::MMessageNameGroup(void)" (??0MMessageNameGroup@@QAE@XZ) referenced in function "public: __thiscall ZMessageNameGroup::ZMessageNameGroup(void)" (??0ZMessageNameGroup@@QAE@XZ)
    Gunz error LNK2019: unresolved external symbol "public: virtual __thiscall MMessageNameGroup::~MMessageNameGroup(void)" (??1MMessageNameGroup@@UAE@XZ) referenced in function "public: virtual __thiscall ZMessageNameGroup::~ZMessageNameGroup(void)" (??1ZMessageNameGroup@@UAE@XZ)
    Gunz error LNK2001: unresolved external symbol "public: virtual void __thiscall MLanguageConf::Release(void)" (?Release@MLanguageConf@@UAEXXZ)
    Gunz error LNK2019: unresolved external symbol "public: __thiscall MLanguageConf::MLanguageConf(void)" (??0MLanguageConf@@QAE@XZ) referenced in function "public: __thiscall ZLanguageConf::ZLanguageConf(void)" (??0ZLanguageConf@@QAE@XZ)
    Gunz error LNK2019: unresolved external symbol "public: virtual __thiscall MLanguageConf::~MLanguageConf(void)" (??1MLanguageConf@@UAE@XZ) referenced in function "public: virtual __thiscall ZLanguageConf::~ZLanguageConf(void)" (??1ZLanguageConf@@UAE@XZ)
    Gunz error LNK2001: unresolved external symbol "private: virtual bool __thiscall MMessengerManager::LoadFile(class MMessageNameGroup *,class MZFileSystem *)" (?LoadFile@MMessengerManager@@EAE_NPAVMMessageNameGroup@@PAVMZFileSystem@@@Z)
    Gunz error LNK2019: unresolved external symbol "public: __thiscall MMessengerManager::MMessengerManager(void)" (??0MMessengerManager@@QAE@XZ) referenced in function "public: __thiscall ZMessengerManager::ZMessengerManager(void)" (??0ZMessengerManager@@QAE@XZ)
    Gunz error LNK2019: unresolved external symbol "public: virtual __thiscall MMessengerManager::~MMessengerManager(void)" (??1MMessengerManager@@UAE@XZ) referenced in function "public: virtual __thiscall ZMessengerManager::~ZMessengerManager(void)" (??1ZMessengerManager@@UAE@XZ)
    Gunz error LNK2019: unresolved external symbol "public: void __thiscall MMessenger::Release(void)" (?Release@MMessenger@@QAEXXZ) referenced in function "private: virtual void __thiscall ZMessengerManager::ReleaseSubTask(void)" (?ReleaseSubTask@ZMessengerManager@@EAEXXZ)
    Gunz error LNK2019: unresolved external symbol "public: bool __thiscall MMessenger::InitializeMessage(char const *,class MZFileSystem *)" (?InitializeMessage@MMessenger@@QAE_NPBDPAVMZFileSystem@@@Z) referenced in function "private: virtual bool __thiscall ZMessengerManager::AllocateSubTask(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class MZFileSystem *)" (?AllocateSubTask@ZMessengerManager@@EAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0PAVMZFileSystem@@@Z)
    Gunz error LNK2019: unresolved external symbol "public: __thiscall MMessenger::MMessenger(char const *,char const *)" (??0MMessenger@@QAE@PBD0@Z) referenced in function "private: virtual bool __thiscall ZMessengerManager::AllocateSubTask(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class MZFileSystem *)" (?AllocateSubTask@ZMessengerManager@@EAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0PAVMZFileSystem@@@Z)
    Gunz fatal error LNK1120: 11 unresolved externals




    help :| ?

    - - - Updated - - -

    Add this code to your project "CSCommon.vcpro"

    <File
    RelativePath=".\Include\MMessenger.h">
    </File>

    and rebuild....

  15. #15
    Member Sahar Tales Gun is offline
    MemberRank
    Aug 2014 Join Date
    61Posts

    Re: System Multi-Language

    nvm the another problem fix

    help me with the xmls plz ?
    Last edited by Sahar Tales Gun; 17-09-14 at 02:38 PM.



Page 1 of 2 12 LastLast

Advertisement