Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Mini-Tutorial] Partially add Lang change without Restart

Joined
Aug 14, 2009
Messages
2,304
Reaction score
1,188
Search:
Code:
g_user_language->SetString(newLang);

add after it this:
Code:
gLangMngr.Destroy();

	if(strcmp(newLang, "english")==0)
		gLangMngr.Init(LANG_EN);
	else if(strcmp(newLang, "french")==0)
		gLangMngr.Init(LANG_FR);
	else if(strcmp(newLang, "german")==0)
		gLangMngr.Init(LANG_DE);
	else if(strcmp(newLang, "italian")==0)
		gLangMngr.Init(LANG_IT);
	else if(strcmp(newLang, "spanish")==0)
		gLangMngr.Init(LANG_SP);
	else if(strcmp(newLang, "russian")==0)
		gLangMngr.Init(LANG_RU);
	else // default to english, should not happen
	{
		r3d_assert(false);
		gLangMngr.Init(LANG_EN);
	}
gfxMovie.Invoke("_root.api.setLanguage", newLang);

Example :):
klXFWh8 - [Mini-Tutorial] Partially add Lang change without Restart - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Initiate Mage
Joined
Dec 15, 2013
Messages
10
Reaction score
2
Hello GigaToni I have a doubt
GigaToni - [Mini-Tutorial] Partially add Lang change without Restart - RaGEZONE Forums
I delete that Code and put your Code ? and then comment on the code and put yours?


 
Last edited:
Junior Spellweaver
Joined
Apr 5, 2012
Messages
148
Reaction score
5
nice tut sir!, some idea how remove the windows saying "you have to reset the game to get the changes" ?
 
☆Dying Dawn☆
Joined
Jan 30, 2012
Messages
971
Reaction score
727
nice tut sir!, some idea how remove the windows saying "you have to reset the game to get the changes" ?
Search for
Code:
	Scaleform::GFx::Value var[2];
	var[0].SetStringW(gLangMngr.getString("NewLanguageSetAfterRestart"));
	var[1].SetBoolean(true);
	pMovie->Invoke("_root.api.showInfoMsg", var, 2);

replace with
Code:
	//Scaleform::GFx::Value var[2];
	//var[0].SetStringW(gLangMngr.getString("NewLanguageSetAfterRestart"));
	//var[1].SetBoolean(true);
	//pMovie->Invoke("_root.api.showInfoMsg", var, 2);
 
Back
Top