XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Plugin/Script (Python) Development

Plugin/Script (Python) Development Developers forum for XBMC Python Plugins/Scripts. Scripters/coders only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2004-04-05, 10:38   #1
madtw
Senior Member
 
Join Date: Mar 2004
Posts: 174
madtw is on a distinguished road
Default

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.
madtw is offline   Reply With Quote
Old 2004-04-05, 16:02   #2
alx5962
Senior Member
 
Join Date: Jan 2004
Posts: 174
alx5962 is on a distinguished road
Default

or you can try to retrieve infos from the save data of xbmc in tdata
alx5962 is offline   Reply With Quote
Old 2004-04-05, 21:07   #3
darkie
Team-XBMC Developer
 
Join Date: Sep 2003
Posts: 530
darkie is on a distinguished road
Default

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.


darkie is offline   Reply With Quote
Old 2004-04-07, 04:52   #4
madtw
Senior Member
 
Join Date: Mar 2004
Posts: 174
madtw is on a distinguished road
Default

darkie: you rock! time to wait for a new build from cvs.
madtw is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strings not affected by language file. hugener XBMC for Xbox Specific Support 7 2005-11-17 01:24
Xbmc fatal error: q:\language\english\strings.xml, Guyton XBMC for Xbox Specific Support 1 2005-06-13 05:08
Del key when editing strings jonathonsunshine XBMC Feature Suggestions 0 1970-01-01 02:00


All times are GMT +2. The time now is 10:22.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project