Jump to content

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 64
  • Not Good 1
  • Sad 1
  • Think 3
  • Scream 1
  • Good 25
  • muscle 2
  • Love 4
  • Love 48
Link to comment
https://metin2.dev/topic/2794-multi-language-system/
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
https://metin2.dev/topic/2794-multi-language-system/#findComment-41709
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
https://metin2.dev/topic/2794-multi-language-system/#findComment-41710
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
https://metin2.dev/topic/2794-multi-language-system/#findComment-41712
Share on other sites

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 comment
https://metin2.dev/topic/2794-multi-language-system/#findComment-41721
Share on other sites

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

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.