From becd66231515e871a2066127a1effa55e62bb3b5 Mon Sep 17 00:00:00 2001 From: Anders Jonsson Date: Tue, 7 Oct 2025 21:06:07 +0200 Subject: [PATCH] libgimpwidgets: fix overlapping ngettext usage In the page selector the translation for "All n pages selected" was always used, even if all pages weren't selected. This was caused by the same singular msgid being used in multiple places with different msgid_plural. These were then all smashed into a single translation. Replace one of the singular msgid:s to avoid this. This string is never shown since the n_selected == 1 case is already covered earlier in the code. --- libgimpwidgets/gimppageselector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgimpwidgets/gimppageselector.c b/libgimpwidgets/gimppageselector.c index ec332cfc6d..bccfc1aa54 100644 --- a/libgimpwidgets/gimppageselector.c +++ b/libgimpwidgets/gimppageselector.c @@ -1023,7 +1023,7 @@ gimp_page_selector_selection_changed (GtkIconView *icon_view, gchar *text; if (n_selected == selector->n_pages) - text = g_strdup_printf (ngettext ("%d page selected", + text = g_strdup_printf (ngettext ("The page is selected", "All %d pages selected", n_selected), n_selected); else