added new strings

This commit is contained in:
Rob Weber 2013-05-09 14:35:31 -05:00
parent af11c1a990
commit a7044cd17c
3 changed files with 12 additions and 3 deletions

View File

@ -30,6 +30,13 @@
<string id="30035">Config Files</string> <string id="30035">Config Files</string>
<string id="30036">Custom Directory 1</string> <string id="30036">Custom Directory 1</string>
<string id="30037">Custom Directory 2</string> <string id="30037">Custom Directory 2</string>
<string id="30038">Advanced Settings Detected</string>
<string id="30039">The advancedsettings file should be restored first</string>
<string id="30040">Select Yes to restore this file and restart XBMC</string>
<string id="30041">Select No to continue</string>
<string id="30042">Resume Restore</string>
<string id="30043">XBMC Backup has detected an unfinished restore</string>
<string id="30044">Would you like to continue?</string>
<string id="30045">Error: Remote path doesn't exist</string> <string id="30045">Error: Remote path doesn't exist</string>
<string id="30046">Starting</string> <string id="30046">Starting</string>
<string id="30047">Local Dir</string> <string id="30047">Local Dir</string>
@ -61,4 +68,6 @@
<string id="30074">First Day of Month</string> <string id="30074">First Day of Month</string>
<string id="30075">Custom Schedule</string> <string id="30075">Custom Schedule</string>
<string id="30076">Shutdown After Backup</string> <string id="30076">Shutdown After Backup</string>
<string id="30077">Restart XBMC</string>
<string id="30078">You should restart XBMC to continue</string>
</strings> </strings>

View File

@ -193,7 +193,7 @@ class XbmcBackup:
#check for the existance of an advancedsettings file #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): 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 #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): if(restartXbmc):
#add only this file to the file list #add only this file to the file list
@ -204,7 +204,7 @@ class XbmcBackup:
self._createResumeBackupFile() self._createResumeBackupFile()
#do not continue running #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 return

View File

@ -115,7 +115,7 @@ class BackupScheduler:
self.restore_point = rFile.read() self.restore_point = rFile.read()
rFile.close() rFile.close()
xbmcvfs.delete(xbmc.translatePath(utils.data_dir() + "resume.txt")) 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 return shouldContinue