Code

Extensions. Removing tooltips from color>randomize (see Bug #676419).
[inkscape.git] / share / extensions / uniconv-ext.py
index 3b248d8b82bcbfa96433b95edca44677baef50e0..246340e8980c32ce9c56f3fae83dea87f3409c5d 100644 (file)
@@ -23,6 +23,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 
 import sys
 from run_command import run
+import gettext
+_ = gettext.gettext
 
 cmd = None
 
@@ -49,14 +51,14 @@ if cmd == None:
         import imp
         imp.find_module("uniconvertor")
     except ImportError:
-        sys.stderr.write('You need to install the UniConvertor software.\n'+\
+        sys.stderr.write(_('You need to install the UniConvertor software.\n'+\
                      'For GNU/Linux: install the package python-uniconvertor.\n'+\
                      'For Windows: download it from\n'+\
                      'http://sk1project.org/modules.php?name=Products&product=uniconvertor\n'+\
-                     'and install into your Inkscape\'s Python location\n')
+                     'and install into your Inkscape\'s Python location\n'))
         sys.exit(1)
-    cmd = 'python -c "import uniconvertor"'
+    cmd = 'python -c "import uniconvertor; uniconvertor.uniconv_run()"'
 
 run((cmd+' "%s" "%%s"') % sys.argv[1].replace("%","%%"), "UniConvertor")
 
-# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 encoding=utf-8 textwidth=99
+# vim: expandtab shiftwidth=4 tabstop=8 softtabstop=4 fileencoding=utf-8 textwidth=99