From 713058520ea51869ea2587b82593d37933aa9504 Mon Sep 17 00:00:00 2001 From: JazzyNico Date: Tue, 13 Jul 2010 18:20:53 +0200 Subject: [PATCH] i18n. Fix for bug #601522 (embedding prompt dialog's caption is not translated). --- src/extension/internal/gdkpixbuf-input.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/extension/internal/gdkpixbuf-input.cpp b/src/extension/internal/gdkpixbuf-input.cpp index a1295406c..df7f3481c 100644 --- a/src/extension/internal/gdkpixbuf-input.cpp +++ b/src/extension/internal/gdkpixbuf-input.cpp @@ -2,6 +2,7 @@ # include #endif #include +#include #include "document-private.h" #include #include "extension/input.h" @@ -143,10 +144,10 @@ GdkpixbufInput::init(void) if (strcmp(extensions[i], "svg.gz") == 0) { continue; } - + gchar *caption = g_strdup_printf(_("%s GDK pixbuf Input"), name); gchar *xmlString = g_strdup_printf( "\n" - "" N_("%s GDK pixbuf Input") "\n" + "%s\n" "org.inkscape.input.gdkpixbuf.%s\n" "\n" "<_option value='embed'>" N_("embed") "\n" @@ -160,7 +161,7 @@ GdkpixbufInput::init(void) "%s\n" "\n" "", - name, + caption, extensions[i], extensions[i], mimetypes[j], @@ -171,6 +172,7 @@ GdkpixbufInput::init(void) Inkscape::Extension::build_from_mem(xmlString, new GdkpixbufInput()); g_free(xmlString); + g_free(caption); }} g_free(name); -- 2.30.2