From 5cccd1d5447ca90afd7e1143dc0e46ebb70af788 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 9 Mar 2017 12:44:25 +0100 Subject: [PATCH] universal-access: Handle "pixels" plural correctly Using g_dngettext() as required. https://bugzilla.gnome.org/show_bug.cgi?id=779798 --- panels/universal-access/cc-ua-panel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c index 1985f7718..f0928555e 100644 --- a/panels/universal-access/cc-ua-panel.c +++ b/panels/universal-access/cc-ua-panel.c @@ -363,7 +363,11 @@ cursor_size_label_mapping_get (GValue *value, label = g_strdup (C_("cursor size", "Largest")); break; default: - label = g_strdup_printf (_("%d pixels"), g_variant_get_int32 (variant)); + label = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, + "%d pixel", + "%d pixels", + cursor_size), + cursor_size); break; }