Accessing Language Strings

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
madtw Offline
Senior Member
Posts: 174
Joined: Mar 2004
Reputation: 0
Post: #1
is there a way to retrieve the language strings from xbmc? what would be nice is to be able to do something like:

Quote:xbmc.getlangstring( 375 )

and have it return the string from the strings.xml file for the language currently used by xbmc.

worst case, i would also settle for a xbmc.getlanguage() function that would return the current language selected and then i can parse the strings.xml file to find the appropriate strings. i think my first suggestion would be better since xbmc must have the file loaded already.

does something like this already exist? i didn't see it in the python_readme.txt file... i'd like to make my scripts language independent if possible.
find quote
alx5962 Offline
Senior Member
Posts: 174
Joined: Jan 2004
Reputation: 0
Location: Lille, FRANCE
Post: #2
or you can try to retrieve infos from the save data of xbmc in tdata
find quote
darkie Offline
Team-XBMC Developer
Posts: 529
Joined: Sep 2003
Reputation: 0
Post: #3
just added xbmc.getlocalizedstring to cvs

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: badge.gif]
find quote
madtw Offline
Senior Member
Posts: 174
Joined: Mar 2004
Reputation: 0
Post: #4
darkie: you rock! time to wait for a new build from cvs. Smile
find quote