Made "Software Update" and "CuraEngine" translateable

Also fixed a typo in a notification.
This commit is contained in:
Gina Häußge 2015-07-07 18:26:06 +02:00
parent 22d12ac54c
commit 430e47d20f
3 changed files with 11 additions and 2 deletions

View file

@ -35,6 +35,14 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
self._cancelled_jobs = []
self._job_mutex = threading.Lock()
##~~ TemplatePlugin API
def get_template_configs(self):
from flask.ext.babel import gettext
return [
dict(type="settings", name=gettext("CuraEngine"))
]
##~~ StartupPlugin API
def on_startup(self, host, port):

View file

@ -326,8 +326,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
##~~ TemplatePlugin API
def get_template_configs(self):
from flask.ext.babel import gettext
return [
dict(type="settings", name="Software Update")
dict(type="settings", name=gettext("Software Update"))
]
#~~ Updater

View file

@ -148,7 +148,7 @@ $(function() {
click: function() {
self._markNotificationAsSeen(data.information);
self._showPopup({
text: gettext("You can make this message display again via \"Settings\" > \"SoftwareUpdate\" > \"Check for update now\"")
text: gettext("You can make this message display again via \"Settings\" > \"Software Update\" > \"Check for update now\"")
});
}
}, {