[gdk-pixbuf] qtif: use ngettext
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf] qtif: use ngettext
- Date: Fri, 16 Dec 2011 23:47:31 +0000 (UTC)
commit f0b58cb21288ab3112d5dd4bfe67364ba34df7aa
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Dec 16 18:46:18 2011 -0500
qtif: use ngettext
Patch by Denis Pauk, bug 629396.
gdk-pixbuf/io-qtif.c | 27 ++++++++++++++++++++++-----
1 files changed, 22 insertions(+), 5 deletions(-)
---
diff --git a/gdk-pixbuf/io-qtif.c b/gdk-pixbuf/io-qtif.c
index 6672640..cd2deaa 100644
--- a/gdk-pixbuf/io-qtif.c
+++ b/gdk-pixbuf/io-qtif.c
@@ -148,7 +148,10 @@ static GdkPixbuf *gdk_pixbuf__qtif_image_load (FILE *f, GError **error)
{
g_set_error(error, GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
- _("QTIF atom size too large (%d bytes)"), hdr.length);
+ ngettext ( "QTIF atom size too large (%d byte)",
+ "QTIF atom size too large (%d bytes)",
+ hdr.length),
+ hdr.length);
return NULL;
}
@@ -168,7 +171,11 @@ static GdkPixbuf *gdk_pixbuf__qtif_image_load (FILE *f, GError **error)
{
g_set_error(error, GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY,
- _("Failed to allocate %d bytes for file read buffer"), READ_BUFFER_SIZE);
+ ngettext ( "Failed to allocate %d byte for file read buffer",
+ "Failed to allocate %d bytes for file read buffer",
+ READ_BUFFER_SIZE
+ ),
+ READ_BUFFER_SIZE);
return NULL;
}
@@ -178,7 +185,10 @@ static GdkPixbuf *gdk_pixbuf__qtif_image_load (FILE *f, GError **error)
{
g_set_error(error, GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
- _("QTIF atom size too large (%d bytes)"), hdr.length);
+ ngettext ( "QTIF atom size too large (%d byte)",
+ "QTIF atom size too large (%d bytes)",
+ hdr.length),
+ hdr.length);
goto clean_up;
}
@@ -229,7 +239,10 @@ clean_up:
{
g_set_error(error, GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
- _("Failed to skip the next %d bytes with seek()."), hdr.length);
+ ngettext ( "Failed to skip the next %d byte with seek().",
+ "Failed to skip the next %d bytes with seek().",
+ hdr.length),
+ hdr.length);
return NULL;
}
break;
@@ -442,7 +455,11 @@ static gboolean gdk_pixbuf__qtif_image_load_increment (gpointer data,
{
g_set_error(error, GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
- _("QTIF atom size too large (%d bytes)"), hdr->length);
+ GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
+ ngettext ( "QTIF atom size too large (%d byte)",
+ "QTIF atom size too large (%d bytes)",
+ hdr->length),
+ hdr->length);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]