Made "Software Update" and "CuraEngine" translateable
Also fixed a typo in a notification.
This commit is contained in:
parent
22d12ac54c
commit
430e47d20f
3 changed files with 11 additions and 2 deletions
|
|
@ -35,6 +35,14 @@ class CuraPlugin(octoprint.plugin.SlicerPlugin,
|
||||||
self._cancelled_jobs = []
|
self._cancelled_jobs = []
|
||||||
self._job_mutex = threading.Lock()
|
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
|
##~~ StartupPlugin API
|
||||||
|
|
||||||
def on_startup(self, host, port):
|
def on_startup(self, host, port):
|
||||||
|
|
|
||||||
|
|
@ -326,8 +326,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||||
##~~ TemplatePlugin API
|
##~~ TemplatePlugin API
|
||||||
|
|
||||||
def get_template_configs(self):
|
def get_template_configs(self):
|
||||||
|
from flask.ext.babel import gettext
|
||||||
return [
|
return [
|
||||||
dict(type="settings", name="Software Update")
|
dict(type="settings", name=gettext("Software Update"))
|
||||||
]
|
]
|
||||||
|
|
||||||
#~~ Updater
|
#~~ Updater
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue