🌐 Make some display text translateable that wasn't yet (#4830)
* Optimized Translation * 🐛 Fix translatability of filament usage in state * 🚨 Make pre-commit happy --------- Co-authored-by: Gina Häußge <gina@octoprint.org>
This commit is contained in:
1 parent
c32677caf5
commit
b7c0a4ca75
6 files changed
+6
-5
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
[main]
|
||||
host = https://www.transifex.com
|
||||
|
||||
[octoprint.messages]
|
||||
[o:octoprint:p:octoprint:r:messages]
|
||||
file_filter = translations/<lang>/LC_MESSAGES/messages.po
|
||||
source_file = translations/messages.pot
|
||||
source_lang = en
|
||||
@@ -76,7 +76,7 @@
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button class="btn btn-primary" data-bind="click: generateKey">Generate</button>
|
||||
<button class="btn btn-primary" data-bind="click: generateKey">{{ _('Generate') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -42,6 +42,7 @@ class GcodeviewerPlugin(
|
||||
},
|
||||
{
|
||||
"type": "settings",
|
||||
"name": gettext("GCode Viewer"),
|
||||
"template": "gcodeviewer_settings.jinja2",
|
||||
"custom_bindings": True,
|
||||
},
|
||||
|
||||
@@ -254,7 +254,7 @@ class LoggingPlugin(
|
||||
"template": "logging_navbar_plugintimingslog.jinja2",
|
||||
"suffix": "_plugintimingslog",
|
||||
},
|
||||
{"type": "settings", "custom_bindings": True},
|
||||
{"type": "settings", "name": gettext("Logging"), "custom_bindings": True},
|
||||
]
|
||||
|
||||
def get_assets(self):
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<span title="{{ _('Current timelapse configuration')|edq }}">{{ _('Timelapse') }}</span>: <strong data-bind="text: timelapseString"></strong><br>
|
||||
<!-- /ko -->
|
||||
<!-- ko foreach: filament -->
|
||||
<span data-bind="text: 'Filament (' + name() + '): ', title: 'Filament usage for ' + name()"></span><strong data-bind="text: formatFilament(data())"></strong><br>
|
||||
<span data-bind="text: _.sprintf(gettext('Filament (%(name)s)'), { name: name() }), attr: {title: _.sprintf(gettext('Filament usage for %(name)s'), {name: name()})}"></span>: <strong data-bind="text: formatFilament(data())"></strong><br>
|
||||
<!-- /ko -->
|
||||
<span title="{{ _('Estimated total print time based on analysis of the file or past prints')|edq }}">{{ _('Approx. Total Print Time') }}</span>: <strong data-bind="text: estimatedPrintTimeString, attr: {title: estimatedPrintTimeExactString}"></strong><br>
|
||||
<hr>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" data-bind="checked: server_allowFraming" id="settings-serverAllowFraming"> {{ _('Allow embedding the web interface into a frame or iframe') }} <span class="label">Needs restart</span>
|
||||
<input type="checkbox" data-bind="checked: server_allowFraming" id="settings-serverAllowFraming"> {{ _('Allow embedding the web interface into a frame or iframe') }} <span class="label">{{ _('Needs restart') }}</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user