[gimp/metadata-browser] Bug 659446 - Missing plural handling for...
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] Bug 659446 - Missing plural handling for...
- Date: Wed, 28 Sep 2011 10:51:06 +0000 (UTC)
commit 26c63b1c50edffefaa936404c4c8a214171647d1
Author: Michael Natterer <mitch gimp org>
Date: Fri Sep 23 23:09:26 2011 +0200
Bug 659446 - Missing plural handling for...
Use ngettext() instead of simply _().
app/core/gimpbrush-load.c | 4 +++-
app/widgets/gimpmessagebox.c | 8 ++++----
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/app/core/gimpbrush-load.c b/app/core/gimpbrush-load.c
index a032428..57fb2ce 100644
--- a/app/core/gimpbrush-load.c
+++ b/app/core/gimpbrush-load.c
@@ -175,7 +175,9 @@ gimp_brush_load_brush (GimpContext *context,
if (read (fd, &header, sizeof (header)) != sizeof (header))
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_READ,
- _("Could not read %d bytes from '%s': %s"),
+ ngettext ("Could not read %d byte from '%s': %s",
+ "Could not read %d bytes from '%s': %s",
+ (gint) sizeof (header)),
(gint) sizeof (header),
gimp_filename_to_utf8 (filename), g_strerror (errno));
return NULL;
diff --git a/app/widgets/gimpmessagebox.c b/app/widgets/gimpmessagebox.c
index f384c20..6559c87 100644
--- a/app/widgets/gimpmessagebox.c
+++ b/app/widgets/gimpmessagebox.c
@@ -430,10 +430,10 @@ gimp_message_box_repeat (GimpMessageBox *box)
box->repeat++;
- if (box->repeat > 1)
- message = g_strdup_printf (_("Message repeated %d times."), box->repeat);
- else
- message = g_strdup (_("Message repeated once."));
+ message = g_strdup_printf (ngettext ("Message repeated once.",
+ "Message repeated %d times.",
+ box->repeat),
+ box->repeat);
if (box->label[2])
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]