2019-07-20, 11:19
@wyrm
The common user don't set his region properly. A German user for example sets his language to "German", but doesn't change his region from Belgium (default for whatever reason) to Germany.
You already can do this:
https://github.com/sualfred/script.embua...tem-locale
This returns the system locale instead of the Kodi one.
And build a variable based on the returned value:
https://www.iban.com/country-codes
Is this enough, or do you really need the Kodi set one that is set in guisettings.xml?
The common user don't set his region properly. A German user for example sets his language to "German", but doesn't change his region from Belgium (default for whatever reason) to Germany.
You already can do this:
https://github.com/sualfred/script.embua...tem-locale
This returns the system locale instead of the Kodi one.
And build a variable based on the returned value:
https://www.iban.com/country-codes
xml:<variable name="longcountry">
<value condition="String.IsEqual(Window(home).Property(SystemLocale),DE">Germany</value>
.....
<value>foobar</value>
</variable>
Is this enough, or do you really need the Kodi set one that is set in guisettings.xml?