localize advanced editor strings

This commit is contained in:
Rob Weber 2019-12-31 10:41:15 -06:00
parent 8bc73f2832
commit 05c53b7ed8
2 changed files with 26 additions and 5 deletions

View File

@ -560,3 +560,24 @@ msgstr ""
msgctxt "#30142" msgctxt "#30142"
msgid "Enable Verbose Logging" msgid "Enable Verbose Logging"
msgstr "" 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 ""

View File

@ -122,13 +122,13 @@ class AdvancedBackupEditor:
rootPath = backupSet['root'] rootPath = backupSet['root']
while(optionSelected != -1): 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']: for aDir in backupSet['dirs']:
if(aDir['type'] == 'exclude'): 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'): 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) optionSelected = self.dialog.select(utils.getString(30122) + ' ' + name, options, useDetails=True)
@ -157,7 +157,7 @@ class AdvancedBackupEditor:
cOptions = ['Delete'] cOptions = ['Delete']
if(backupSet['dirs'][optionSelected - 3]['type'] == 'include'): if(backupSet['dirs'][optionSelected - 3]['type'] == 'include'):
cOptions.append('Toggle Sub Folders') cOptions.append(utils.getString(30147))
contextOption = self.dialog.contextmenu(cOptions) contextOption = self.dialog.contextmenu(cOptions)