Made "Software Update" and "CuraEngine" translateable

Also fixed a typo in a notification.
(cherry picked from commit 430e47d)
This commit is contained in:
Gina Häußge 2015-07-07 18:26:06 +02:00
parent ced286854c
commit 19a5613e59
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

@ -310,8 +310,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

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