some concrete translations

This commit is contained in:
Christian Fraß 2020-04-04 14:11:23 +02:00
parent 1d7bf5a08b
commit 5ce78cc262
5 changed files with 59 additions and 10 deletions

View file

@ -27,29 +27,29 @@
css: { minimal: minimalView }"> css: { minimal: minimalView }">
<!-- ko with: connectDialog --> <!-- ko with: connectDialog -->
<div class="connect-dialog dialog" data-bind="visible: visible() && !joinOnly()"> <div class="connect-dialog dialog" data-bind="visible: visible() && !joinOnly()">
<div class="dialog-header"> <div id="connect-dialog_title" class="dialog-header">
Connect to Server Connect to Server
</div> </div>
<form data-bind="submit: connect"> <form data-bind="submit: connect">
<table> <table>
<tr data-bind="if: $root.config.connectDialog.address"> <tr data-bind="if: $root.config.connectDialog.address">
<td>Address</td> <td id="connect-dialog_input_address">Address</td>
<td><input id="address" type="text" data-bind="value: address" required></td> <td><input id="address" type="text" data-bind="value: address" required></td>
</tr> </tr>
<tr data-bind="if: $root.config.connectDialog.port"> <tr data-bind="if: $root.config.connectDialog.port">
<td>Port</td> <td id="connect-dialog_input_port">Port</td>
<td><input id="port" type="text" data-bind="value: port" required></td> <td><input id="port" type="text" data-bind="value: port" required></td>
</tr> </tr>
<tr data-bind="if: $root.config.connectDialog.username"> <tr data-bind="if: $root.config.connectDialog.username">
<td>Username</td> <td id="connect-dialog_input_username">Username</td>
<td><input id="username" type="text" data-bind="value: username" required></td> <td><input id="username" type="text" data-bind="value: username" required></td>
</tr> </tr>
<tr data-bind="if: $root.config.connectDialog.password"> <tr data-bind="if: $root.config.connectDialog.password">
<td>Password</td> <td id="connect-dialog_input_password">Password</td>
<td><input id="password" type="password" data-bind="value: password"></td> <td><input id="password" type="password" data-bind="value: password"></td>
</tr> </tr>
<tr data-bind="if: $root.config.connectDialog.token"> <tr data-bind="if: $root.config.connectDialog.token">
<td>Tokens</td> <td id="connect-dialog_input_tokens">Tokens</td>
<td> <td>
<input type="text" data-bind='value: tokenToAdd, valueUpdate: "afterkeydown"'> <input type="text" data-bind='value: tokenToAdd, valueUpdate: "afterkeydown"'>
</td> </td>
@ -57,8 +57,8 @@
<tr data-bind="if: $root.config.connectDialog.token"> <tr data-bind="if: $root.config.connectDialog.token">
<td></td> <td></td>
<td> <td>
<button class="dialog-submit" type="button" data-bind="enable: selectedTokens().length > 0, click: removeSelectedTokens()">Remove</button> <button id="connect-dialog_controls_remove" class="dialog-submit" type="button" data-bind="enable: selectedTokens().length > 0, click: removeSelectedTokens()">Remove</button>
<button class="dialog-submit" type="button" data-bind="enable: tokenToAdd().length > 0, click: addToken()">Add</button> <button id="connect-dialog_controls_add" class="dialog-submit" type="button" data-bind="enable: tokenToAdd().length > 0, click: addToken()">Add</button>
</td> </td>
</tr> </tr>
<tr data-bind="if: $root.config.connectDialog.token, visible: tokens().length > 0"> <tr data-bind="if: $root.config.connectDialog.token, visible: tokens().length > 0">
@ -71,8 +71,8 @@
</tr> </tr>
</table> </table>
<div class="dialog-footer"> <div class="dialog-footer">
<input class="dialog-close" type="button" data-bind="click: hide" value="Cancel"> <input id="connect-dialog_controls_cancel" class="dialog-close" type="button" data-bind="click: hide" value="Cancel">
<input class="dialog-submit" type="submit" value="Connect"> <input id="connect-dialog_controls_connect" class="dialog-submit" type="submit" value="Connect">
</div> </div>
</form> </form>
</div> </div>

View file

@ -1015,6 +1015,16 @@ var voiceHandler
var testVoiceHandler var testVoiceHandler
function translateEverything() { function translateEverything() {
document.querySelector('#connect-dialog_title').textContent = translate('connectdialog.title');
document.querySelector('#connect-dialog_input_address').textContent = translate('connectdialog.address');
document.querySelector('#connect-dialog_input_port').textContent = translate('connectdialog.port');
document.querySelector('#connect-dialog_input_username').textContent = translate('connectdialog.username');
document.querySelector('#connect-dialog_input_password').textContent = translate('connectdialog.password');
document.querySelector('#connect-dialog_input_tokens').textContent = translate('connectdialog.tokens');
document.querySelector('#connect-dialog_controls_remove').textContent = translate('connectdialog.remove');
document.querySelector('#connect-dialog_controls_add').textContent = translate('connectdialog.add');
document.querySelector('#connect-dialog_controls_cancel').setAttribute('value', translate('connectdialog.cancel'));
document.querySelector('#connect-dialog_controls_connect').setAttribute('value', translate('connectdialog.connect'));
} }
async function main() { async function main() {

13
loc/de.json Normal file
View file

@ -0,0 +1,13 @@
{
"connectdialog.title": "Verbindung herstellen",
"connectdialog.address": "Adresse",
"connectdialog.port": "Port",
"connectdialog.username": "Nutzername",
"connectdialog.password": "Passwort",
"connectdialog.tokens": "Tokens",
"connectdialog.remove": "Entfernen",
"connectdialog.add": "Hinzufügen",
"connectdialog.cancel": "Abbrechen",
"connectdialog.connect": "Verbinden"
}

13
loc/en.json Normal file
View file

@ -0,0 +1,13 @@
{
"connectdialog.title": "Connect to Server",
"connectdialog.address": "Address",
"connectdialog.port": "Port",
"connectdialog.username": "Username",
"connectdialog.password": "Password",
"connectdialog.tokens": "Tokens",
"connectdialog.remove": "Remove",
"connectdialog.add": "Add",
"connectdialog.cancel": "Cancel",
"connectdialog.connect": "Connect"
}

13
loc/eo.json Normal file
View file

@ -0,0 +1,13 @@
{
"connectdialog.title": "Konektado",
"connectdialog.address": "Adreso",
"connectdialog.port": "Pordo",
"connectdialog.username": "Uzantnomo",
"connectdialog.password": "Pasvorto",
"connectdialog.tokens": "Ĵetonoj",
"connectdialog.remove": "Forigi",
"connectdialog.add": "Aldoni",
"connectdialog.cancel": "Nuligi",
"connectdialog.connect": "Konekti"
}