add unknown (=> country) translation string

This commit is contained in:
bassdart 2019-02-14 17:44:18 +01:00
parent c1783e3631
commit 46538086c4
3 changed files with 11 additions and 3 deletions

View file

@ -138,8 +138,8 @@ def countrycodes():
countrycode = entry['countrycode']
if countrycode != "" and countrycode not in result:
result.append(countrycode)
elif countrycode == "" and "Unknown" not in result:
result.append('Unknown')
elif countrycode == "" and translation(30124) not in result:
result.append(translation(30124))
result.sort()
for entry in result:
addDir(entry, '&style=country&limit=' + entry + '&start=0', 'showArtist', fanart, len(result))
@ -433,7 +433,7 @@ def showArtist(style, limit, start):
i = entry['countrycode']
if limit == i:
preresult.append(entry)
elif limit == 'Unknown' and i == "":
elif limit == translation(30124) and i == "":
preresult.append(entry)
# limit the result list according to the "Video Selection" Setting

View file

@ -239,3 +239,7 @@ msgstr "Mehr von..."
msgctxt "#30123"
msgid "Show all videos in similiar and more from... playlists"
msgstr "Zeige alle Videos in Similar- und "Mehr von"-Playlisten"
msgctxt "#30124"
msgid "unknown"
msgstr "unbekannt"

View file

@ -239,3 +239,7 @@ msgstr ""
msgctxt "#30123"
msgid "Show all videos in similiar and more from... playlists"
msgstr ""
msgctxt "#30124"
msgid "unknown"
msgstr ""