From a7044cd17c3c1b8c2dc356cfe50200160fc7de34 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Thu, 9 May 2013 14:35:31 -0500 Subject: [PATCH] added new strings --- resources/language/English/strings.xml | 9 +++++++++ resources/lib/backup.py | 4 ++-- scheduler.py | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 934452f..26c9023 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -30,6 +30,13 @@ Config Files Custom Directory 1 Custom Directory 2 + Advanced Settings Detected + The advancedsettings file should be restored first + Select Yes to restore this file and restart XBMC + Select No to continue + Resume Restore + XBMC Backup has detected an unfinished restore + Would you like to continue? Error: Remote path doesn't exist Starting Local Dir @@ -61,4 +68,6 @@ First Day of Month Custom Schedule Shutdown After Backup + Restart XBMC + You should restart XBMC to continue diff --git a/resources/lib/backup.py b/resources/lib/backup.py index 2edf38b..11b6e8e 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -193,7 +193,7 @@ class XbmcBackup: #check for the existance of an advancedsettings file if(self.remote_vfs.exists(self.remote_vfs.root_path + "userdata/advancedsettings.xml") and not self.skip_advanced): #let the user know there is an advanced settings file present - restartXbmc = xbmcgui.Dialog().yesno("Advanced Settings Detected","The advancedsettings file should be restored first","Select Yes to restore this file and restart XBMC", "Select No to continue") + restartXbmc = xbmcgui.Dialog().yesno(utils.getString(30038),utils.getString(30039),utils.getString(30040), utils.getString(30041)) if(restartXbmc): #add only this file to the file list @@ -204,7 +204,7 @@ class XbmcBackup: self._createResumeBackupFile() #do not continue running - xbmcgui.Dialog().ok("Restart XBMC","You should restart XBMC to continue") + xbmcgui.Dialog().ok(utils.getString(30077),utils.getString(30078)) return diff --git a/scheduler.py b/scheduler.py index 3d45c33..23ccb4e 100644 --- a/scheduler.py +++ b/scheduler.py @@ -115,7 +115,7 @@ class BackupScheduler: self.restore_point = rFile.read() rFile.close() xbmcvfs.delete(xbmc.translatePath(utils.data_dir() + "resume.txt")) - shouldContinue = xbmcgui.Dialog().yesno("Resume Restore","XBMC Backup has detected an unfinished restore","Would you like to continue?") + shouldContinue = xbmcgui.Dialog().yesno(utils.getString(30042),utils.getString(30043),utils.getString(30044)) return shouldContinue