templates: Prepare for i18n
This commit is contained in:
parent
3382135360
commit
9ef81e5c03
|
@ -1,7 +1,7 @@
|
|||
<div id="klipper_leveling_dialog" class="modal hide fade small" tabindex="-1" role="dialog" aria-labelledby="leveling_dialog_label" aria-hidden="true">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h3 id="leveling_dialog_label">Assisted Bed Leveling</h3>
|
||||
<h3 id="leveling_dialog_label">{{ _('Assisted Bed Leveling') }}</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row-fluid">
|
||||
|
@ -11,7 +11,7 @@
|
|||
<div class="span1"></div>
|
||||
<div class="span1">
|
||||
<button class="btn btn-mini btn-info btn-block" data-bind="click: gotoHome">
|
||||
Home
|
||||
{{ _('Home') }}
|
||||
</button>
|
||||
</div>
|
||||
<div class="span7"> </div>
|
||||
|
@ -34,10 +34,10 @@
|
|||
<div class="span2"></div>
|
||||
<div class="btn-toolbar span8">
|
||||
<div class="btn-group">
|
||||
<button class="btn" data-bind="click: startLeveling"><i class="icon-play"></i> Start</button>
|
||||
<button class="btn" data-bind="click: previousPoint, enable: (activePoint() > 0)"><i class="icon-chevron-left"></i> Previous</button>
|
||||
<button class="btn" data-bind="click: nextPoint, enable: (activePoint() < pointCount()-1)">Next <i class="icon-chevron-right"></i></button>
|
||||
<button class="btn" data-bind="click: stopLeveling" data-dismiss="modal"><i class="icon-stop"></i> Stop</button>
|
||||
<button class="btn" data-bind="click: startLeveling"><i class="icon-play"></i> {{ _('Start') }}</button>
|
||||
<button class="btn" data-bind="click: previousPoint, enable: (activePoint() > 0)"><i class="icon-chevron-left"></i> {{ _('Previous') }}</button>
|
||||
<button class="btn" data-bind="click: nextPoint, enable: (activePoint() < pointCount()-1)">{{ _('Next') }} <i class="icon-chevron-right"></i></button>
|
||||
<button class="btn" data-bind="click: stopLeveling" data-dismiss="modal"><i class="icon-stop"></i> {{ _('Stop') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span2"></div>
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
<div id="klipper_pid_tuning_dialog" class="modal hide fade small" tabindex="-1" role="dialog" aria-labelledby="klipper_pid_tuning_dialog_label" aria-hidden="true">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal">×</button>
|
||||
<h3 id="klipper_pid_tuning_dialog_label">PID Tuning</h3>
|
||||
<h3 id="klipper_pid_tuning_dialog_label">{{ _('PID Tuning') }}</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="control-group">
|
||||
<label class="control-label">Heater Index</label>
|
||||
<label class="control-label">{{ _('Heater Index') }</label>
|
||||
<div class="controls">
|
||||
<div class="input-append">
|
||||
<input type="text" class="input-block-level span2" data-bind="value: heaterIndex">
|
||||
<span class="add-on">index</span>
|
||||
<span class="add-on">{{ _('index') }</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Target Temperature</label>
|
||||
<label class="control-label">{{ _('Target Temperature') }</label>
|
||||
<div class="controls">
|
||||
<div class="input-append">
|
||||
<input type="text" class="input-block-level span2" data-bind="value: targetTemperature">
|
||||
|
@ -22,10 +22,10 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<label class="control-label">The result of the tuning cycle is reported in the terminal.</label>
|
||||
<label class="control-label">{{ _('The result of the tuning cycle is reported in the terminal.') }</label>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button class="btn btn-block" data-bind="click: startTuning" data-dismiss="modal"><i class="icon-fire"></i> Start Tuning</button>
|
||||
<button class="btn btn-block" data-bind="click: startTuning" data-dismiss="modal"><i class="icon-fire"></i> {{ _('Start Tuning') }</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<div class="row-fluid">
|
||||
<div class="span8" style="text-align: right"><small>Add macro button to:</small></div>
|
||||
<div class="span1"><small>Klipper Tab</small></div>
|
||||
<div class="span2"><small>Sidebar</small></div>
|
||||
<div class="span8" style="text-align: right"><small>{ _('Add macro button to:') }}</small></div>
|
||||
<div class="span1"><small>{ _('Klipper Tab') }}</small></div>
|
||||
<div class="span2"><small>{ _('Sidebar') }}</small></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -58,7 +58,7 @@
|
|||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<a href='#' data-bind='click: addMacro' class="fa fa-plus-circle"></a> Add Macro
|
||||
<a href='#' data-bind='click: addMacro' class="fa fa-plus-circle"></a> {{ _('Add Macro') }
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -72,7 +72,7 @@
|
|||
<input type="text" class="input-block-level span3" data-bind="value: settings.settings.plugins.klipper.probeHeight">
|
||||
<span class="add-on">mm</span>
|
||||
</div>
|
||||
<span class="help-inline">Z-height to probe at.</span>
|
||||
<span class="help-inline">{{ _('Z-height to probe at.') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
|
@ -82,7 +82,7 @@
|
|||
<input type="text" class="input-block-level span3" data-bind="value: settings.settings.plugins.klipper.probeLift">
|
||||
<span class="add-on">mm</span>
|
||||
</div>
|
||||
<span class="help-inline">Lift Z before moving to next point.</span>
|
||||
<span class="help-inline">{{ _('Lift Z before moving to next point.') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
|
@ -129,7 +129,7 @@
|
|||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<a href='#' data-bind='click: addProbePoint' class="fa fa-plus-circle"></a> Add Point
|
||||
<a href='#' data-bind='click: addProbePoint' class="fa fa-plus-circle"></a> { _('Add Point') }}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<button class="btn btn-block" data-bind="click: connectionState.connect, text: connectionState.buttonText(), enable: loginState.isUser()">{{ _('Connect') }}</button>
|
||||
<hr>
|
||||
<div>
|
||||
<label><i class="icon-list-alt"></i> Macros</label>
|
||||
<label><i class="icon-list-alt"></i> {{ _('Macros') }}</label>
|
||||
<div data-bind="foreach: settings.settings.plugins.klipper.macros">
|
||||
<!-- ko if: sidebar -->
|
||||
<button class="btn btn-block" data-bind="text: name, click: $parent.executeMacro, enable: $parent.isActive()"></button>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="row-fluid">
|
||||
<div class="span8">
|
||||
<label><i class="icon-tasks"></i> Messages</label>
|
||||
<label><i class="icon-tasks"></i>{{ _('Messages') }}</label>
|
||||
<div class="plugin-klipper-log" data-bind="foreach: logMessages">
|
||||
<div class="log-item" data-bind="css: type">
|
||||
<div data-bind="text: time" class="ts" ></div>
|
||||
|
@ -8,29 +8,29 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-mini pull-right clear-btn" data-bind="click: onClearLog, enable: isActive()"><i class="fa fa-trash"></i> Clear</button>
|
||||
<button class="btn btn-mini pull-right clear-btn" data-bind="click: onClearLog, enable: isActive()"><i class="fa fa-trash"></i> {{ _('Clear') }}</button>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="control-label"></label>
|
||||
<button class="btn btn-block" data-bind="click: onGetStatus, enable: isActive()"><i class="fa icon-black fa-info-circle"></i> Get Status</button>
|
||||
<button class="btn btn-block" data-bind="click: onGetStatus, enable: isActive()"><i class="fa icon-black fa-info-circle"></i> {{ _('Get Status') }}</button>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<hr>
|
||||
<label class="control-label"><i class="icon-refresh"></i> Restart</label>
|
||||
<button class="btn btn-block" data-bind="click: onRestartHost, enable: isActive()">Host</button>
|
||||
<button class="btn btn-block" data-bind="click: onRestartFirmware, enable: isActive()">Firmware</button>
|
||||
<label class="control-label"><i class="icon-refresh"></i> {{ _('Restart') }}</label>
|
||||
<button class="btn btn-block" data-bind="click: onRestartHost, enable: isActive()">{{ _('Host') }}</button>
|
||||
<button class="btn btn-block" data-bind="click: onRestartFirmware, enable: isActive()">{{ _('Firmware') }}</button>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<hr>
|
||||
<label class="control-label"><i class="icon-wrench"></i> Tools</label>
|
||||
<button class="btn btn-block" data-bind="click: showLevelingDialog, enable: isActive()">Assisted Bed Leveling</button>
|
||||
<button class="btn btn-block" data-bind="click: showPidTuningDialog, enable: isActive()">PID Tuning</button>
|
||||
<label class="control-label"><i class="icon-wrench"></i> {{ _('Tools') }}</label>
|
||||
<button class="btn btn-block" data-bind="click: showLevelingDialog, enable: isActive()">{{ _('Assisted Bed Leveling') }}</button>
|
||||
<button class="btn btn-block" data-bind="click: showPidTuningDialog, enable: isActive()">{{ _('PID Tuning') }}</button>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<hr>
|
||||
<label class="control-label"><i class="icon-list-alt"></i> Macros</label>
|
||||
<label class="control-label"><i class="icon-list-alt"></i> {{ _('Macros') }}</label>
|
||||
<div data-bind="foreach: settings.settings.plugins.klipper.macros">
|
||||
<!-- ko if: tab -->
|
||||
<button class="btn btn-block" data-bind="text: name, click: $parent.executeMacro, enable: $parent.isActive()"></button>
|
||||
|
|
Loading…
Reference in New Issue