Jump to content

[MULTI LANGUAGE SYSTEM]


Recommended Posts

Dear all,

I have some problem with this system:

This system its ok, cuz when i press ESC and system operation i have new line.

This line name's Language and have a Select button.

But when i want use Select do nothing.

This is what i made in Client side:

Pack/root:

uisystemoption.py:

Quote

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

Quote

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

Pack/uiscript:

systemoptiondialog.py:

Quote

{
"name" : "language_client",
"type" : "text",

"x" : 40 + TEXT_TEMPORARY_X,
"y" : 210+2,

"text" : "Language",
},


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

"x" : 110,
"y" : 210,

"text" : "Select",

"default_image" : ROOT_PATH + "small_Button_01.sub",
"over_image" : ROOT_PATH + "small_Button_02.sub",
"down_image" : ROOT_PATH + "small_Button_03.sub",
},

In multi.py i make new Language, Hungary cuz my Server is Hungarian.

Syserr write this:

Quote

1007 14:19:06287 :: CSoundManager::PlayMusic - Failed to load stream sound : BGM/login_window.mp3
1007 14:20:21348 :: CSoundManager::PlayMusic - Failed to load stream sound : BGM/characterselect.mp3
1007 14:20:07262 :: CSoundManager::PlayMusic - Failed to load stream sound : BGM/enter_the_east.mp3
1007 14:21:33784 :: Traceback (most recent call last):

1007 14:21:33785 ::   File "ui.py", line 1016, in CallEvent

1007 14:21:33785 ::   File "ui.py", line 87, in __call__

1007 14:21:33785 ::   File "ui.py", line 69, in __call__

1007 14:21:33785 ::   File "uiSystemOption.py", line 254, in LanguageButton

1007 14:21:33785 ::   File "system.py", line 130, in __pack_import

1007 14:21:33785 ::   File "system.py", line 110, in _process_result

1007 14:21:33785 ::   File "multi.py", line 9, in <module>

1007 14:21:33785 ::   File "system.py", line 137, in __pack_import

1007 14:21:33785 ::   File "L:\work\Python-2.7.3\lib\locale.py", line 15, in <module>

1007 14:21:33785 ::   File "system.py", line 137, in __pack_import

1007 14:21:33785 ::   File "C:\Users\YMIR\Downloads\Python-2.7.3\Python-2.7.3\lib\encodings\__init__.py", line 32, in <module>
1007 14:21:35452 :: Traceback (most recent call last):

1007 14:21:35452 ::   File "ui.py", line 1016, in CallEvent

1007 14:21:35452 ::   File "ui.py", line 87, in __call__

1007 14:21:35452 ::   File "ui.py", line 69, in __call__

1007 14:21:35452 ::   File "uiSystemOption.py", line 255, in LanguageButton

1007 14:21:35452 :: AttributeError
1007 14:21:35452 :: :
1007 14:21:35452 :: 'module' object has no attribute 'MultiLanguage'
1007 14:21:35452 ::

1007 14:21:35561 :: Traceback (most recent call last):

1007 14:21:35561 ::   File "ui.py", line 1016, in CallEvent

1007 14:21:35561 ::   File "ui.py", line 87, in __call__

1007 14:21:35561 ::   File "ui.py", line 69, in __call__

1007 14:21:35561 ::   File "uiSystemOption.py", line 255, in LanguageButton

1007 14:21:35561 :: AttributeError
1007 14:21:35561 :: :
1007 14:21:35561 :: 'module' object has no attribute 'MultiLanguage'
1007 14:21:35561 ::

Somebody have some idea what can i do with this?

In locale cfg have only this:

Quote

10021 1250 hu

If somebody can help me i will said a big Thank!

 

Have a good day!

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.