2014-04-07, 21:12
Trying to use xbmc.getLocalizedString() in my python script doesn't work. I get a null string returned.
Translation partially works. I can see the values displayed when I access settings.
But, still in settings, switching to another language does not work. I still get the strings from English returned.
Does the .po file need to contain specific header information?
This should work, right?...
on Linux/Frodo
Translation partially works. I can see the values displayed when I access settings.
But, still in settings, switching to another language does not work. I still get the strings from English returned.
Does the .po file need to contain specific header information?
This should work, right?...
Code:
#resources/language/English/strings.po
msgid ""
msgstr ""
msgctxt "#32000"
msgid "Hello"
msgstr ""
#default.py
import xbmc
print xbmc.getLocalizedString(32000)
on Linux/Frodo