How to get the current country code?
#1
Hi all,

I'm looking for a function which will return the current country code of the selected language.

E.G. xbmc.getLanguage() returns english or german...
Is there a function which return "de" or "en"? This would be very helpfull, for queries against localized websites...

Is there a built in function? Or does anyone know a complete list of country-tags? Is the country code availible in a c++ Function in xbmc? Then a patch could be easy...

Thanks,

MrLight
Reply
#2
see LangCodeExpander.cpp

currently not available in a way accessible to you.
Reply
#3
@MrLight
If this is for a plugin, maybe use a string in each resources\language\XXX\strings.xml to reflect the currently selected language, "en" for English, "de" for German etc...
Reply

Logout Mark Read Team Forum Stats Members Help
How to get the current country code?0