2018-11-11, 12:46
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"
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"