xbmcaddon.Addon().getLocalizedString(32002) returns me msgid instead of msgstr
#1
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"
Reply
#2
The complete code:
https://github.com/Opvolger/plugin.video.hanssettings
Reply
#3
Do not know what I did wrong, but it suddenly works!
Reply

Logout Mark Read Team Forum Stats Members Help
xbmcaddon.Addon().getLocalizedString(32002) returns me msgid instead of msgstr0