Get 2 letter XBMC lanuage with the use of mappings
#1
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.

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?
Reply

Logout Mark Read Team Forum Stats Members Help
Get 2 letter XBMC lanuage with the use of mappings0