Jump to content

Multi Language System


Recommended Posts

M2 Download Center

This is the hidden content, please
( 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 .

  • Metin2 Dev 31
  • Not Good 1
  • Think 2
  • Scream 1
  • Good 14
  • Love 2
  • Love 35
Link to comment
Share on other sites

  • 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 comment
Share on other sites

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 comment
Share on other sites

 

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 :((

 

https://metin2.download/picture/K2kUXHQaAf78LCvv9qurD9mn2j4lUQE6/.jpg

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
  • 5 months later...
  • 2 weeks later...
  • 4 years later...
  • Management
1 hour ago, Astarosa said:

Dead Download Link

 

This is the title of the topic...

Link to comment
Share on other sites

  • 2 weeks later...

Announcements



×
×
  • 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.