summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixdata.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2009-06-15 18:04:49 -0400
committerMatthias Clasen <mclasen@redhat.com>2009-06-15 18:25:04 -0400
commitde3cc277064937727e2f728113e0d63c64aa3bb8 (patch)
tree0c5da0a0d06130fd1eb412b8925bb4e21a998082 /gdk-pixbuf/gdk-pixdata.c
parent362127c33c16b8626d4a4b8925bfb7b03bee0b6b (diff)
downloadgtk+-de3cc277064937727e2f728113e0d63c64aa3bb8.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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdk-pixbuf/gdk-pixdata.c b/gdk-pixbuf/gdk-pixdata.c
index e9cdf8f850..ed60ab569e 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;
}