2018-03-27, 11:45
For the settings XML file, looks like we need to use the string ID
For the language, it's possible to retrieve the 2 letter code from "getLanguage" function
http://mirrors.kodi.tv/docs/python-docs/...etLanguage
This returns something like "en", "fr", or with region option "en-UK", "fr-FR"
Maybe something like that ?
For the language, it's possible to retrieve the 2 letter code from "getLanguage" function
http://mirrors.kodi.tv/docs/python-docs/...etLanguage
This returns something like "en", "fr", or with region option "en-UK", "fr-FR"
Maybe something like that ?
python:loc = xbmc.getLanguage(xbmc.ISO_639_1, true).replace("-", "_") + ".utf8"
locale.setlocale(locale.LC_TIME, loc)
print(datetime.datetime.today().strftime("%A"))