Skip to content

Commit

Permalink
fix: Align Genset remote start disabled messages with Venus (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
mman authored Oct 4, 2024
1 parent bbd49be commit c665eb3
Show file tree
Hide file tree
Showing 17 changed files with 32 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,10 @@ const GeneratorConnectedGenset = ({ componentMode = "compact", generatorConnecte
)
}

// TODO translate?
const infoText = isAutoStartDisabled
? {
title: "Button disabled",
body: "Enable button functionality through genset panel",
title: "",
body: translate("generator.autoStartDisabledMessage"),
}
: undefined

Expand Down
2 changes: 1 addition & 1 deletion src/app/Marine2/components/ui/Box/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const Box = ({
{!withPagination && children}
</div>
{!linkedView && !!infoText && (
<Modal.Frame open={infoOpen} onClose={() => setInfoOpen(false)}>
<Modal.Frame className="max-w-[50%] w-full" open={infoOpen} onClose={() => setInfoOpen(false)}>
<Modal.Body>
<InfoIcon
className="ml-auto mr-auto mt-7 mb-7 w-10 text-victron-blue dark:text-victron-blue-dark cursor-pointer outline-none"
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"windowSize": "إطار: %{width} x %{height}"
},
"generator": {
"autoStartDisabledMessage": "تم تعطيل وظيفة التشغيل عن بعد في المولد. لن يتمكن GX من تشغيل أو إيقاف المولد الآن. اجعله متاحا على لوحة تحكم المولد.",
"fisherPandaAutoStartMessage": "تم تعطيل إمكانية البدء الآلي لفيشر باندا في الوقت الحالي، قم بتشغيلها على لوحة مجموعة المولد بهدف التحكم في مجموعة المولد من هذه اللوحة.",
"temperature": {
"coolant": "سائل التبريد",
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"windowSize": "Okno: %{width} x %{height}"
},
"generator": {
"autoStartDisabledMessage": "Funkce dálkového spouštění je u elektrocentrály vypnutá. Genset GX nyní nebude možné spustit ani zastavit. Povolte ji na ovládacím panelu elektrocentrály.",
"fisherPandaAutoStartMessage": "Funkce automatického startu Fisher Panda je aktuálně deaktivována. Aktivujte ji na panelu generátoru, abyste mohli ovládat generátor z tohoto panelu.",
"temperature": {
"coolant": "Chladicí kapalina",
Expand Down
5 changes: 4 additions & 1 deletion src/app/locales/languages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,12 @@
"screenTooSmall": "Auf einem größeren Bildschirm öffnen, um die Remote-Konsole anzuzeigen"
},
"userAgent": "User agent: %{userAgent}",
"windowSize": "Fenster: %{width} x %{height}"
"windowSize": "Fenster: %{width} x %{height}",
"wsMqttUnavailable1": "Es konnte keine Verbindung mit dem GX-Gerät hergestellt werden.",
"wsMqttUnavailable2": "GX Fehler #60."
},
"generator": {
"autoStartDisabledMessage": "Die Fernstartfunktion ist am Aggregat deaktiviert. Der GX kann das Aggregat jetzt nicht starten oder stoppen. Aktivieren Sie die Funktion auf dem Bedienfeld des Aggregats.",
"fisherPandaAutoStartMessage": "Die AutoStart-Funktion von Fisher Panda ist derzeit deaktiviert. Aktivieren Sie sie im Aggregate-Bedienfeld, um das Aggregat über dieses Bedienfeld zu steuern.",
"temperature": {
"coolant": "Kühlmittel",
Expand Down
12 changes: 9 additions & 3 deletions src/app/locales/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,24 @@
"sendReport": "Send error report",
"title": "An error occured while rendering the application."
},
"wsMqttUnavailable1": "Could not connect to the GX device.",
"wsMqttUnavailable2": "GX Error #60.",
"mqttUnavailable1": "Could not connect to the MQTT server.",
"mqttUnavailable2": "Please check that MQTT is enabled in your settings:",
"mqttUnavailable3": "Remote Console > Settings > Services > MQTT Access",
"mqttUnavailable4": "Try using the Remote Console button at the top of this screen to change your settings remotely.",
"mqttUnavailable5": "You can also try connecting to your device remotely by selecting Remote from the menu above.",
"queryParams": "Query params: %{queryParams}",
"remoteConsole": {
"connectionFailed": "Unable to connect to the GX device",
"qrCodeMessage": "To access the GX Remote Console, make sure your phone is on the same WiFi network as the GX device and then scan this QR code.",
"screenTooSmall": "Open in a larger screen to view remote console"
},
"userAgent": "User agent: %{userAgent}",
"windowSize": "Window: %{width} x %{height}"
"windowSize": "Window: %{width} x %{height}",
"wsMqttUnavailable1": "Could not connect to the GX device.",
"wsMqttUnavailable2": "GX Error #60."
},
"generator": {
"autoStartDisabledMessage": "The remote start functionality is disabled on the genset. The GX will not be able to start or stop the genset now. Enable it on the genset control panel.",
"fisherPandaAutoStartMessage": "The Fisher Panda AutoStart functionality is currently disabled, enable it on the genset panel in order to control the genset from this panel.",
"temperature": {
"coolant": "Coolant",
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"windowSize": "Ventana: %{width} x %{height}"
},
"generator": {
"autoStartDisabledMessage": "La función de arranque a distancia está deshabilitada en el generador. Ahora, el GX no podrá arrancar ni parar el generador. Active esta función en el panel de control del generador.",
"fisherPandaAutoStartMessage": "La función AutoStart (arranque automático) Fisher Panda está deshabilitada en este momento, habilítela en el panel del generador para poder controlar el generador desde este panel.",
"temperature": {
"coolant": "Refrigerante",
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"windowSize": "Fenêtre: %{width} x %{height}"
},
"generator": {
"autoStartDisabledMessage": "La fonctionnalité de démarrage à distance est désactivée sur le groupe électrogène. Le GX ne pourra pas démarrer ou arrêter le groupe électrogène pour le moment. Activez-le sur le panneau de commande du groupe électrogène.",
"fisherPandaAutoStartMessage": "La fonctionnalité Fisher Panda AutoStart est actuellement désactivée, activez-la sur la console du groupe électrogène afin de contrôler le groupe électrogène à partir de cette console.",
"temperature": {
"coolant": "L. Refroid.",
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"windowSize": "Finestra: %{width} x %{height}"
},
"generator": {
"autoStartDisabledMessage": "La funzionalità di avvio remoto è disattivata nel generatore. Il GX non sarà in grado di avviare o arrestare il generatore. Attivarla sul pannello di controllo del generatore.",
"fisherPandaAutoStartMessage": "La funzione AutoStart di Fisher Panda è disattiva; attivarla sul pannello del generatore per controllare il generatore dal tale pannello.",
"temperature": {
"coolant": "Refrigerante",
Expand Down
5 changes: 4 additions & 1 deletion src/app/locales/languages/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,12 @@
"screenTooSmall": "Open in een groter scherm om het Remote Console te zien"
},
"userAgent": "Gebruiker : %{userAgent}",
"windowSize": "Venster : %{width} x %{height}"
"windowSize": "Venster : %{width} x %{height}",
"wsMqttUnavailable1": "Kon niet verbinden met GX apparaat.",
"wsMqttUnavailable2": "GX Fout #60."
},
"generator": {
"autoStartDisabledMessage": "De afstandsstartfunctie is uitgeschakeld op het aggregaat. De GX kan het aggregaat nu niet starten of stoppen. Schakel deze functie in op het bedieningspaneel van het aggregaat.",
"fisherPandaAutoStartMessage": "FisherPanda AutoStart is op dit moment uitgeschakeld, zet dat eerst aan op het paneel van het aggregaat om vanaf dit scherm te kunnen schakelen.",
"temperature": {
"coolant": "Koelvloeistof",
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"windowSize": "Okno: %{width} x %{height}"
},
"generator": {
"autoStartDisabledMessage": "Funkcja zdalnego uruchamiania jest wyłączona w agregacie. GX nie będzie mógł teraz uruchomić ani zatrzymać agregatu. Włącz tę opcję na panelu sterowania agregatu.",
"fisherPandaAutoStartMessage": "Funkcja Fisher Panda AutoStart jest obecnie wyłączona, należy ją włączyć na panelu agregatu, aby móc sterować agregatem z tego panelu.",
"temperature": {
"coolant": "Płyn chłodzący",
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/ro.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"windowSize": "Fereastră: %{width} x %{height}"
},
"generator": {
"autoStartDisabledMessage": "Funcționalitatea de pornire de la distanță este dezactivată pe generator. GX nu va putea porni sau opri generatorul acum. Activați-o pe panoul de control al generatorului.",
"fisherPandaAutoStartMessage": "Funcția Fisher Panda AutoStart este momentan dezactivată, activați-o din panoul generatorului pentru a putea porni generatorul din acest panou.",
"temperature": {
"coolant": "Agent de răcire",
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"windowSize": "windowSize"
},
"generator": {
"autoStartDisabledMessage": "На генераторной установке отключена функция дистанционного запуска. Теперь GX не сможет запустить или остановить генераторную установку. Включите ее на панели управления генераторной установки.",
"fisherPandaAutoStartMessage": "fisherPandaAutoStartMessage",
"temperature": {
"coolant": "охлаждающая жидкость",
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"windowSize": "Fönster: %{width} x %{height}"
},
"generator": {
"autoStartDisabledMessage": "Funktionen för fjärrstart av generatorn är inaktiverad. GX kommer inte kunna starta eller stoppa generatorn nu. Aktivera den på generatorns kontrollpanel.",
"fisherPandaAutoStartMessage": "Fisher Pandas autostart-funktion är för närvarande inaktiverad, aktivera den på generatorpanelen för att styra generatorn från denna panel.",
"temperature": {
"coolant": "Kylmedel",
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"windowSize": "Window: %{width} x %{height}"
},
"generator": {
"autoStartDisabledMessage": "Jeneratörde uzaktan çalıştırma fonksiyonu devre dışıdır. GX artık jeneratör setini çalıştıramayacak veya durduramayacaktır. Jeneratör kontrol panelinden etkinleştirin.\n",
"fisherPandaAutoStartMessage": "fisherPandaAutoStartMessage",
"temperature": {
"coolant": "soğutucu",
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"windowSize": "Розмір вікна"
},
"generator": {
"autoStartDisabledMessage": "Віддалений старт вимкнено на генератора. GX не зможу запустити або зупинити генератор. Увімкніть функцію на панелі генератора.",
"fisherPandaAutoStartMessage": "Повідомлення про автоматичний запуск fisherPanda",
"temperature": {
"coolant": "охолоджувальна рідина",
Expand Down
1 change: 1 addition & 0 deletions src/app/locales/languages/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
"windowSize": "窗口: %{width} x %{height}"
},
"generator": {
"autoStartDisabledMessage": "发电机组上的远程启动功能被禁用。GX 现在将无法启动或停止发电机组。在发电机组控制面板上启用它。",
"fisherPandaAutoStartMessage": "Fisher Panda AutoStart 功能当前处于禁用状态,请在发电机组面板上启用它以从该面板控制发电机组。",
"temperature": {
"coolant": "冷却剂",
Expand Down

0 comments on commit c665eb3

Please sign in to comment.