diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-12-16 18:46:18 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-12-16 18:46:18 -0500 |
commit | f0b58cb21288ab3112d5dd4bfe67364ba34df7aa (patch) | |
tree | 396d957f28aeb9347b244486730e23670714f74b | |
parent | d724d378e6483cad1bf095b151f52c850fcb320a (diff) | |
download | gdk-pixbuf-f0b58cb21288ab3112d5dd4bfe67364ba34df7aa.tar.gz |
qtif: use ngettext
Patch by Denis Pauk, bug 629396.
-rw-r--r-- | 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 667264049..cd2deaa5d 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; } |