2009-06-16, 23:45
This function inside my script will not working ...
# subclassing getLocalizedString
__language__ = xbmc.Language(os.getcwd()).getLocalizedString
and later inside the code I do :
print __language__ ( 32001 )
there 2 language directorys inside my getwd
resources/language/English
and
resources/language/German
Both directory contains a valid strings.xml file ....
I just show a few lines from the first (english)
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
<string id="32001">DVD-RIPPER 0.4B</string>
<string id="32001">Please select the device for dvd</string>
<string id="32002">Where should the rip be saved ?</string>
<string id="32003">Edit the name of including the file extension .iso</string>
<string id="32004">Would you like to execute the command ?</string>
<string id="32005">command : </string>
What do i wrong ?? Has the the file to be on other directory ?
All strings I receive have size of 0
Greetings from switzerland
Hans
# subclassing getLocalizedString
__language__ = xbmc.Language(os.getcwd()).getLocalizedString
and later inside the code I do :
print __language__ ( 32001 )
there 2 language directorys inside my getwd
resources/language/English
and
resources/language/German
Both directory contains a valid strings.xml file ....
I just show a few lines from the first (english)
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
<string id="32001">DVD-RIPPER 0.4B</string>
<string id="32001">Please select the device for dvd</string>
<string id="32002">Where should the rip be saved ?</string>
<string id="32003">Edit the name of including the file extension .iso</string>
<string id="32004">Would you like to execute the command ?</string>
<string id="32005">command : </string>
What do i wrong ?? Has the the file to be on other directory ?
All strings I receive have size of 0
Greetings from switzerland
Hans