universal-access: Handle "pixels" plural correctly

Using g_dngettext() as required.

https://bugzilla.gnome.org/show_bug.cgi?id=779798
This commit is contained in:
Bastien Nocera 2017-03-09 12:44:25 +01:00
parent 7eee3fe9a4
commit 5cccd1d544

View file

@ -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;
}