iobroker.zeptrion 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/i18n/de.json +16 -0
- package/i18n/en.json +16 -0
- package/i18n/es.json +16 -0
- package/i18n/fr.json +16 -0
- package/i18n/it.json +16 -0
- package/i18n/nl.json +16 -0
- package/i18n/pl.json +16 -0
- package/i18n/pt.json +16 -0
- package/i18n/ru.json +16 -0
- package/i18n/uk.json +16 -0
- package/i18n/zh-cn.json +16 -0
- package/io-package.json +14 -14
- package/main.js +29 -18
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -176,6 +176,10 @@ npm run test:integration # starts a real js-controller (takes longer)
|
|
|
176
176
|
|
|
177
177
|
## Changelog
|
|
178
178
|
|
|
179
|
+
### 1.0.11 (2026-08-10)
|
|
180
|
+
|
|
181
|
+
- Fix: v1.0.10 translated all onMessage() UI text to plain English only. Implemented full multi-language support instead, using the official @iobroker/adapter-core I18n module (reads system.config.common.language automatically, falls back to English for unsupported languages). Added a new i18n/ directory with all 11 required languages. ioBroker log entries remain English-only; only the admin-dialog result text is now localized. Also fixed a packaging bug: the new i18n/ folder was missing from package.json's "files" allowlist, which would have excluded it from the published npm package - caught via an actual npm pack + tarball-extraction test before pushing. Verified round-trip in German, English, and French.
|
|
182
|
+
|
|
179
183
|
### 1.0.10 (2026-08-10)
|
|
180
184
|
|
|
181
185
|
- Fix all remaining findings from the follow-up review: translated 18 German error messages in validateDeviceRow(), the 5 error-code-to-message translations in handleDeviceError(), 9 German strings in thrown Error objects, and the bonjour-service install-hint rejection message. Per explicit maintainer direction, all UI-facing result text in onMessage (CSV import report, device test results, discovery summary) is now English as well, superseding the earlier decision to keep it German for the target audience. No migration needed - none of these fixes touch persisted object common properties.
|
|
@@ -196,10 +200,7 @@ npm run test:integration # starts a real js-controller (takes longer)
|
|
|
196
200
|
- Admin UI: the three `validatorErrorText` messages are now inline i18n objects instead of plain English strings (ioBroker checker W5617).
|
|
197
201
|
- Dependencies: raised the declared minimums for `bonjour-service` (^1.2.1 -> ^1.4.3) and `eslint` (^10.6.0 -> ^10.7.0); both were already covered by the existing caret ranges, so no behaviour changes.
|
|
198
202
|
|
|
199
|
-
### 1.0.4
|
|
200
|
-
- Documentation only: added a Buy Me a Coffee link next to the PayPal donate badge. No functional changes.
|
|
201
|
-
|
|
202
|
-
### 1.0.3 and older
|
|
203
|
+
### 1.0.4 and older
|
|
203
204
|
|
|
204
205
|
Older changelog entries can be found in [CHANGELOG_OLD.md](CHANGELOG_OLD.md).
|
|
205
206
|
|
package/i18n/de.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csvFieldEmpty": "CSV-Feld ist leer. Format: host;name;kanäle;art;laufzeit_s;kipp_ms;smartfront;poll_s;laufzeit_kanal_s (nur host ist Pflicht).",
|
|
3
|
+
"hostAlreadyConfigured": "Host bereits konfiguriert",
|
|
4
|
+
"csvRowError": "❌ Zeile %s (%s): %s",
|
|
5
|
+
"csvRowImported": "✅ Zeile %s: %s (%s) als \"%s\" übernommen",
|
|
6
|
+
"csvImportSummary": "%s von %s Zeile(n) importiert.%s\n\n%s",
|
|
7
|
+
"csvImportRestartHint": " Adapter startet neu; Dialog schliessen und neu öffnen.",
|
|
8
|
+
"csvImportFailed": "CSV-Import fehlgeschlagen: %s",
|
|
9
|
+
"noDevicesWithHost": "Keine Geräte mit Host in der Tabelle.",
|
|
10
|
+
"testInvalidIp": "❌ %s (%s): ungültige IP-Adresse",
|
|
11
|
+
"testChannelsSuffix": ", %s Kanäle",
|
|
12
|
+
"testDeviceOk": "✅ %s (%s): zeptrion %s%s, SW %s, SN %s",
|
|
13
|
+
"testNotZeptrion": "⚠️ %s (%s): antwortet, aber KEIN zeptrion-Gerät (sys=\"%s\")",
|
|
14
|
+
"testUnreachable": "❌ %s (%s): nicht erreichbar (%s)",
|
|
15
|
+
"discoveryFinished": "Suche abgeschlossen: %s Gerät(e) im Netz gefunden, %s neu (deaktiviert) übernommen. Instanz-Konfiguration schliessen und neu öffnen, um sie in der Tabelle zu sehen und zu aktivieren."
|
|
16
|
+
}
|
package/i18n/en.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csvFieldEmpty": "CSV field is empty. Format: host;name;channels;type;runtime_s;tilt_ms;smartfront;poll_s;runtime_channel_s (only host is required).",
|
|
3
|
+
"hostAlreadyConfigured": "Host already configured",
|
|
4
|
+
"csvRowError": "❌ Row %s (%s): %s",
|
|
5
|
+
"csvRowImported": "✅ Row %s: %s (%s) imported as \"%s\"",
|
|
6
|
+
"csvImportSummary": "%s of %s row(s) imported.%s\n\n%s",
|
|
7
|
+
"csvImportRestartHint": " Adapter restarts; close and reopen the dialog.",
|
|
8
|
+
"csvImportFailed": "CSV import failed: %s",
|
|
9
|
+
"noDevicesWithHost": "No devices with a host in the table.",
|
|
10
|
+
"testInvalidIp": "❌ %s (%s): invalid IP address",
|
|
11
|
+
"testChannelsSuffix": ", %s channels",
|
|
12
|
+
"testDeviceOk": "✅ %s (%s): zeptrion %s%s, SW %s, SN %s",
|
|
13
|
+
"testNotZeptrion": "⚠️ %s (%s): responds, but is NOT a zeptrion device (sys=\"%s\")",
|
|
14
|
+
"testUnreachable": "❌ %s (%s): unreachable (%s)",
|
|
15
|
+
"discoveryFinished": "Discovery finished: %s device(s) found on the network, %s newly added (disabled). Close and reopen the instance configuration to see them in the table and enable them."
|
|
16
|
+
}
|
package/i18n/es.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csvFieldEmpty": "El campo CSV está vacío. Formato: host;name;channels;type;runtime_s;tilt_ms;smartfront;poll_s;runtime_channel_s (solo host es obligatorio).",
|
|
3
|
+
"hostAlreadyConfigured": "Host ya configurado",
|
|
4
|
+
"csvRowError": "❌ Fila %s (%s): %s",
|
|
5
|
+
"csvRowImported": "✅ Fila %s: %s (%s) importado como \"%s\"",
|
|
6
|
+
"csvImportSummary": "%s de %s fila(s) importadas.%s\n\n%s",
|
|
7
|
+
"csvImportRestartHint": " El adaptador se reinicia; cierre y vuelva a abrir el diálogo.",
|
|
8
|
+
"csvImportFailed": "Error al importar el CSV: %s",
|
|
9
|
+
"noDevicesWithHost": "No hay dispositivos con host en la tabla.",
|
|
10
|
+
"testInvalidIp": "❌ %s (%s): dirección IP no válida",
|
|
11
|
+
"testChannelsSuffix": ", %s canales",
|
|
12
|
+
"testDeviceOk": "✅ %s (%s): zeptrion %s%s, SW %s, SN %s",
|
|
13
|
+
"testNotZeptrion": "⚠️ %s (%s): responde, pero NO es un dispositivo zeptrion (sys=\"%s\")",
|
|
14
|
+
"testUnreachable": "❌ %s (%s): inaccesible (%s)",
|
|
15
|
+
"discoveryFinished": "Búsqueda finalizada: %s dispositivo(s) encontrado(s) en la red, %s añadido(s) recientemente (desactivado). Cierre y vuelva a abrir la configuración de la instancia para verlos en la tabla y activarlos."
|
|
16
|
+
}
|
package/i18n/fr.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csvFieldEmpty": "Le champ CSV est vide. Format : host;name;channels;type;runtime_s;tilt_ms;smartfront;poll_s;runtime_channel_s (seul host est requis).",
|
|
3
|
+
"hostAlreadyConfigured": "Hôte déjà configuré",
|
|
4
|
+
"csvRowError": "❌ Ligne %s (%s) : %s",
|
|
5
|
+
"csvRowImported": "✅ Ligne %s : %s (%s) importé comme \"%s\"",
|
|
6
|
+
"csvImportSummary": "%s ligne(s) sur %s importée(s).%s\n\n%s",
|
|
7
|
+
"csvImportRestartHint": " L'adaptateur redémarre ; fermez et rouvrez la boîte de dialogue.",
|
|
8
|
+
"csvImportFailed": "Échec de l'importation CSV : %s",
|
|
9
|
+
"noDevicesWithHost": "Aucun appareil avec un hôte dans le tableau.",
|
|
10
|
+
"testInvalidIp": "❌ %s (%s) : adresse IP invalide",
|
|
11
|
+
"testChannelsSuffix": ", %s canaux",
|
|
12
|
+
"testDeviceOk": "✅ %s (%s) : zeptrion %s%s, SW %s, SN %s",
|
|
13
|
+
"testNotZeptrion": "⚠️ %s (%s) : répond, mais n'est PAS un appareil zeptrion (sys=\"%s\")",
|
|
14
|
+
"testUnreachable": "❌ %s (%s) : injoignable (%s)",
|
|
15
|
+
"discoveryFinished": "Recherche terminée : %s appareil(s) trouvé(s) sur le réseau, %s nouvellement ajouté(s) (désactivé(s)). Fermez et rouvrez la configuration de l'instance pour les voir dans le tableau et les activer."
|
|
16
|
+
}
|
package/i18n/it.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csvFieldEmpty": "Il campo CSV è vuoto. Formato: host;name;channels;type;runtime_s;tilt_ms;smartfront;poll_s;runtime_channel_s (solo host è obbligatorio).",
|
|
3
|
+
"hostAlreadyConfigured": "Host già configurato",
|
|
4
|
+
"csvRowError": "❌ Riga %s (%s): %s",
|
|
5
|
+
"csvRowImported": "✅ Riga %s: %s (%s) importato come \"%s\"",
|
|
6
|
+
"csvImportSummary": "%s di %s riga/e importate.%s\n\n%s",
|
|
7
|
+
"csvImportRestartHint": " L'adattatore si riavvia; chiudere e riaprire la finestra di dialogo.",
|
|
8
|
+
"csvImportFailed": "Importazione CSV non riuscita: %s",
|
|
9
|
+
"noDevicesWithHost": "Nessun dispositivo con host nella tabella.",
|
|
10
|
+
"testInvalidIp": "❌ %s (%s): indirizzo IP non valido",
|
|
11
|
+
"testChannelsSuffix": ", %s canali",
|
|
12
|
+
"testDeviceOk": "✅ %s (%s): zeptrion %s%s, SW %s, SN %s",
|
|
13
|
+
"testNotZeptrion": "⚠️ %s (%s): risponde, ma NON è un dispositivo zeptrion (sys=\"%s\")",
|
|
14
|
+
"testUnreachable": "❌ %s (%s): non raggiungibile (%s)",
|
|
15
|
+
"discoveryFinished": "Ricerca completata: %s dispositivo/i trovato/i sulla rete, %s aggiunto/i di recente (disattivato/i). Chiudere e riaprire la configurazione dell'istanza per vederli nella tabella e attivarli."
|
|
16
|
+
}
|
package/i18n/nl.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csvFieldEmpty": "CSV-veld is leeg. Formaat: host;name;channels;type;runtime_s;tilt_ms;smartfront;poll_s;runtime_channel_s (alleen host is verplicht).",
|
|
3
|
+
"hostAlreadyConfigured": "Host al geconfigureerd",
|
|
4
|
+
"csvRowError": "❌ Rij %s (%s): %s",
|
|
5
|
+
"csvRowImported": "✅ Rij %s: %s (%s) geïmporteerd als \"%s\"",
|
|
6
|
+
"csvImportSummary": "%s van %s rij(en) geïmporteerd.%s\n\n%s",
|
|
7
|
+
"csvImportRestartHint": " Adapter herstart; sluit en heropen het dialoogvenster.",
|
|
8
|
+
"csvImportFailed": "CSV-import mislukt: %s",
|
|
9
|
+
"noDevicesWithHost": "Geen apparaten met een host in de tabel.",
|
|
10
|
+
"testInvalidIp": "❌ %s (%s): ongeldig IP-adres",
|
|
11
|
+
"testChannelsSuffix": ", %s kanalen",
|
|
12
|
+
"testDeviceOk": "✅ %s (%s): zeptrion %s%s, SW %s, SN %s",
|
|
13
|
+
"testNotZeptrion": "⚠️ %s (%s): reageert, maar is GEEN zeptrion-apparaat (sys=\"%s\")",
|
|
14
|
+
"testUnreachable": "❌ %s (%s): onbereikbaar (%s)",
|
|
15
|
+
"discoveryFinished": "Zoeken voltooid: %s apparaat/apparaten gevonden op het netwerk, %s nieuw toegevoegd (uitgeschakeld). Sluit en heropen de instantieconfiguratie om ze in de tabel te zien en in te schakelen."
|
|
16
|
+
}
|
package/i18n/pl.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csvFieldEmpty": "Pole CSV jest puste. Format: host;name;channels;type;runtime_s;tilt_ms;smartfront;poll_s;runtime_channel_s (tylko host jest wymagany).",
|
|
3
|
+
"hostAlreadyConfigured": "Host już skonfigurowany",
|
|
4
|
+
"csvRowError": "❌ Wiersz %s (%s): %s",
|
|
5
|
+
"csvRowImported": "✅ Wiersz %s: %s (%s) zaimportowano jako \"%s\"",
|
|
6
|
+
"csvImportSummary": "Zaimportowano %s z %s wiersz(y).%s\n\n%s",
|
|
7
|
+
"csvImportRestartHint": " Adapter uruchamia się ponownie; zamknij i otwórz ponownie okno dialogowe.",
|
|
8
|
+
"csvImportFailed": "Import CSV nie powiódł się: %s",
|
|
9
|
+
"noDevicesWithHost": "Brak urządzeń z hostem w tabeli.",
|
|
10
|
+
"testInvalidIp": "❌ %s (%s): nieprawidłowy adres IP",
|
|
11
|
+
"testChannelsSuffix": ", %s kanałów",
|
|
12
|
+
"testDeviceOk": "✅ %s (%s): zeptrion %s%s, SW %s, SN %s",
|
|
13
|
+
"testNotZeptrion": "⚠️ %s (%s): odpowiada, ale NIE jest urządzeniem zeptrion (sys=\"%s\")",
|
|
14
|
+
"testUnreachable": "❌ %s (%s): niedostępny (%s)",
|
|
15
|
+
"discoveryFinished": "Wyszukiwanie zakończone: znaleziono %s urządzenie(a) w sieci, dodano %s nowych (wyłączonych). Zamknij i otwórz ponownie konfigurację instancji, aby zobaczyć je w tabeli i je włączyć."
|
|
16
|
+
}
|
package/i18n/pt.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csvFieldEmpty": "O campo CSV está vazio. Formato: host;name;channels;type;runtime_s;tilt_ms;smartfront;poll_s;runtime_channel_s (apenas host é obrigatório).",
|
|
3
|
+
"hostAlreadyConfigured": "Host já configurado",
|
|
4
|
+
"csvRowError": "❌ Linha %s (%s): %s",
|
|
5
|
+
"csvRowImported": "✅ Linha %s: %s (%s) importado como \"%s\"",
|
|
6
|
+
"csvImportSummary": "%s de %s linha(s) importada(s).%s\n\n%s",
|
|
7
|
+
"csvImportRestartHint": " O adaptador reinicia; feche e reabra o diálogo.",
|
|
8
|
+
"csvImportFailed": "Falha na importação do CSV: %s",
|
|
9
|
+
"noDevicesWithHost": "Nenhum dispositivo com host na tabela.",
|
|
10
|
+
"testInvalidIp": "❌ %s (%s): endereço IP inválido",
|
|
11
|
+
"testChannelsSuffix": ", %s canais",
|
|
12
|
+
"testDeviceOk": "✅ %s (%s): zeptrion %s%s, SW %s, SN %s",
|
|
13
|
+
"testNotZeptrion": "⚠️ %s (%s): responde, mas NÃO é um dispositivo zeptrion (sys=\"%s\")",
|
|
14
|
+
"testUnreachable": "❌ %s (%s): inacessível (%s)",
|
|
15
|
+
"discoveryFinished": "Descoberta concluída: %s dispositivo(s) encontrado(s) na rede, %s adicionado(s) recentemente (desativado). Feche e reabra a configuração da instância para os ver na tabela e ativá-los."
|
|
16
|
+
}
|
package/i18n/ru.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csvFieldEmpty": "Поле CSV пустое. Формат: host;name;channels;type;runtime_s;tilt_ms;smartfront;poll_s;runtime_channel_s (обязателен только host).",
|
|
3
|
+
"hostAlreadyConfigured": "Хост уже настроен",
|
|
4
|
+
"csvRowError": "❌ Строка %s (%s): %s",
|
|
5
|
+
"csvRowImported": "✅ Строка %s: %s (%s) добавлена как \"%s\"",
|
|
6
|
+
"csvImportSummary": "%s из %s строк(и) импортировано.%s\n\n%s",
|
|
7
|
+
"csvImportRestartHint": " Адаптер перезапускается; закройте и снова откройте диалог.",
|
|
8
|
+
"csvImportFailed": "Импорт CSV не удался: %s",
|
|
9
|
+
"noDevicesWithHost": "В таблице нет устройств с указанным хостом.",
|
|
10
|
+
"testInvalidIp": "❌ %s (%s): недопустимый IP-адрес",
|
|
11
|
+
"testChannelsSuffix": ", %s каналов",
|
|
12
|
+
"testDeviceOk": "✅ %s (%s): zeptrion %s%s, ПО %s, серийный № %s",
|
|
13
|
+
"testNotZeptrion": "⚠️ %s (%s): отвечает, но НЕ является устройством zeptrion (sys=\"%s\")",
|
|
14
|
+
"testUnreachable": "❌ %s (%s): недоступен (%s)",
|
|
15
|
+
"discoveryFinished": "Поиск завершён: найдено %s устройств(о) в сети, %s добавлено новых (отключены). Закройте и снова откройте конфигурацию экземпляра, чтобы увидеть их в таблице и включить."
|
|
16
|
+
}
|
package/i18n/uk.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csvFieldEmpty": "Поле CSV порожнє. Формат: host;name;channels;type;runtime_s;tilt_ms;smartfront;poll_s;runtime_channel_s (обов'язковий лише host).",
|
|
3
|
+
"hostAlreadyConfigured": "Хост вже налаштовано",
|
|
4
|
+
"csvRowError": "❌ Рядок %s (%s): %s",
|
|
5
|
+
"csvRowImported": "✅ Рядок %s: %s (%s) додано як \"%s\"",
|
|
6
|
+
"csvImportSummary": "%s з %s рядків(ка) імпортовано.%s\n\n%s",
|
|
7
|
+
"csvImportRestartHint": " Адаптер перезапускається; закрийте і знову відкрийте діалог.",
|
|
8
|
+
"csvImportFailed": "Помилка імпорту CSV: %s",
|
|
9
|
+
"noDevicesWithHost": "У таблиці немає пристроїв із хостом.",
|
|
10
|
+
"testInvalidIp": "❌ %s (%s): недійсна IP-адреса",
|
|
11
|
+
"testChannelsSuffix": ", %s каналів",
|
|
12
|
+
"testDeviceOk": "✅ %s (%s): zeptrion %s%s, ПЗ %s, серійний № %s",
|
|
13
|
+
"testNotZeptrion": "⚠️ %s (%s): відповідає, але НЕ є пристроєм zeptrion (sys=\"%s\")",
|
|
14
|
+
"testUnreachable": "❌ %s (%s): недоступний (%s)",
|
|
15
|
+
"discoveryFinished": "Пошук завершено: знайдено %s пристрій(їв) у мережі, %s додано нових (вимкнено). Закрийте і знову відкрийте конфігурацію екземпляра, щоб побачити їх у таблиці та увімкнути."
|
|
16
|
+
}
|
package/i18n/zh-cn.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"csvFieldEmpty": "CSV 字段为空。格式:host;name;channels;type;runtime_s;tilt_ms;smartfront;poll_s;runtime_channel_s(仅 host 为必填)。",
|
|
3
|
+
"hostAlreadyConfigured": "主机已配置",
|
|
4
|
+
"csvRowError": "❌ 第 %s 行(%s):%s",
|
|
5
|
+
"csvRowImported": "✅ 第 %s 行:%s (%s) 已导入为 \"%s\"",
|
|
6
|
+
"csvImportSummary": "已导入 %s / %s 行。%s\n\n%s",
|
|
7
|
+
"csvImportRestartHint": " 适配器正在重启;请关闭并重新打开对话框。",
|
|
8
|
+
"csvImportFailed": "CSV 导入失败:%s",
|
|
9
|
+
"noDevicesWithHost": "表格中没有带主机的设备。",
|
|
10
|
+
"testInvalidIp": "❌ %s (%s):无效的 IP 地址",
|
|
11
|
+
"testChannelsSuffix": ",%s 个通道",
|
|
12
|
+
"testDeviceOk": "✅ %s (%s):zeptrion %s%s,软件版本 %s,序列号 %s",
|
|
13
|
+
"testNotZeptrion": "⚠️ %s (%s):有响应,但不是 zeptrion 设备(sys=\"%s\")",
|
|
14
|
+
"testUnreachable": "❌ %s (%s):无法访问 (%s)",
|
|
15
|
+
"discoveryFinished": "搜索完成:在网络中找到 %s 台设备,新增 %s 台(已禁用)。请关闭并重新打开实例配置,以在表格中查看并启用它们。"
|
|
16
|
+
}
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "zeptrion",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.0.11": {
|
|
7
|
+
"en": "Fix: v1.0.10 translated all onMessage() UI text (CSV import report, device test results, discovery summary) to plain English only. Per user request, implemented full multi-language support for this text instead, using the official @iobroker/adapter-core I18n module (reads system.config.common.language automatically, falls back to English for unsupported languages) - the same officially sanctioned mechanism the maintainer referenced when suggesting 'implement i18n support'. Added a new i18n/ directory (separate from the existing admin/i18n/ used for jsonConfig labels) with all 11 required languages. ioBroker log entries remain English-only regardless of system language, per the separate log requirement; only the admin-dialog result text is now localized. Also fixed a packaging bug found before this release: the new i18n/ folder was missing from package.json's \"files\" allowlist, which would have excluded it from the published npm package and caused a runtime crash on a real install - caught and fixed via an actual npm pack + tarball-extraction test before pushing, not just local testing. Verified: all 9 message templates round-trip correctly in German, English, and French (representative of the other 8 languages); unknown/unsupported system languages correctly fall back to English.",
|
|
8
|
+
"de": "Fix: v1.0.10 hatte den gesamten onMessage()-UI-Text (CSV-Import-Bericht, Gerätetest-Ergebnisse, Discovery-Zusammenfassung) nur auf reines Englisch übersetzt. Auf Nutzerwunsch stattdessen echten Mehrsprachen-Support implementiert, über das offizielle @iobroker/adapter-core-I18n-Modul (liest system.config.common.language automatisch aus, Fallback auf Englisch bei nicht unterstützten Sprachen) - derselbe offiziell vorgesehene Mechanismus, auf den der Maintainer bei „implement i18n support\" verwiesen hat. Neuer i18n/-Ordner ergänzt (getrennt vom bestehenden admin/i18n/ für jsonConfig-Labels) mit allen 11 geforderten Sprachen. ioBroker-Log-Einträge bleiben unabhängig von der Systemsprache Englisch, gemäss der separaten Log-Anforderung; nur der Admin-Dialog-Ergebnistext ist jetzt lokalisiert. Zusätzlich einen Packaging-Fehler behoben, der vor diesem Release gefunden wurde: der neue i18n/-Ordner fehlte in der \"files\"-Positivliste von package.json, wodurch er beim veröffentlichten npm-Paket gefehlt und bei einer echten Installation zum Laufzeitabsturz geführt hätte - entdeckt und behoben über einen echten npm-pack- plus Tarball-Extraktions-Test vor dem Push, nicht nur lokales Testen. Verifiziert: alle 9 Nachrichtenvorlagen funktionieren korrekt auf Deutsch, Englisch und Französisch (stellvertretend für die anderen 8 Sprachen); unbekannte/nicht unterstützte Systemsprachen fallen korrekt auf Englisch zurück.",
|
|
9
|
+
"ru": "Исправление: реализована полноценная многоязычная поддержка UI-текста через официальный модуль I18n adapter-core вместо только английского. Также исправлена ошибка упаковки (папка i18n отсутствовала в списке files package.json).",
|
|
10
|
+
"pt": "Correção: implementado suporte multilíngue completo para o texto da UI através do módulo oficial I18n do adapter-core, em vez de apenas inglês. Também corrigido um erro de empacotamento (a pasta i18n estava ausente da lista files do package.json).",
|
|
11
|
+
"nl": "Fix: volledige meertalige ondersteuning voor UI-tekst geïmplementeerd via de officiële I18n-module van adapter-core, in plaats van alleen Engels. Ook een verpakkingsfout opgelost (de i18n-map ontbrak in de files-lijst van package.json).",
|
|
12
|
+
"fr": "Correction : implémentation d'un véritable support multilingue pour le texte de l'interface via le module I18n officiel d'adapter-core, au lieu de l'anglais uniquement. Correction également d'un bug d'empaquetage (le dossier i18n manquait dans la liste files de package.json).",
|
|
13
|
+
"it": "Correzione: implementato il pieno supporto multilingue per il testo dell'interfaccia tramite il modulo I18n ufficiale di adapter-core, invece del solo inglese. Corretto anche un bug di packaging (la cartella i18n mancava dall'elenco files di package.json).",
|
|
14
|
+
"es": "Corrección: implementado soporte multiidioma completo para el texto de la interfaz mediante el módulo I18n oficial de adapter-core, en lugar de solo inglés. También se corrigió un error de empaquetado (faltaba la carpeta i18n en la lista files de package.json).",
|
|
15
|
+
"pl": "Poprawka: zaimplementowano pełne wsparcie wielojęzyczne dla tekstu interfejsu za pomocą oficjalnego modułu I18n adapter-core, zamiast samego angielskiego. Naprawiono również błąd pakowania (folder i18n brakował na liście files w package.json).",
|
|
16
|
+
"uk": "Виправлення: реалізовано повноцінну багатомовну підтримку тексту інтерфейсу через офіційний модуль I18n adapter-core замість лише англійської. Також виправлено помилку пакування (папка i18n була відсутня у списку files package.json).",
|
|
17
|
+
"zh-cn": "修复:通过官方 adapter-core I18n 模块为界面文本实现了完整的多语言支持,而不仅仅是英文。同时修复了一个打包错误(i18n 文件夹未包含在 package.json 的 files 列表中)。"
|
|
18
|
+
},
|
|
6
19
|
"1.0.10": {
|
|
7
20
|
"en": "Fix all remaining findings from the follow-up review: translated 18 German error messages in validateDeviceRow() (row/duplicate validation, including 6 that were missed in an earlier pass), the 5 error-code-to-message translations in handleDeviceError() (also written to the info.lastError state), 9 German strings in thrown Error objects, and the bonjour-service install-hint rejection message. Per explicit maintainer direction, all UI-facing result text in onMessage (CSV import report lines, device test results, discovery summary) is now English as well, superseding the earlier design decision to keep it German for the target audience - the maintainer clarified that all user-facing text must be English or full i18n, with no exception for admin-dialog result strings. No migration needed: none of these fixes touch persisted object common properties, only log output, transient state values that refresh on the next occurrence, and one-off message-callback payloads.",
|
|
8
21
|
"de": "Behebt alle verbleibenden Befunde aus dem Folge-Review: 18 deutsche Fehlermeldungen in validateDeviceRow() übersetzt (Zeilen-/Duplikat-Validierung, davon 6 in einem früheren Durchgang übersehen), die 5 Fehlercode-zu-Meldung-Übersetzungen in handleDeviceError() (werden auch in den info.lastError-State geschrieben), 9 deutsche Strings in geworfenen Error-Objekten sowie die bonjour-service-Installationshinweis-Meldung. Auf explizite Anweisung des Maintainers ist jetzt auch aller UI-facing Ergebnistext in onMessage (CSV-Import-Bericht, Gerätetest-Ergebnisse, Discovery-Zusammenfassung) Englisch - das ersetzt die frühere Design-Entscheidung, diesen für die Zielgruppe Deutsch zu belassen; der Maintainer stellte klar, dass aller nutzerseitiger Text Englisch oder vollständig i18n sein muss, ohne Ausnahme für Admin-Dialog-Ergebnistexte. Keine Migration nötig: keiner dieser Fixes betrifft persistierte Objekt-common-Eigenschaften, nur Log-Ausgabe, transiente State-Werte (aktualisieren sich beim nächsten Ereignis von selbst) und einmalige Message-Callback-Payloads.",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "Interfejs administratora: trzy komunikaty validatorErrorText są teraz obiektami i18n zamiast zwykłych angielskich ciągów; podniesiono deklarowane wersje minimalne bonjour-service i eslint (obie i tak były objęte istniejącymi zakresami caret). Brak zmian funkcjonalnych.",
|
|
81
94
|
"uk": "Інтерфейс адміністратора: три повідомлення validatorErrorText тепер є вбудованими об'єктами i18n замість простих англійських рядків; підвищено оголошені мінімальні версії bonjour-service та eslint (обидві й так покривалися наявними caret-діапазонами). Без функціональних змін.",
|
|
82
95
|
"zh-cn": "管理界面:三条 validatorErrorText 提示现在使用内联 i18n 对象,而非纯英文字符串;提高了 bonjour-service 和 eslint 的声明最低版本(两者原本就在现有 caret 范围内)。无功能性更改。"
|
|
83
|
-
},
|
|
84
|
-
"1.0.4": {
|
|
85
|
-
"en": "Documentation only: added a Buy Me a Coffee link next to the PayPal donate badge in README.md/README_de.md and the npm package (funding field). No functional changes.",
|
|
86
|
-
"de": "Nur Dokumentation: Buy-Me-a-Coffee-Link neben dem PayPal-Spenden-Badge in README.md/README_de.md sowie im npm-Paket (funding-Feld) ergänzt. Keine funktionalen Änderungen.",
|
|
87
|
-
"ru": "Только документация: добавлена ссылка Buy Me a Coffee рядом со значком пожертвования PayPal в README.md/README_de.md и в npm-пакете (поле funding). Без функциональных изменений.",
|
|
88
|
-
"pt": "Apenas documentação: adicionado um link Buy Me a Coffee junto ao badge de doação PayPal no README.md/README_de.md e no pacote npm (campo funding). Sem alterações funcionais.",
|
|
89
|
-
"nl": "Alleen documentatie: Buy Me a Coffee-link toegevoegd naast de PayPal-donatiebadge in README.md/README_de.md en het npm-pakket (funding-veld). Geen functionele wijzigingen.",
|
|
90
|
-
"fr": "Documentation uniquement : ajout d'un lien Buy Me a Coffee à côté du badge de don PayPal dans README.md/README_de.md et le paquet npm (champ funding). Aucun changement fonctionnel.",
|
|
91
|
-
"it": "Solo documentazione: aggiunto un link Buy Me a Coffee accanto al badge di donazione PayPal in README.md/README_de.md e nel pacchetto npm (campo funding). Nessuna modifica funzionale.",
|
|
92
|
-
"es": "Solo documentación: se añadió un enlace Buy Me a Coffee junto a la insignia de donación de PayPal en README.md/README_de.md y en el paquete npm (campo funding). Sin cambios funcionales.",
|
|
93
|
-
"pl": "Tylko dokumentacja: dodano link Buy Me a Coffee obok odznaki dotacji PayPal w README.md/README_de.md oraz w pakiecie npm (pole funding). Brak zmian funkcjonalnych.",
|
|
94
|
-
"uk": "Лише документація: додано посилання Buy Me a Coffee поруч зі значком пожертв PayPal у README.md/README_de.md та в пакеті npm (поле funding). Без функціональних змін.",
|
|
95
|
-
"zh-cn": "仅文档:在 README.md/README_de.md 及 npm 包(funding 字段)中,于 PayPal 捐赠徽章旁添加了 Buy Me a Coffee 链接。无功能变更。"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/main.js
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
21
|
const utils = require('@iobroker/adapter-core');
|
|
22
|
+
const { I18n } = require('@iobroker/adapter-core');
|
|
22
23
|
const axios = require('axios');
|
|
23
24
|
const { XMLParser } = require('fast-xml-parser');
|
|
24
25
|
|
|
@@ -353,6 +354,14 @@ class Zeptrion extends utils.Adapter {
|
|
|
353
354
|
}
|
|
354
355
|
|
|
355
356
|
async onReady() {
|
|
357
|
+
// Initializes the runtime message-translation system (i18n/*.json) - reads the ioBroker
|
|
358
|
+
// system language from system.config.common.language automatically. Used for onMessage()
|
|
359
|
+
// result text (CSV import report, device test, discovery summary) shown in the admin
|
|
360
|
+
// dialog, so German UI users get German results while everyone else gets English or their
|
|
361
|
+
// own configured language, per maintainer requirement (all user-facing text must be
|
|
362
|
+
// English or full i18n - not always German regardless of the system language).
|
|
363
|
+
await I18n.init(__dirname, this);
|
|
364
|
+
|
|
356
365
|
// One-time (cheap-and-idempotent-every-startup) fix for role/name mistakes present in
|
|
357
366
|
// objects created before this fix (see CHANGELOG). ensureState()/setObjectNotExistsAsync()
|
|
358
367
|
// never touches an object that already exists, so simply updating the adapter does not
|
|
@@ -1742,7 +1751,7 @@ class Zeptrion extends utils.Adapter {
|
|
|
1742
1751
|
try {
|
|
1743
1752
|
const csv = String((obj.message && obj.message.csv) || '').trim();
|
|
1744
1753
|
if (!csv) {
|
|
1745
|
-
if (obj.callback) this.sendTo(obj.from, obj.command, { result:
|
|
1754
|
+
if (obj.callback) this.sendTo(obj.from, obj.command, { result: I18n.translate('csvFieldEmpty') }, obj.callback);
|
|
1746
1755
|
return;
|
|
1747
1756
|
}
|
|
1748
1757
|
const delim = csv.includes(';') ? ';' : ',';
|
|
@@ -1775,9 +1784,9 @@ class Zeptrion extends utils.Adapter {
|
|
|
1775
1784
|
if (['licht', 'lampe'].includes(row.kind)) row.kind = 'light';
|
|
1776
1785
|
|
|
1777
1786
|
const errs = this.validateDeviceRow(row);
|
|
1778
|
-
if (existingHosts.has(row.host.toLowerCase())) errs.push('
|
|
1787
|
+
if (existingHosts.has(row.host.toLowerCase())) errs.push(I18n.translate('hostAlreadyConfigured'));
|
|
1779
1788
|
if (errs.length) {
|
|
1780
|
-
report.push(
|
|
1789
|
+
report.push(I18n.translate('csvRowError', i + 1, row.host || '?', errs.join('; ')));
|
|
1781
1790
|
continue;
|
|
1782
1791
|
}
|
|
1783
1792
|
// ID aus Host ableiten, Kollisionen auflösen
|
|
@@ -1802,7 +1811,7 @@ class Zeptrion extends utils.Adapter {
|
|
|
1802
1811
|
});
|
|
1803
1812
|
existingHosts.add(row.host.toLowerCase());
|
|
1804
1813
|
existingIds.add(candidate);
|
|
1805
|
-
report.push(
|
|
1814
|
+
report.push(I18n.translate('csvRowImported', i + 1, row.name || row.host, row.host, candidate));
|
|
1806
1815
|
added++;
|
|
1807
1816
|
}
|
|
1808
1817
|
|
|
@@ -1810,13 +1819,15 @@ class Zeptrion extends utils.Adapter {
|
|
|
1810
1819
|
instObj.native.devices = devices;
|
|
1811
1820
|
await this.setForeignObjectAsync(`system.adapter.${this.namespace}`, instObj);
|
|
1812
1821
|
}
|
|
1813
|
-
const
|
|
1822
|
+
const restartHint = added ? I18n.translate('csvImportRestartHint') : '';
|
|
1823
|
+
const result = I18n.translate('csvImportSummary', added, lines.length, restartHint, report.join('\n'));
|
|
1814
1824
|
this.log.info(`CSV import: ${added}/${lines.length} rows imported`);
|
|
1815
1825
|
if (obj.callback) this.sendTo(obj.from, obj.command, { result }, obj.callback);
|
|
1816
1826
|
} catch (err) {
|
|
1817
|
-
//
|
|
1818
|
-
|
|
1819
|
-
this.log.warn(
|
|
1827
|
+
// Log entry stays English regardless of system language; the UI-facing message
|
|
1828
|
+
// is localized separately via I18n.translate().
|
|
1829
|
+
this.log.warn(`CSV import failed: ${err.message || err}`);
|
|
1830
|
+
const msg = I18n.translate('csvImportFailed', err.message || err);
|
|
1820
1831
|
if (obj.callback) this.sendTo(obj.from, obj.command, { error: msg }, obj.callback);
|
|
1821
1832
|
}
|
|
1822
1833
|
return;
|
|
@@ -1826,7 +1837,7 @@ class Zeptrion extends utils.Adapter {
|
|
|
1826
1837
|
const devicesCfg = Array.isArray(this.config.devices) ? this.config.devices : [];
|
|
1827
1838
|
const rows = devicesCfg.filter(d => d && d.host);
|
|
1828
1839
|
if (!rows.length) {
|
|
1829
|
-
if (obj.callback) this.sendTo(obj.from, obj.command, { result:
|
|
1840
|
+
if (obj.callback) this.sendTo(obj.from, obj.command, { result: I18n.translate('noDevicesWithHost') }, obj.callback);
|
|
1830
1841
|
return;
|
|
1831
1842
|
}
|
|
1832
1843
|
const lines = [];
|
|
@@ -1837,7 +1848,7 @@ class Zeptrion extends utils.Adapter {
|
|
|
1837
1848
|
if (/^\d+\.\d+\.\d+\.\d+$/.test(host)) {
|
|
1838
1849
|
const octets = host.split('.').map(Number);
|
|
1839
1850
|
if (octets.some(o => o > 255)) {
|
|
1840
|
-
lines.push(
|
|
1851
|
+
lines.push(I18n.translate('testInvalidIp', label, host));
|
|
1841
1852
|
continue;
|
|
1842
1853
|
}
|
|
1843
1854
|
}
|
|
@@ -1850,18 +1861,18 @@ class Zeptrion extends utils.Adapter {
|
|
|
1850
1861
|
const idData = (rootKey && parsed[rootKey]) || {};
|
|
1851
1862
|
if (String(idData.sys ?? '').toUpperCase() === 'ZEPTRION') {
|
|
1852
1863
|
const m = String(idData.type ?? '').match(/^3340-(\d)-/);
|
|
1853
|
-
const ch = m ?
|
|
1854
|
-
lines.push(
|
|
1864
|
+
const ch = m ? I18n.translate('testChannelsSuffix', m[1]) : '';
|
|
1865
|
+
lines.push(I18n.translate('testDeviceOk', label, host, idData.type ?? '?', ch, idData.sw ?? '?', idData.sn ?? '?'));
|
|
1855
1866
|
} else {
|
|
1856
|
-
lines.push(
|
|
1867
|
+
lines.push(I18n.translate('testNotZeptrion', label, host, idData.sys ?? 'unknown'));
|
|
1857
1868
|
}
|
|
1858
1869
|
} catch (err) {
|
|
1859
1870
|
const code = err.code || (err.message || '').substring(0, 40);
|
|
1860
|
-
lines.push(
|
|
1871
|
+
lines.push(I18n.translate('testUnreachable', label, host, code));
|
|
1861
1872
|
}
|
|
1862
1873
|
}
|
|
1863
1874
|
const result = lines.join('\n');
|
|
1864
|
-
this.log.info(`Device test
|
|
1875
|
+
this.log.info(`Device test: ${lines.length} device(s) checked`);
|
|
1865
1876
|
if (obj.callback) this.sendTo(obj.from, obj.command, { result }, obj.callback);
|
|
1866
1877
|
return;
|
|
1867
1878
|
}
|
|
@@ -1871,10 +1882,10 @@ class Zeptrion extends utils.Adapter {
|
|
|
1871
1882
|
this.log.info('Starting mDNS discovery for zeptrion devices...');
|
|
1872
1883
|
const results = await this.discoverDevices(4000);
|
|
1873
1884
|
const added = await this.mergeDiscoveredDevices(results);
|
|
1874
|
-
//
|
|
1875
|
-
|
|
1876
|
-
`Close and reopen the instance configuration to see them in the table and enable them.`;
|
|
1885
|
+
// Log entry stays English regardless of system language; the UI-facing message
|
|
1886
|
+
// is localized separately via I18n.translate().
|
|
1877
1887
|
this.log.info(`Discovery finished: ${results.length} device(s) found on the network, ${added} newly added (disabled).`);
|
|
1888
|
+
const msg = I18n.translate('discoveryFinished', results.length, added);
|
|
1878
1889
|
if (obj.callback) {
|
|
1879
1890
|
this.sendTo(obj.from, obj.command, { result: msg, devices: results }, obj.callback);
|
|
1880
1891
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.zeptrion",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "ioBroker Adapter für Feller zeptrion / zApp WLAN-Aktoren (WLAN-Nebenstelle 4K, WLAN-Zwischenmodul 2K) über die zrap Webservice API - inkl. Sammelbefehlen für Hagelalarm und mDNS-Discovery",
|
|
5
5
|
"author": "Stefan Bühler",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"admin/",
|
|
34
34
|
"main.js",
|
|
35
35
|
"lib/",
|
|
36
|
+
"i18n/",
|
|
36
37
|
"io-package.json",
|
|
37
38
|
"LICENSE"
|
|
38
39
|
],
|