From 8c1eab6034ef024df0291b216699d9dc25b0cc8a Mon Sep 17 00:00:00 2001 From: TrueTechy Date: Mon, 14 Oct 2019 22:12:00 +0100 Subject: [PATCH] Update library management dialog titles --- .../language/resource.language.en_gb/strings.po | 12 ++++++++++++ resources/lib/library.py | 11 ++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index 10c58d90..269f7343 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -933,3 +933,15 @@ msgstr "" msgctxt "#33197" msgid "A sync is already running, please wait until it completes and try again." msgstr "" + +msgctxt "#33198" +msgid "Select the libraries to update" +msgstr "" + +msgctxt "#33199" +msgid "Select the libraries to repair" +msgstr "" + +msgctxt "#33200" +msgid "Select the libraries to remove" +msgstr "" \ No newline at end of file diff --git a/resources/lib/library.py b/resources/lib/library.py index a3df3fb6..8528dc72 100644 --- a/resources/lib/library.py +++ b/resources/lib/library.py @@ -493,7 +493,16 @@ class Library(threading.Thread): choices = [x['Name'] for x in libraries] choices.insert(0, _(33121)) - selection = dialog("multi", _(33120), choices) + + titles = { + "RepairLibrarySelection": 33199, + "SyncLibrarySelection": 33198, + "RemoveLibrarySelection": 33200, + "AddLibrarySelection": 33120 + } + title = titles.get(mode, "Failed to get title {}".format(mode)) + + selection = dialog("multi", _(title), choices) if selection is None: return