Language libary
#1
here is what i purpose.

a way to localize the language of button text/ labes and dialgos by change using a lang.xml file which contains the string table etc.

with the a small windows editor tool and a script to load and proceess and handle it.

i have no knowlegde of xml and the python libaries associatied with it.
** Team XBMC Tester** XBMC 4 ever

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#2
can you be please more explicit ?
Reply
#3
sort of like a res file. (from m$ visual studios)

firstly you would say the lanaguge eg en, de
then type say a string id then
then text/ etc.

so
<lang=en>
<string id>101</string id>
<string>about</string>
<string id>102</string id>
<string>help</string>
<string id>101</string id>
<string>conencting to net to reterive data.</string>
<lang=de>
<string id>101</string id>
<string>über</string>

in a script you would go or some how return the lang set in xbmc
lang = "en"
then a way to go getsring(lang,id) and it would return the string.
** Team XBMC Tester** XBMC 4 ever

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
have a look in my script : xsp
( http://xstreampack.free.fr )
you will see how i used language pack files
my languages packs are .lang files made of txt and each line is a string with an id : example english.lang
1=hello
2=good bye
3=what's up ?
...
then i open this file, read the lines and split('=') to put the result in a dictionnary var :
print string[1] will result in :
hello
francais.lang :
1=bonjour
2=au revoir
3=quoi de neuf ?

to change language, i browse a special dir where all the .lang files are then you only select the language you want
Reply

Logout Mark Read Team Forum Stats Members Help
Language libary0