[gnome-control-center] universal-access: Handle "pixels" plural correctly
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] universal-access: Handle "pixels" plural correctly
- Date: Thu, 9 Mar 2017 13:08:31 +0000 (UTC)
commit 5cccd1d5447ca90afd7e1143dc0e46ebb70af788
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 9 12:44:25 2017 +0100
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 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/panels/universal-access/cc-ua-panel.c b/panels/universal-access/cc-ua-panel.c
index 1985f77..f092855 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]