diff --git a/hassio/src/dialogs/suggestAddonRestart.ts b/hassio/src/dialogs/suggestAddonRestart.ts index 66e95bf08b..56a7bb8a0e 100644 --- a/hassio/src/dialogs/suggestAddonRestart.ts +++ b/hassio/src/dialogs/suggestAddonRestart.ts @@ -18,9 +18,11 @@ export const suggestAddonRestart = async ( addon: HassioAddonDetails ): Promise => { const confirmed = await showConfirmationDialog(element, { - title: supervisor.localize("common.restart_name", "name", addon.name), + title: supervisor.localize("dialog.restart_addon.title", { + name: addon.name, + }), text: supervisor.localize("dialog.restart_addon.text"), - confirmText: supervisor.localize("dialog.restart_addon.confirm_text"), + confirmText: supervisor.localize("dialog.restart_addon.restart"), dismissText: supervisor.localize("common.cancel"), }); if (confirmed) { @@ -28,11 +30,9 @@ export const suggestAddonRestart = async ( await restartHassioAddon(hass, addon.slug); } catch (err: any) { showAlertDialog(element, { - title: supervisor.localize( - "common.failed_to_restart_name", - "name", - addon.name - ), + title: supervisor.localize("common.failed_to_restart_name", { + name: addon.name, + }), text: extractApiErrorMessage(err), }); } diff --git a/src/translations/en.json b/src/translations/en.json index adc27b77f7..3751ef5866 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -5129,8 +5129,9 @@ "used": "Repository is in use for installed add-ons and can't be removed." }, "restart_addon": { - "confirm_text": "Restart add-on", - "text": "Do you want to restart the add-on with your changes?" + "title": "Restart {name}?", + "text": "To use the new saved configuration this add-on must be restarted.", + "restart": "Restart" }, "hardware": { "title": "Hardware",