-
Notifications
You must be signed in to change notification settings - Fork 1
I18N
OllisGit edited this page Jul 9, 2022
·
5 revisions
https://github.com/foosel/OctoPrint/wiki/Translating-OctoPrint
- Create a new empty file:
touch translations / messages.pot
- full message.pot file:
python setup.py babel_extract
- update message .po files:
python setup.py babel_refresh
python setup.py babel_new --locale=de
python setup.py babel_compile
Copy translation of a single local to the plugin for bundling
python setup.py babel_bundle --locale=de
var tooltip = gettext("Shows the layer information");
<label class="control-label">{{ _('Printer Profile') }}</label><strong data-bind="text: slicerSameDevice() ? gettext('Yes') : gettext('No')"></strong>
from flask_babel import gettext
name=gettext("Announcements")