2009-11-18, 21:19
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
$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