diff options
author | Matthias Clasen <mclasen@redhat.com> | 2009-06-15 18:04:49 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2009-06-15 18:25:04 -0400 |
commit | 784956d1ea6f5fe6a18e102f1bb53c0aa79d25d9 (patch) | |
tree | 4c8fcb18a9abefcf3ca791e36176b713ba33775f /gdk-pixbuf/gdk-pixdata.c | |
parent | f3d3c38ce9f18d8ef49f46ba316c5c21fd1a0155 (diff) | |
download | gdk-pixbuf-784956d1ea6f5fe6a18e102f1bb53c0aa79d25d9.tar.gz |
Cleanup some translation handling
Use g_*gettext functions in gdk-pixbuf instead direct gettext
calls to benefit from the maybe-dont-translate functionality
in GLib. Also, replace a hand-rolled version by g_dpgettext2
in gtkbuilderparser.c. Fixes bug 585791.
Diffstat (limited to 'gdk-pixbuf/gdk-pixdata.c')
-rw-r--r-- | gdk-pixbuf/gdk-pixdata.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdk-pixbuf/gdk-pixdata.c b/gdk-pixbuf/gdk-pixdata.c index e9cdf8f85..ed60ab569 100644 --- a/gdk-pixbuf/gdk-pixdata.c +++ b/gdk-pixbuf/gdk-pixdata.c @@ -428,9 +428,10 @@ gdk_pixbuf_from_pixdata (const GdkPixdata *pixdata, { g_set_error (error, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY, - ngettext("failed to allocate image buffer of %u byte", - "failed to allocate image buffer of %u bytes", - pixdata->rowstride * pixdata->height), + g_dngettext(GETTEXT_PACKAGE, + "failed to allocate image buffer of %u byte", + "failed to allocate image buffer of %u bytes", + pixdata->rowstride * pixdata->height), pixdata->rowstride * pixdata->height); return NULL; } |