From 56bd2d88b632adae80e83890a55a3cae8495078b Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Thu, 11 May 2017 20:16:19 +0200 Subject: [PATCH] Ability to translate sync progress dialog --- .../resource.language.en_gb/strings.po | 20 +++++++++++++++++++ resources/lib/library_sync/sync_info.py | 9 +++++---- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index f88e31b5..e43dbf53 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -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 "" diff --git a/resources/lib/library_sync/sync_info.py b/resources/lib/library_sync/sync_info.py index df14e433..3be8f70b 100644 --- a/resources/lib/library_sync/sync_info.py +++ b/resources/lib/library_sync/sync_info.py @@ -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)