Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

localisation fix and add #99

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions src/home.htm
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ <h2 data-bind="i18n: 'administration'">Administration</h2>
<h2 data-bind="i18n: 'language'">Language</h2>
<select data-bind="options: languages, value: config.lang, valueAllowUnset: false">
</select>
<button data-bind="i18n: 'save', click: saveLang, text: (saveLangFetching() ? i18nextko.t('saving') : (saveLangSuccess() ? i18nextko.t('saved') : i18nextko.t('Save') )), disable: saveLangFetching">Save</button>
<button data-bind="i18n: 'save', click: saveLang, text: (saveLangFetching() ? i18nextko.t('saving') : (saveLangSuccess() ? i18nextko.t('saved') : i18nextko.t('save'))), disable: saveLangFetching">Save</button>
</div>

<div class="box380 right">
Expand All @@ -177,7 +177,7 @@ <h4><span data-bind="i18n: 'error'">Error</span>:</h4>
</div>
<p>
<button data-bind="i18n: 'restart', click: restart, text: (restartFetching() ? i18nextko.t('restarting') : i18nextko.t('restart')), disable: restartFetching">Restart</button>
<button data-bind="i18n: 'reset', click: factoryReset, text: (factoryResetFetching() ? i18nextko.t('resetting') : i18nextko.t('reset') ), disable: factoryResetFetching">Factory Reset</button>
<button data-bind="i18n: 'reset', click: factoryReset, text: (factoryResetFetching() ? i18nextko.t('resetting') : i18nextko.t('reset')), disable: factoryResetFetching">Factory Reset</button>
</p>
</div>

Expand Down Expand Up @@ -737,7 +737,7 @@ <h3 data-bind="i18n: 'manoverride', visible: status.manual_override">Manual Over
<input type="number" data-bind="value: $root.config.scheduler_start_window" min="0" max="1800" step="60" style="width: 80%" /> <span data-bind="i18n: 'seconds'">seconds</span><br />
<br />
</span>
<button data-bind="i18n: 'set', text: delayTimerEnabled() ? 'Update' : 'Set',
<button data-bind="i18n: 'set', text: delayTimerEnabled() ? i18nextko.t('update') : i18nextko.t('set'),
enable: !updatingDelayTimer() &amp;&amp;
delayTimerValid() &amp;&amp;
!$root.status.isError(),
Expand Down Expand Up @@ -832,7 +832,7 @@ <h2 data-bind="i18n: 'setup'">Setup</h2>
<option value="browser" data-bind="i18n: 'browser'">Browser</option>
<option value="ntp" data-bind="i18n: 'ntp', visible: false !== config.sntp_hostname()">NTP</option>
</select>
<button data-bind="click: setTime, text: (setTimeFetching() ? 'Saving' : (setTimeSuccess() ? 'Saved' : 'Set time')), disable: setTimeFetching">Set time</button>
<button data-bind="i18n: 'settime', click: setTime, text: (setTimeFetching() ? i18nextko.t('saving') : (setTimeSuccess() ? i18nextko.t('saved') : i18nextko.t('settime'))), disable: setTimeFetching">Set time</button>
</div>
<hr>
<p>
Expand Down Expand Up @@ -919,7 +919,7 @@ <h4 data-bind="i18n: 'warning'">Warning!!</h4>
<input type="checkbox" data-bind="checked: config.gfci_check" />
<div class="slider round"></div>
</label>
<span data-bind="text: config.gfci_check() ? 'Enabled' : 'Disabled'"></span>
<span data-bind="text: config.gfci_check() ? i18nextko.t('enabled') : i18nextko.t('disabled')"></span>
</td>
</tr>
<tr data-bind="css: {error: 7 === status.state() }">
Expand All @@ -929,7 +929,7 @@ <h4 data-bind="i18n: 'warning'">Warning!!</h4>
<input type="checkbox" data-bind="checked: config.ground_check" />
<div class="slider round"></div>
</label>
<span data-bind="text: config.ground_check() ? 'Enabled' : 'Disabled'"></span>
<span data-bind="text: config.ground_check() ? i18nextko.t('enabled') : i18nextko.t('disabled')"></span>
</td>
</tr>
<tr data-bind="css: {error: 8 === status.state() }">
Expand All @@ -939,7 +939,7 @@ <h4 data-bind="i18n: 'warning'">Warning!!</h4>
<input type="checkbox" data-bind="checked: config.relay_check" />
<div class="slider round"></div>
</label>
<span data-bind="text: config.relay_check() ? 'Enabled' : 'Disabled'"></span>
<span data-bind="text: config.relay_check() ? i18nextko.t('enabled') : i18nextko.t('disabled')"></span>
</td>
</tr>
<tr data-bind="css: {error: 10 === status.state() }">
Expand All @@ -949,7 +949,7 @@ <h4 data-bind="i18n: 'warning'">Warning!!</h4>
<input type="checkbox" data-bind="checked: config.temp_check" />
<div class="slider round"></div>
</label>
<span data-bind="text: config.temp_check() ? 'Enabled' : 'Disabled'"></span>
<span data-bind="text: config.temp_check() ? i18nextko.t('enabled') : i18nextko.t('disabled')"></span>
</td>
</tr>
<tr data-bind="css: {error: 5 === status.state() }">
Expand All @@ -959,7 +959,7 @@ <h4 data-bind="i18n: 'warning'">Warning!!</h4>
<input type="checkbox" data-bind="checked: config.diode_check" />
<div class="slider round"></div>
</label>
<span data-bind="text: config.diode_check() ? 'Enabled' : 'Disabled'"></span>
<span data-bind="text: config.diode_check() ? i18nextko.t('enabled') : i18nextko.t('disabled')"></span>
</td>
</tr>
<tr data-bind="css: {error: 4 === status.state() }">
Expand All @@ -969,7 +969,7 @@ <h4 data-bind="i18n: 'warning'">Warning!!</h4>
<input type="checkbox" data-bind="checked: config.vent_check" />
<div class="slider round"></div>
</label>
<span data-bind="text: config.vent_check() ? 'Enabled' : 'Disabled'"></span>
<span data-bind="text: config.vent_check() ? i18nextko.t('enabled') : i18nextko.t('disabled')"></span>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -1005,7 +1005,7 @@ <h2 data-bind="i18n: 'hardware'">Hardware</h2>
</tr>
<tr>
<td colspan="2" data-bind="with: openevse">
<button data-bind="click: restart, text: (restartFetching() ? 'Restarting...' : 'Restart'), disable: restartFetching">Restart</button>
<button data-bind="i18n: 'restart', click: restart, text: (restartFetching() ? i18nextko.t('restarting') : i18nextko.t('restart')), disable: restartFetching">Restart</button>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -1054,7 +1054,7 @@ <h3><span data-bind="i18n: 'evpause'">Pause status </span><span class="info" dat
<input type="checkbox" data-bind="checked: config.pause_uses_disabled" />
<div class="slider round"></div>
</label>
<span data-bind="css: {selected: config.pause_uses_disabled }">Disable</span><br/>
<span data-bind="i18n: 'disabled', css: {selected: config.pause_uses_disabled }">Disabled</span><br/>
</div>
</div>

Expand Down Expand Up @@ -1128,24 +1128,24 @@ <h2 class="left" data-bind="i18n: 'history'">History</h2>
<div class="box box-full left">
<form method="get" action="r" data-bind="with: rapi">
<p>
<b>RAPI Command:</b>
<h2 data-bind="i18n: 'rapicom'">RAPI Command:</h2>
<div data-bind="html: history"></div>
<input type="text" autocapitalize="none" name="rapi" length="32" data-bind="textInput: cmd" />
</p>
<p>
<button data-bind="click: send, disable: rapiSend">Send</button>
<button data-bind="click: clear">Clear</button>
<button data-bind="i18n: 'send', click: send, disable: rapiSend">Send</button>
<button data-bind="i18n: 'clear', click: clear">Clear</button>
</p>
</form>
</div>
<div class="box box-full left">
<h2>RAPI Get Commands</h2>
<button data-bind="click: rapi.read, disable: rapi.reading">Read</button>
<h2 data-bind="i18n: 'rapigetcom'">RAPI Get Commands</h2>
<button data-bind="i18n: 'read', click: rapi.read, disable: rapi.reading">Read</button>
<table data-bind="with: rapi">
<thead>
<tr>
<th>Get</th>
<th>Description</th>
<th data-bind="i18n: 'get'">Get</th>
<th data-bind="i18n: 'description'">Description</th>
</tr>
</thead>
<tbody data-bind="foreach: get_commands">
Expand Down Expand Up @@ -1179,11 +1179,11 @@ <h2>RAPI Get Commands</h2>
</table>
</div>
<div class="box380 left">
<h2>RAPI Set Commands</h2>
<h2 data-bind="i18n: 'rapisetcom'">RAPI Set Commands</h2>
<table>
<tr>
<th>Set</th>
<th>Description</th>
<th data-bind="i18n: 'set'">Set</th>
<th data-bind="i18n: 'description'">Description</th>
</tr>
<tr>
<td>$S0</td>
Expand Down Expand Up @@ -1236,11 +1236,11 @@ <h2>RAPI Set Commands</h2>
</table>
</div>
<div class="box380 right">
<h2>RAPI System Functions</h2>
<h2 data-bind="i18n: 'rapisysfunc'">RAPI System Functions</h2>
<table>
<tr>
<th>Function</th>
<th>Description</th>
<th data-bind="i18n: 'function'">Function</th>
<th data-bind="i18n: 'description'">Description</th>
</tr>
<tr>
<td>$FB</td>
Expand Down
Loading