From 49e2e4f3a31624c10a0afbbcd26fff99e3718558 Mon Sep 17 00:00:00 2001 From: Chrys Date: Sun, 28 Apr 2019 12:39:26 +0200 Subject: [PATCH] cleanup and mark stuff translateable --- src/fenrirscreenreader/commands/commands/save_settings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/fenrirscreenreader/commands/commands/save_settings.py b/src/fenrirscreenreader/commands/commands/save_settings.py index 3bba98fc..1e837eb6 100644 --- a/src/fenrirscreenreader/commands/commands/save_settings.py +++ b/src/fenrirscreenreader/commands/commands/save_settings.py @@ -15,9 +15,10 @@ class command(): def shutdown(self): pass def getDescription(self): - return 'Saves your current Fenrir settings so they are the default.' + return _('Saves your current Fenrir settings so they are the default.') def run(self): - self.env['runtime']['settingsManager'].saveSettings(self.env['runtime']['settingsManager'].getSettingsFile()) - self.env['runtime']['outputManager'].presentText("Settings saved.", interrupt=True) + settingsFile = self.env['runtime']['settingsManager'].getSettingsFile() + self.env['runtime']['settingsManager'].saveSettings(settingsFile) + self.env['runtime']['outputManager'].presentText(_("Settings saved."), interrupt=True) def setCallback(self, callback): pass