all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH widget-toolkit] fix #6088: notification: matcher: use more descriptive strings
@ 2025-01-28  9:31 Maximiliano Sandoval
  2025-01-28 12:45 ` Lukas Wagner
  2025-01-28 14:21 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Maximiliano Sandoval @ 2025-01-28  9:31 UTC (permalink / raw)
  To: pve-devel; +Cc: l.wagner

Signed-off-by: Maximiliano Sandoval <m.sandoval@proxmox.com>
---

The longest translation of "At least one rule does not match" has only 4 more
characters than the original, this is not a problem for the size we have
available as in most cases the rules carry even longer text.

 src/window/NotificationMatcherEdit.js | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/window/NotificationMatcherEdit.js b/src/window/NotificationMatcherEdit.js
index 9ab443f..83c09ea 100644
--- a/src/window/NotificationMatcherEdit.js
+++ b/src/window/NotificationMatcherEdit.js
@@ -491,12 +491,17 @@ Ext.define('Proxmox.panel.NotificationMatchRuleTree', {
 	    } break;
 	    case 'mode':
 		if (data.value === 'all') {
-		    text = gettext("All");
+		    if (data.invert) {
+			text = gettext('At least one rule does not match');
+		    } else {
+			text = gettext('All rules match');
+		    }
 		} else if (data.value === 'any') {
-		    text = gettext("Any");
-		}
-		if (data.invert) {
-		    text = `!${text}`;
+		    if (data.invert) {
+			text = gettext('No rule matches');
+		    } else {
+			text = gettext('Any rule matches');
+		    }
 		}
 		iconCls = 'fa fa-filter';
 
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-28 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-28  9:31 [pve-devel] [PATCH widget-toolkit] fix #6088: notification: matcher: use more descriptive strings Maximiliano Sandoval
2025-01-28 12:45 ` Lukas Wagner
2025-01-28 14:21 ` [pve-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal