I am looking to do the following.
$LOCALIZE[Window.Property(XspLauncher.1.StringId) in a skin, but doesn't work. where i have .py script settings some stringIDs and want to localize them in the skin
here the .py
def _fetch_xsp_info( self ):
myfile = csv.reader(open('xsp.csv'))
for count, row in enumerate( myfile ):
# set properties
count = count + 1
self.WINDOW.setProperty( "XspLauncher.%d.StringId" % ( count ), row[ 0 ] )
self.WINDOW.setProperty( "XspLauncher.%d.XspPath" % ( count ), row[ 1 ] )
where the xsp.csv looks like this.
31600,video/eng.xsp
31601,video/hin.xsp
31602,video/tam.xsp
Localizing lables from a Window.Property
vajonam
Donor Joined: Sep 2008 Reputation: 0 Location: Toronto, Canada |
2009-11-18 21:19
Post: #1
|
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2009-11-18 22:57
Post: #2
That won't work.
Why not localize in the script before setting the properties? 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. ![]() |
| find quote |
vajonam
Donor Joined: Sep 2008 Reputation: 0 Location: Toronto, Canada |
2009-11-18 23:02
Post: #3
jmarshall Wrote:That won't work. yup, dont know know which xbmc. function to call. looking at the code now. .. trying xbmc.getLocalizedString(id)
(This post was last modified: 2009-11-18 23:09 by vajonam.)
|
| find quote |
vajonam
Donor Joined: Sep 2008 Reputation: 0 Location: Toronto, Canada |
2009-11-18 23:25
Post: #4
Thanks, that's worked got the localized string in the pyhton instead.
|
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Search
Help