this is the translation:
## translation, NOTE! another way of doing this ? (since I am no python guru..)
swestrings = {0:'Emulatorer',1:'Helskärmsvisualisering',2:'Helskärmsvideo',3:'Välj',4:'Bakåt',5:'Starta emulator',6:'Starta Rom',7:'Emulatornamn:',8:'',9:'Objekt',10:''}
engstrings = {0:'Emulators',1:'Full Screen Visualization',2:'Full Screen Video',3:'Choose',4:'Back',5:'Start emulator',6:'Launch Rom',7:'Name of emulator:',8:'',9:'Items',10:''}
gerstrings = {0:'',1:'',2:'',3:'',4:'',5:'',6:'',7:'',8:'',9:'',10:''}
LANGUAGE = {'swedish':swestrings,'english':engstrings,'german':gerstrings}
---------------------------------
this is how i parse the settings of xbmc:
## Set language and Skin
fh = open("Q:\\UserData\\guisettings.xml")
for line in fh.readlines():
theLine = line.lower()
theLine = theLine.strip()
if theLine.count("<language>") > 0:
XBMC_LANGUAGE = theLine[10:-11]
if theLine.count("<skin>") > 0:
XBMC_SKIN = theLine[6:-7]
fh.close()
---------------------------------
this how it is called in the script:
self.addControl(xbmcgui.ControlLabel(102,35, 200,35, LANGUAGE[XBMC_LANGUAGE][0], font="font18"))