From 72a355b8d7bfd15db402938e28c7adb83e1e6309 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 13 Sep 2023 18:15:09 +0200 Subject: [PATCH] notification config view: fix using gettext with parameter One must use a parameter {0} replacement string as otherwise this cannot be translated at all. Signed-off-by: Thomas Lamprecht --- src/panel/NotificationConfigView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panel/NotificationConfigView.js b/src/panel/NotificationConfigView.js index 6586524..d7bd076 100644 --- a/src/panel/NotificationConfigView.js +++ b/src/panel/NotificationConfigView.js @@ -88,7 +88,7 @@ Ext.define('Proxmox.panel.NotificationEndpointView', { Ext.Msg.confirm( gettext("Notification Target Test"), - gettext(`Do you want to send a test notification to '${target}'?`), + Ext.String.format(gettext("Do you want to send a test notification to '{0}'?"), target), function(decision) { if (decision !== "yes") { return;