From: JazzyNico Date: Tue, 13 Jul 2010 22:32:30 +0000 (+0200) Subject: i18n. Fix for bug #601522 (embedding prompt dialog's caption is not translated). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0ff66ce8fd108b985cb6b291a9f55d15f446dbe5;p=inkscape.git i18n. Fix for bug #601522 (embedding prompt dialog's caption is not translated). --- 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);