Ability to translate sync progress dialog

This commit is contained in:
tomkat83 2017-05-11 20:16:19 +02:00
parent 11077bccec
commit 56bd2d88b6
2 changed files with 25 additions and 4 deletions

View file

@ -1899,3 +1899,23 @@ msgstr ""
msgctxt "#39711"
msgid "New Plex music library detected. Sorry, but we need to restart Kodi now due to the changes made."
msgstr ""
# Shown during sync process
msgctxt "#39712"
msgid "downloaded"
msgstr ""
# Shown during sync process
msgctxt "#39713"
msgid "processed"
msgstr ""
# Shown during sync process
msgctxt "#39714"
msgid "Sync"
msgstr ""
# Shown during sync process
msgctxt "#39715"
msgid "items"
msgstr ""

View file

@ -54,9 +54,8 @@ class Threaded_Show_Sync_Info(Thread):
total = self.total
dialog = self.dialog
threadStopped = self.threadStopped
dialog.create("%s: Sync %s: %s items"
% (lang(29999), self.item_type, str(total)),
"Starting")
dialog.create("%s %s: %s %s"
% (lang(39714), self.item_type, str(total), lang(39715)))
total = 2 * total
totalProgress = 0
@ -71,9 +70,11 @@ class Threaded_Show_Sync_Info(Thread):
except ZeroDivisionError:
percentage = 0
dialog.update(percentage,
message="%s downloaded. %s processed: %s"
message="%s %s. %s %s: %s"
% (get_progress,
lang(39712),
process_progress,
lang(39713),
viewName))
# Sleep for x milliseconds
sleep(200)