Made "Software Update" and "CuraEngine" translateable

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

No files matched your search

+8
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):
@@ -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
@@ -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\"")
});
}
}, {