Kodi Community Forum
xbmcaddon.Addon().getLocalizedString(32002) returns me msgid instead of msgstr - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Translations and Languages (https://forum.kodi.tv/forumdisplay.php?fid=90)
+--- Thread: xbmcaddon.Addon().getLocalizedString(32002) returns me msgid instead of msgstr (/showthread.php?tid=337398)



xbmcaddon.Addon().getLocalizedString(32002) returns me msgid instead of msgstr - opvolger - 2018-11-11

I'm writing an addon with the new language files. Now I want to get a text inside python, but I get the msgid back instead of msgstr. What I overlook, I have already searched for github and google. but do not have a solution yet

code:
xbmcaddon.Addon().getLocalizedString(32002) 

expected:
'Vooruitgang'
got:
'Progress'

string.po:
# Kodi Media Center language file
# Addon Name: Kanalenlijst Hans (Streams)
# Addon id: plugin.video.hanssettings
# Addon Provider: Opvolger
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: nl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgctxt "#32001"
msgid "DownloadStreamGithub"
msgstr "Download stream bestanden van github..."

msgctxt "#32002"
msgid "Progress"
msgstr "Vooruitgang"


RE: xbmcaddon.Addon().getLocalizedString(32002) returns me msgid instead of msgstr - opvolger - 2018-11-11

The complete code:
https://github.com/Opvolger/plugin.video.hanssettings


RE: xbmcaddon.Addon().getLocalizedString(32002) returns me msgid instead of msgstr - opvolger - 2018-11-11

Do not know what I did wrong, but it suddenly works!