From 05c53b7ed84d2fe5143e01e5e4e5a98ceab0ec62 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Tue, 31 Dec 2019 10:41:15 -0600 Subject: [PATCH] localize advanced editor strings --- .../resource.language.en_gb/strings.po | 23 ++++++++++++++++++- resources/lib/advanced_editor.py | 8 +++---- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index 3102807..9cc97da 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -559,4 +559,25 @@ msgstr "" msgctxt "#30142" msgid "Enable Verbose Logging" -msgstr "" \ No newline at end of file +msgstr "" + +msgctxt "#30143" +msgid "Exclude a specific folder from this backup set" +msgstr "" + +msgctxt "#30144" +msgid "Include a specific folder to this backup set" +msgstr "" + +msgctxt "#30145" +msgid "Type" +msgstr "" + +msgctxt "#30146" +msgid "Include Sub Folders" +msgstr "" + +msgctxt "#30147" +msgid "Toggle Sub Folders" +msgstr "" + diff --git a/resources/lib/advanced_editor.py b/resources/lib/advanced_editor.py index 31acc7a..37ad470 100644 --- a/resources/lib/advanced_editor.py +++ b/resources/lib/advanced_editor.py @@ -122,13 +122,13 @@ class AdvancedBackupEditor: rootPath = backupSet['root'] while(optionSelected != -1): - options = [xbmcgui.ListItem(utils.getString(30120), "Exclude a specific folder from this backup set"), xbmcgui.ListItem(utils.getString(30135), "Include a specific folder to this backup set"), xbmcgui.ListItem(rootPath, utils.getString(30121))] + options = [xbmcgui.ListItem(utils.getString(30120), utils.getString(30143)), xbmcgui.ListItem(utils.getString(30135), utils.getString(30144)), xbmcgui.ListItem(rootPath, utils.getString(30121))] for aDir in backupSet['dirs']: if(aDir['type'] == 'exclude'): - options.append(xbmcgui.ListItem(self._cleanPath(rootPath, aDir['path']), "%s: %s" % ("Type", utils.getString(30129)))) + options.append(xbmcgui.ListItem(self._cleanPath(rootPath, aDir['path']), "%s: %s" % (utils.getString(30145), utils.getString(30129)))) elif(aDir['type'] == 'include'): - options.append(xbmcgui.ListItem(self._cleanPath(rootPath, aDir['path']), "%s: %s | %s: %s" % ("Type", utils.getString(30134), "Include Sub Folders", str(aDir['recurse'])))) + options.append(xbmcgui.ListItem(self._cleanPath(rootPath, aDir['path']), "%s: %s | %s: %s" % (utils.getString(30145), utils.getString(30134), utils.getString(30146), str(aDir['recurse'])))) optionSelected = self.dialog.select(utils.getString(30122) + ' ' + name, options, useDetails=True) @@ -157,7 +157,7 @@ class AdvancedBackupEditor: cOptions = ['Delete'] if(backupSet['dirs'][optionSelected - 3]['type'] == 'include'): - cOptions.append('Toggle Sub Folders') + cOptions.append(utils.getString(30147)) contextOption = self.dialog.contextmenu(cOptions)