cleanup and mark stuff translateable

This commit is contained in:
Chrys 2019-04-28 12:39:26 +02:00
parent db6ea0c3b5
commit 49e2e4f3a3

View File

@ -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