Jump to content

Multi Language System


Recommended Posts

M2 Download Center

Download Here ( Internal )

Spoiler

171641FWISfcE.png.2ab3b1101cf900e51d1a8c

 

 

Hello , i decided to posted multilanguage system (maded for metin2dr)The system allow to change the language of your client,this system was created in 20-30 min .You only need a locale for each language.The implementation of this system is very simple, but i have made a videotutorial also .

  • Love 8
  • Dead 1
Link to post
  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...
  • 5 months later...

Hello guys

how i can put in LoginWindow?
 
i did put this code in locale /ui/loginwondow.py

{"name" : "language_client_btn",
"type" : "button",


"x" : 267,
"y" : SERVER_LIST_HEIGHT-22,

"text" : "Language",

"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
},

 

after this where i must put this code ???

self.GetChild("language_client_btn").SAFE_SetEvent(self.LanguageButton)

def LanguageButton(self):
import multi
MultiDialog = multi.MultiLanguage()
MultiDialog.Show()
self.Close()

 

i did try in root/intrologin.py and dont work , when i click on language dont any happen :(

 

if any can help me , plz make tut

 

thx ,best regards

Link to post

Hello guys

how i can put in LoginWindow?

 

i did put this code in locale /ui/loginwondow.py

{"name" : "language_client_btn",
"type" : "button",


"x" : 267,
"y" : SERVER_LIST_HEIGHT-22,

"text" : "Language",

"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
},

 

after this where i must put this code ???

self.GetChild("language_client_btn").SAFE_SetEvent(self.LanguageButton)

def LanguageButton(self):
import multi
MultiDialog = multi.MultiLanguage()
MultiDialog.Show()
self.Close()

 

i did try in root/intrologin.py and dont work , when i click on language dont any happen :(

 

if any can help me , plz make tut

 

thx ,best regards

 

 

 

also dont work this  in intrologin.py  :(

def __LoadScript(self, fileName):
        import dbg
        try:
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, fileName)
        except:
            import exception
            exception.Abort("LoginWindow.__LoadScript.LoadObject")
        try:
            GetObject=self.GetChild
            self.serverBoard            = GetObject("ServerBoard")
            self.serverList                = GetObject("ServerList")
            self.channelList            = GetObject("ChannelList")
            self.serverSelectButton        = GetObject("ServerSelectButton")
            self.serverExitButton        = GetObject("ServerExitButton")
            self.connectBoard            = GetObject("ConnectBoard")
            self.loginBoard                = GetObject("LoginBoard")
            self.idEditLine                = GetObject("ID_EditLine")
            self.pwdEditLine            = GetObject("Password_EditLine")
            self.serverInfo                = GetObject("ConnectName")
            self.selectConnectButton    = GetObject("SelectConnectButton")
            self.loginButton            = GetObject("LoginButton")
            self.loginExitButton        = GetObject("LoginExitButton")
            self.LanguageButton            = GetObject("language_client_btn")
Link to post

 

Hello guys

how i can put in LoginWindow?

 

i did put this code in locale /ui/loginwondow.py

{"name" : "language_client_btn",
"type" : "button",


"x" : 267,
"y" : SERVER_LIST_HEIGHT-22,

"text" : "Language",

"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
"down_image" : "d:/ymir work/ui/public/large_button_03.sub",
},

 

after this where i must put this code ???

self.GetChild("language_client_btn").SAFE_SetEvent(self.LanguageButton)

def LanguageButton(self):
import multi
MultiDialog = multi.MultiLanguage()
MultiDialog.Show()
self.Close()

 

i did try in root/intrologin.py and dont work , when i click on language dont any happen :(

 

if any can help me , plz make tut

 

thx ,best regards

 

 

 

also dont work this  in intrologin.py  :(

def __LoadScript(self, fileName):
        import dbg
        try:
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, fileName)
        except:
            import exception
            exception.Abort("LoginWindow.__LoadScript.LoadObject")
        try:
            GetObject=self.GetChild
            self.serverBoard            = GetObject("ServerBoard")
            self.serverList                = GetObject("ServerList")
            self.channelList            = GetObject("ChannelList")
            self.serverSelectButton        = GetObject("ServerSelectButton")
            self.serverExitButton        = GetObject("ServerExitButton")
            self.connectBoard            = GetObject("ConnectBoard")
            self.loginBoard                = GetObject("LoginBoard")
            self.idEditLine                = GetObject("ID_EditLine")
            self.pwdEditLine            = GetObject("Password_EditLine")
            self.serverInfo                = GetObject("ConnectName")
            self.selectConnectButton    = GetObject("SelectConnectButton")
            self.loginButton            = GetObject("LoginButton")
            self.loginExitButton        = GetObject("LoginExitButton")
            self.LanguageButton            = GetObject("language_client_btn")

Filnaly did work , but mouse dont work on window

 

plz help :((

 

http://epvpimg.com/5d97c

Link to post

well judging by what i can see when you click on in of those button you do not get anythin and the client return no modul with name multi or something like that or maybe the client crush with that error , but im not sure try posting your syserr after click on the button.

Link to post
  • 3 months later...
  • 1 month later...
  • 5 months later...
  • 2 weeks later...
  • 4 years later...
  • 2 weeks later...


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.