2014-04-14, 17:11
I'm trying to get 2 letter XBMC Language set to use for later on but i can't seem to get such functionality without the use of mapping.
I found this thread http://forum.xbmc.org/showthread.php?tid...pid1578715
Were ronie provided a sample code but it doesn't seem to function, all i'm getting is None.
I tried to play with and without xbmc. in front of ISO_639_1 without luck.
I also checked XBMC code and some documentation found and syntax seems to be correct.
Any advice?
I found this thread http://forum.xbmc.org/showthread.php?tid...pid1578715
Were ronie provided a sample code but it doesn't seem to function, all i'm getting is None.
Code:
def get_api_lang():
try:
lang = xbmc.getLanguage(xbmc.ISO_639_1, False)
except:
lang = 'en'
I tried to play with and without xbmc. in front of ISO_639_1 without luck.
I also checked XBMC code and some documentation found and syntax seems to be correct.
Any advice?