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" msgctxt "#39711"
msgid "New Plex music library detected. Sorry, but we need to restart Kodi now due to the changes made." msgid "New Plex music library detected. Sorry, but we need to restart Kodi now due to the changes made."
msgstr "" 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 total = self.total
dialog = self.dialog dialog = self.dialog
threadStopped = self.threadStopped threadStopped = self.threadStopped
dialog.create("%s: Sync %s: %s items" dialog.create("%s %s: %s %s"
% (lang(29999), self.item_type, str(total)), % (lang(39714), self.item_type, str(total), lang(39715)))
"Starting")
total = 2 * total total = 2 * total
totalProgress = 0 totalProgress = 0
@ -71,9 +70,11 @@ class Threaded_Show_Sync_Info(Thread):
except ZeroDivisionError: except ZeroDivisionError:
percentage = 0 percentage = 0
dialog.update(percentage, dialog.update(percentage,
message="%s downloaded. %s processed: %s" message="%s %s. %s %s: %s"
% (get_progress, % (get_progress,
lang(39712),
process_progress, process_progress,
lang(39713),
viewName)) viewName))
# Sleep for x milliseconds # Sleep for x milliseconds
sleep(200) sleep(200)