From 17a4e8ad3d8fe5d469918c103bf0afad759286c1 Mon Sep 17 00:00:00 2001 From: robweber Date: Wed, 12 Sep 2012 10:02:33 -0500 Subject: [PATCH] refactored code to use strings.xml --- resources/language/English/strings.xml | 19 +++++++++++++++++-- resources/settings.xml | 8 ++++---- scheduler.py | 2 +- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 6ea2d39..5f31fab 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -31,7 +31,22 @@ Remote Path exists - may have old files in it! Creating Files List Writing file - + Starting scheduled backup + Enable Scheduler - + Schedule + Hour of Day + Day of Week + Cron Schedule + Sunday + Monday + Tuesday + Wednesday + Thursday + Friday + Saturday + Every Day + Every Week + First Day of Month + Custom Schedule diff --git a/resources/settings.xml b/resources/settings.xml index 2ed67ef..d32a629 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -18,9 +18,9 @@ - - - - + + + + diff --git a/scheduler.py b/scheduler.py index ecd0e76..d453328 100644 --- a/scheduler.py +++ b/scheduler.py @@ -28,7 +28,7 @@ class BackupScheduler: if(self.next_run <= now): if(utils.getSetting('run_silent') == 'false'): - utils.showNotification("Starting scheduled backup") + utils.showNotification(utils.getString(30053)) #run the job in backup mode, hiding the dialog box backup = XbmcBackup() backup.run(XbmcBackup.Backup,True)