Code

Remove double unreffing of pointer in pdf-cairo.cpp. Fixes Bug #178985 with the...
[inkscape.git] / src / extension / internal / ps-out.cpp
index a41b900070f985f0eec741dc9f95d2119688d652..d59e246b092e1e9c468c4235ba54dddbaa908c1e 100644 (file)
@@ -24,12 +24,12 @@ namespace Extension {
 namespace Internal {
 
 bool
-PsOutput::check (Inkscape::Extension::Extension * module)
+PsOutput::check( Inkscape::Extension::Extension * /*module*/ )
 {
-       if (NULL == Inkscape::Extension::db.get(SP_MODULE_KEY_PRINT_PS))
-               return FALSE;
+    if (NULL == Inkscape::Extension::db.get(SP_MODULE_KEY_PRINT_PS))
+        return FALSE;
 
-       return TRUE;
+    return TRUE;
 }
 
 /**
@@ -65,6 +65,8 @@ PsOutput::save (Inkscape::Extension::Output *mod, SPDocument *doc, const gchar *
        return;
 }
 
+#include "clear-n_.h"
+
 /**
        \brief   A function allocate a copy of this function.
 
@@ -77,14 +79,15 @@ PsOutput::init (void)
 {
        Inkscape::Extension::build_from_mem(
                "<inkscape-extension>\n"
-                       "<name>Postscript Output</name>\n"
+                       "<name>" N_("Postscript Output") "</name>\n"
                        "<id>org.inkscape.output.ps</id>\n"
-                       "<param name=\"textToPath\" gui-text=\"Text to Path\" type=\"boolean\">true</param>\n"
+                       "<param name=\"textToPath\" gui-text=\"" N_("Convert texts to paths") "\" type=\"boolean\">true</param>\n"
+                       "<param name=\"fontEmbedded\" gui-text=\"" N_("Embed fonts (Type 1 only)") "\" type=\"boolean\">false</param>\n"
                        "<output>\n"
                                "<extension>.ps</extension>\n"
                                "<mimetype>image/x-postscript</mimetype>\n"
-                               "<filetypename>Postscript (*.ps)</filetypename>\n"
-                               "<filetypetooltip>Postscript File</filetypetooltip>\n"
+                               "<filetypename>" N_("PostScript (*.ps)") "</filetypename>\n"
+                               "<filetypetooltip>" N_("PostScript File") "</filetypetooltip>\n"
                        "</output>\n"
                "</inkscape-extension>", new PsOutput());