## Set language and Skin (falls back to DEFAULT and english)
try:
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]
finaly:
fh.close()
except IOError:
pass
if XBMC_SKIN != "mc360" and XBMC_SKIN != "project mayhem iii":
XBMC_SKIN = "default"
if XBMC_LANGUAGE != "swedish" and XBMC_LANGUAGE != "english" and XBMC_LANGUAGE != "german":
XBMC_LANGUAGE = "english"
## translation, NOTE! another way of doing this ? (since I am no python guru..)