summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2010-07-13 16:20:53 +0000
committerJazzyNico <nicoduf@yahoo.fr>2010-07-13 16:20:53 +0000
commit428f5369d91c2441bd32c16619a9e17b22252ce1 (patch)
treec3ac17ccbeaaf14e0a9bf27e403892524a251776 /src
parentTranslations. Romanian nsh file update. (diff)
downloadinkscape-428f5369d91c2441bd32c16619a9e17b22252ce1.tar.gz
inkscape-428f5369d91c2441bd32c16619a9e17b22252ce1.zip
i18n. Fix for bug #601522 (embedding prompt dialog's caption is not translated).
Fixed bugs: - https://launchpad.net/bugs/601522 (bzr r9606.1.4)
Diffstat (limited to 'src')
-rw-r--r--src/extension/internal/gdkpixbuf-input.cpp8
1 files 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 <config.h>
#endif
#include <glib/gprintf.h>
+#include <glibmm/i18n.h>
#include "document-private.h"
#include <dir-util.h>
#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(
"<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">\n"
- "<name>" N_("%s GDK pixbuf Input") "</name>\n"
+ "<name>%s</name>\n"
"<id>org.inkscape.input.gdkpixbuf.%s</id>\n"
"<param name='link' type='optiongroup' appearance='full' _gui-text='" N_("Link or embed image:") "' >\n"
"<_option value='embed'>" N_("embed") "</_option>\n"
@@ -160,7 +161,7 @@ GdkpixbufInput::init(void)
"<filetypetooltip>%s</filetypetooltip>\n"
"</input>\n"
"</inkscape-extension>",
- 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);