new
This commit is contained in:
@@ -5,25 +5,25 @@
|
||||
systemDictionary = {
|
||||
"Admin adapter settings": { "cn": "The settings for the admin adapter", "en": "The settings for the admin adapter"},
|
||||
"Authentication was deactivated": { "cn": "Authentication was deactivated", "en": "Authentication was deactivated"},
|
||||
"Authentication:": { "cn": "Authentication", "en": "Authentication"},
|
||||
"Auto update:": { "cn": "Check for updates", "en": "Check for updates"},
|
||||
"Background": { "cn": "Background", "en": "Background"},
|
||||
"Authentication:": { "cn": "认证", "en": "Authentication"},
|
||||
"Auto update:": { "cn": "自动更新", "en": "Check for updates"},
|
||||
"Background": { "cn": "背景", "en": "Background"},
|
||||
"Background color of the login screen": { "cn": "Background color of the login screen", "en": "Background color of the login screen"},
|
||||
"Background image": { "cn": "Background image", "en": "Background image"},
|
||||
"Background image": { "cn": "背景图片", "en": "Background image"},
|
||||
"Cache:": { "cn": "Cache", "en": "Cache"},
|
||||
"Chained certificate:": { "cn": "Chained certificate", "en": "Chained certificate"},
|
||||
"Disable authentication": { "cn": "Disable authentication", "en": "Disable authentication"},
|
||||
"Enabled:": { "cn": "Enabled", "en": "Enabled"},
|
||||
"Events threshold value:": { "cn": "Events threshold value", "en": "Events threshold value"},
|
||||
"Hide logo": { "cn": "Hide logo", "en": "Hide logo"},
|
||||
"Hide logo": { "cn": "隐藏图标", "en": "Hide logo"},
|
||||
"IP:": { "cn": "IP", "en": "IP"},
|
||||
"Ignore warning": { "cn": "Ignore warning", "en": "Ignore warning"},
|
||||
"Let's Encrypt settings": { "cn": "Let's Encrypt settings", "en": "Let's Encrypt settings"},
|
||||
"Listen on all IPs": { "cn": "Listen on all IPs", "en": "Listen on all IPs"},
|
||||
"Login timeout(sec):": { "cn": "Login timeout(sec)", "en": "Login timeout(sec)"},
|
||||
"Login timeout(sec):": { "cn": "登录超时(秒)", "en": "Login timeout(sec)"},
|
||||
"Own motto": { "cn": "Own motto", "en": "Own motto"},
|
||||
"Port to check the domain:": { "cn": "Port to check the domain", "en": "Port to check the domain"},
|
||||
"Port:": { "cn": "Port", "en": "Port"},
|
||||
"Port:": { "cn": "端口", "en": "Port"},
|
||||
"Private certificate:": { "cn": "Private certificate", "en": "Private certificate"},
|
||||
"Public certificate:": { "cn": "Public certificate", "en": "Public certificate"},
|
||||
"Run as:": { "cn": "Run as", "en": "Run as"},
|
||||
@@ -39,9 +39,9 @@ systemDictionary = {
|
||||
"every 3 days": { "cn": "every 3 days", "en": "every 3 days"},
|
||||
"every day": { "cn": "every day", "en": "every day"},
|
||||
"every week": { "cn": "every week", "en": "every week"},
|
||||
"manually": { "cn": "manually", "en": "manually"},
|
||||
"monthly": { "cn": "monthly", "en": "monthly"},
|
||||
"place here": { "cn": "place the files here", "en": "place the files here"},
|
||||
"manually": { "cn": "手动", "en": "manually"},
|
||||
"monthly": { "cn": "手动", "en": "monthly"},
|
||||
"place here": { "cn": "拖放文件到这里", "en": "place the files here"},
|
||||
"tooltip_auth": { "cn": "Require a login and a password to access the admin page. This can be managed on the users tab.", "en": "Require a login and a password to access the admin page. This can be managed on the users tab."},
|
||||
"tooltip_autoUpdate": { "cn": "Check periodically for updates of adapter", "en": "Check periodically for updates of adapter"},
|
||||
"tooltip_bind": { "cn": "IP address where the admin will listen on", "en": "IP address where the admin will listen on"},
|
||||
|
||||
@@ -27,123 +27,59 @@ function preInit () {
|
||||
// Extend dictionary with standard words for adapter
|
||||
if (typeof systemDictionary === 'undefined') systemDictionary = {};
|
||||
|
||||
systemDictionary.save = {"en": "Save", "fr": "Sauvegarder", "nl": "Opslaan", "es": "Salvar", "pt": "Salve", "it": "Salvare", "de": "Speichern", "pl": "Zapisać", "ru": "Сохранить"};
|
||||
systemDictionary.saveclose = {"en": "Save and close", "fr": "Sauver et fermer", "nl": "Opslaan en afsluiten","es": "Guardar y cerrar", "pt": "Salvar e fechar", "it": "Salva e chiudi", "de": "Speichern und schließen", "pl": "Zapisz i zamknij", "ru": "Сохранить и выйти"};
|
||||
systemDictionary.none = {"en": "none", "fr": "aucun", "nl": "geen", "es": "ninguna", "pt": "Nenhum", "it": "nessuna", "de": "keins", "pl": "Żaden", "ru": ""};
|
||||
systemDictionary.nonerooms = {"en": "", "fr": "", "nl": "", "es": "", "pt": "", "it": "", "de": "", "pl": "", "ru": ""};
|
||||
systemDictionary.nonefunctions = {"en": "", "fr": "", "nl": "", "es": "", "pt": "", "it": "", "de": "", "pl": "", "ru": ""};
|
||||
systemDictionary.all = {"en": "all", "fr": "tout", "nl": "alle", "es": "todas", "pt": "todos", "it": "tutti", "de": "alle", "pl": "wszystko", "ru": "все"};
|
||||
systemDictionary['Device list'] = {"en": "Device list", "fr": "Liste des périphériques", "nl": "Lijst met apparaten", "es": "Lista de dispositivos", "pt": "Lista de dispositivos", "it": "Elenco dispositivi", "de": "Geräteliste", "pl": "Lista urządzeń", "ru": "Список устройств"};
|
||||
systemDictionary['new device'] = {"en": "new device", "fr": "nouvel appareil", "nl": "nieuw apparaat", "es": "Nuevo dispositivo", "pt": "Novo dispositivo", "it": "nuovo dispositivo", "de": "Neues Gerät", "pl": "nowe urządzenie", "ru": "Новое устройство"};
|
||||
systemDictionary.edit = {"en": "edit", "fr": "modifier", "nl": "Bewerk", "es": "editar", "pt": "editar", "it": "modificare", "de": "Ändern", "pl": "edytować", "ru": "Изменить"};
|
||||
systemDictionary.delete = {"en": "delete", "fr": "effacer", "nl": "Delete", "es": "borrar", "pt": "excluir", "it": "Elimina", "de": "Löschen", "pl": "kasować", "ru": "Удалить"};
|
||||
systemDictionary.pair = {"en": "pair", "fr": "paire", "nl": "paar", "es": "par", "pt": "par", "it": "paio", "de": "Verbinden", "pl": "para", "ru": "Связать"};
|
||||
systemDictionary.unpair = {"en": "unpair", "fr": "unpair", "nl": "Unpair", "es": "desvincular", "pt": "unpair", "it": "Disaccoppia", "de": "Trennen", "pl": "unpair", "ru": "Разорвать связь"};
|
||||
systemDictionary.ok = {"en": "Ok", "fr": "D'accord", "nl": "OK", "es": "De acuerdo", "pt": "Está bem", "it": "Ok", "de": "Ok", "pl": "Ok", "ru": "Ok"};
|
||||
systemDictionary.cancel = {"en": "Cancel", "fr": "Annuler", "nl": "Annuleer", "es": "Cancelar", "pt": "Cancelar", "it": "Annulla", "de": "Abbrechen", "pl": "Anuluj", "ru": "Отмена"};
|
||||
systemDictionary.Message = {"en": "Message", "fr": "Message", "nl": "Bericht", "es": "Mensaje", "pt": "Mensagem", "it": "Messaggio", "de": "Mitteilung", "pl": "Wiadomość", "ru": "Сообщение"};
|
||||
systemDictionary.close = {"en": "Close", "fr": "Fermer", "nl": "Dichtbij", "es": "Cerca", "pt": "Fechar", "it": "Vicino", "de": "Schließen", "pl": "Blisko", "ru": "Закрыть"};
|
||||
systemDictionary.htooltip = {"en": "Click for help", "fr": "Cliquez pour obtenir de l'aide", "nl": "Klik voor hulp", "es": "Haz clic para obtener ayuda", "pt": "Clique para ajuda", "it": "Fai clic per chiedere aiuto", "de": "Anklicken", "pl": "Kliknij, aby uzyskać pomoc", "ru": "Перейти по ссылке"};
|
||||
systemDictionary.save = {"en": "Save", "cn": "保存", "nl": "Opslaan", "es": "Salvar", "pt": "Salve", "it": "Salvare", "de": "Speichern", "pl": "Zapisać", "ru": "Сохранить"};
|
||||
systemDictionary.saveclose = {"en": "Save and close", "cn": "保存并退出", "nl": "Opslaan en afsluiten","es": "Guardar y cerrar", "pt": "Salvar e fechar", "it": "Salva e chiudi", "de": "Speichern und schließen", "pl": "Zapisz i zamknij", "ru": "Сохранить и выйти"};
|
||||
systemDictionary.none = {"en": "none", "cn": "none", "nl": "geen", "es": "ninguna", "pt": "Nenhum", "it": "nessuna", "de": "keins", "pl": "Żaden", "ru": ""};
|
||||
systemDictionary.nonerooms = {"en": "", "cn": "", "nl": "", "es": "", "pt": "", "it": "", "de": "", "pl": "", "ru": ""};
|
||||
systemDictionary.nonefunctions = {"en": "", "cn": "", "nl": "", "es": "", "pt": "", "it": "", "de": "", "pl": "", "ru": ""};
|
||||
systemDictionary.all = {"en": "all", "cn": "全部", "nl": "alle", "es": "todas", "pt": "todos", "it": "tutti", "de": "alle", "pl": "wszystko", "ru": "все"};
|
||||
systemDictionary['Device list'] = {"en": "Device list", "cn": "设备列表", "nl": "Lijst met apparaten", "es": "Lista de dispositivos", "pt": "Lista de dispositivos", "it": "Elenco dispositivi", "de": "Geräteliste", "pl": "Lista urządzeń", "ru": "Список устройств"};
|
||||
systemDictionary['new device'] = {"en": "new device", "cn": "新设备", "nl": "nieuw apparaat", "es": "Nuevo dispositivo", "pt": "Novo dispositivo", "it": "nuovo dispositivo", "de": "Neues Gerät", "pl": "nowe urządzenie", "ru": "Новое устройство"};
|
||||
systemDictionary.edit = {"en": "edit", "cn": "编辑", "nl": "Bewerk", "es": "editar", "pt": "editar", "it": "modificare", "de": "Ändern", "pl": "edytować", "ru": "Изменить"};
|
||||
systemDictionary.delete = {"en": "delete", "cn": "删除", "nl": "Delete", "es": "borrar", "pt": "excluir", "it": "Elimina", "de": "Löschen", "pl": "kasować", "ru": "Удалить"};
|
||||
systemDictionary.pair = {"en": "pair", "cn": "paire", "nl": "paar", "es": "par", "pt": "par", "it": "paio", "de": "Verbinden", "pl": "para", "ru": "Связать"};
|
||||
systemDictionary.unpair = {"en": "unpair", "cn": "unpair", "nl": "Unpair", "es": "desvincular", "pt": "unpair", "it": "Disaccoppia", "de": "Trennen", "pl": "unpair", "ru": "Разорвать связь"};
|
||||
systemDictionary.ok = {"en": "Ok", "cn": "确认", "nl": "OK", "es": "De acuerdo", "pt": "Está bem", "it": "Ok", "de": "Ok", "pl": "Ok", "ru": "Ok"};
|
||||
systemDictionary.cancel = {"en": "Cancel", "cn": "取消", "nl": "Annuleer", "es": "Cancelar", "pt": "Cancelar", "it": "Annulla", "de": "Abbrechen", "pl": "Anuluj", "ru": "Отмена"};
|
||||
systemDictionary.Message = {"en": "Message", "cn": "信息", "nl": "Bericht", "es": "Mensaje", "pt": "Mensagem", "it": "Messaggio", "de": "Mitteilung", "pl": "Wiadomość", "ru": "Сообщение"};
|
||||
systemDictionary.close = {"en": "Close", "cn": "关闭", "nl": "Dichtbij", "es": "Cerca", "pt": "Fechar", "it": "Vicino", "de": "Schließen", "pl": "Blisko", "ru": "Закрыть"};
|
||||
systemDictionary.htooltip = {"en": "Click for help", "cn": "帮助", "nl": "Klik voor hulp", "es": "Haz clic para obtener ayuda", "pt": "Clique para ajuda", "it": "Fai clic per chiedere aiuto", "de": "Anklicken", "pl": "Kliknij, aby uzyskać pomoc", "ru": "Перейти по ссылке"};
|
||||
systemDictionary.saveConfig = {
|
||||
"en": "Save configuration to file",
|
||||
"de": "Speichern Sie die Konfiguration in der Datei",
|
||||
"ru": "Сохранить конфигурацию в файл",
|
||||
"pt": "Salvar configuração no arquivo",
|
||||
"nl": "Sla configuratie op naar bestand",
|
||||
"fr": "Enregistrer la configuration dans un fichier",
|
||||
"it": "Salva la configurazione nel file",
|
||||
"es": "Guardar configuración en archivo",
|
||||
"pl": "Zapisz konfigurację do pliku"
|
||||
"cn": "Save configuration to file"
|
||||
};
|
||||
systemDictionary.loadConfig = {
|
||||
"en": "Load configuration from file",
|
||||
"de": "Laden Sie die Konfiguration aus der Datei",
|
||||
"ru": "Загрузить конфигурацию из файла",
|
||||
"pt": "Carregar configuração do arquivo",
|
||||
"nl": "Laad de configuratie uit het bestand",
|
||||
"fr": "Charger la configuration à partir du fichier",
|
||||
"it": "Carica la configurazione dal file",
|
||||
"es": "Cargar configuración desde archivo",
|
||||
"pl": "Załaduj konfigurację z pliku"
|
||||
"cn": "Load configuration from file"
|
||||
};
|
||||
systemDictionary.otherConfig = {
|
||||
"en": "Configuration from other adapter %s",
|
||||
"de": "Konfiguration von anderem Adapter %s",
|
||||
"ru": "Конфигурация из другого адаптера %s",
|
||||
"pt": "Configuração de outro adaptador %s",
|
||||
"nl": "Configuratie vanaf andere adapter %s",
|
||||
"fr": "Configuration à partir d'un autre adaptateur %s",
|
||||
"it": "Configurazione da altro adattatore %s",
|
||||
"es": "Configuración desde otro adaptador %s",
|
||||
"pl": "Konfiguracja z innego adaptera %s"
|
||||
"cn": "Configuration from other adapter %s"
|
||||
};
|
||||
systemDictionary.invalidConfig = {
|
||||
"en": "Invalid JSON file",
|
||||
"de": "Ungültige JSON-Datei",
|
||||
"ru": "Недопустимый файл JSON",
|
||||
"pt": "Arquivo JSON inválido",
|
||||
"nl": "Ongeldig JSON-bestand",
|
||||
"fr": "Fichier JSON non valide",
|
||||
"it": "File JSON non valido",
|
||||
"es": "Archivo JSON no válido",
|
||||
"pl": "Nieprawidłowy plik JSON"
|
||||
"en": "Invalid JSON file"
|
||||
};
|
||||
systemDictionary.configLoaded = {
|
||||
"en": "Configuration was successfully loaded",
|
||||
"de": "Die Konfiguration wurde erfolgreich geladen",
|
||||
"ru": "Конфигурация успешно загружена",
|
||||
"pt": "Configuração foi carregada com sucesso",
|
||||
"nl": "Configuratie is succesvol geladen",
|
||||
"fr": "La configuration a été chargée avec succès",
|
||||
"it": "La configurazione è stata caricata correttamente",
|
||||
"es": "La configuración se cargó correctamente",
|
||||
"pl": "Konfiguracja została pomyślnie załadowana"
|
||||
"cn": "Configuration was successfully loaded"
|
||||
};
|
||||
systemDictionary.maxTableRaw = {
|
||||
"en": "Maximum number of allowed raws",
|
||||
"de": "Maximale Anzahl von erlaubten Tabellenzeilen",
|
||||
"ru": "Достигнуто максимальное число строк",
|
||||
"it": "Numero massimo di raw consentiti",
|
||||
"fr": "Nombre maximum de raw autorisés",
|
||||
"nl": "Maximumaantal toegestane raws",
|
||||
"pt": "Número máximo de raias permitidas",
|
||||
"es": "Número máximo de raws permitidos",
|
||||
"pl": "Maksymalna liczba dozwolonych surowców"
|
||||
"cn": "Maximum number of allowed raws"
|
||||
};
|
||||
systemDictionary.maxTableRawInfo = {"en": "Warning", "de": "Warnung", "ru": "Внимание", "pt": "Atenção", "nl": "Waarschuwing", "fr": "Attention", "it": "avvertimento", "es": "Advertencia", "pl": "Ostrzeżenie"};
|
||||
systemDictionary.maxTableRawInfo = {"en": "Warning", "cn": "提示"};
|
||||
systemDictionary["Main settings"] = {
|
||||
"en": "Main settings",
|
||||
"de": "Haupteinstellungen",
|
||||
"ru": "Основные настройки",
|
||||
"pt": "Configurações principais",
|
||||
"nl": "Belangrijkste instellingen",
|
||||
"fr": "Réglages principaux",
|
||||
"it": "Impostazioni principali",
|
||||
"es": "Ajustes principales",
|
||||
"pl": "Ustawienia główne"
|
||||
"cn": "基本设置"
|
||||
};
|
||||
|
||||
systemDictionary["Let's Encrypt SSL"] = {
|
||||
"en": "Let's Encrypt Certificates",
|
||||
"de": "Let's Encrypt Zertifikate",
|
||||
"ru": "Let's Encrypt Сертификаты",
|
||||
"pt": "Let's Encrypt Certificados",
|
||||
"nl": "Let's Encrypt certificaten",
|
||||
"fr": "Let's Encrypt Certificats",
|
||||
"it": "Let's Encrypt certificati",
|
||||
"es": "Let's Encrypt Certificados",
|
||||
"pl": "Let's Encrypt certyfikaty"
|
||||
"cn": "Let's Encrypt Certificates"
|
||||
};
|
||||
systemDictionary["Please activate secure communication"] = {
|
||||
"en": "Please activate secure communication",
|
||||
"de": "Bitte sichere Kommunikation aktivieren",
|
||||
"ru": "Включите безопасную связь",
|
||||
"pt": "Active a comunicação segura",
|
||||
"nl": "Activeer alstublieft beveiligde communicatie",
|
||||
"fr": "Veuillez activer la communication sécurisée",
|
||||
"it": "Si prega di attivare la comunicazione sicura",
|
||||
"es": "Por favor active la comunicación segura",
|
||||
"pl": "Aktywuj bezpieczną komunikację"
|
||||
"cn": "Please activate secure communication"
|
||||
};
|
||||
//socket.on('connection', function () {
|
||||
loadSystemConfig(function () {
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -21,7 +21,7 @@ function translateWord(text, lang, dictionary) {
|
||||
}
|
||||
}
|
||||
} else if (typeof text === 'string' && !text.match(/_tooltip$/)) {
|
||||
console.log('"' + text + '": {"en": "' + text + '", "de": "' + text + '", "ru": "' + text + '", "pt": "' + text + '", "nl": "' + text + '", "fr": "' + text + '", "es": "' + text + '", "pl": "' + text + '", "it": "' + text + '"},');
|
||||
console.log('"' + text + '": {"en": "' + text + '", "cn": "' + text + '"},');
|
||||
} else if (typeof text !== 'string') {
|
||||
console.warn('Trying to translate non-text:' + text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user