Code

Extensions. Uniconvertor import and export scripts fix (missing gettext import).
authorJazzyNico <nicoduf@yahoo.fr>
Thu, 8 Jul 2010 16:48:40 +0000 (18:48 +0200)
committerJazzyNico <nicoduf@yahoo.fr>
Thu, 8 Jul 2010 16:48:40 +0000 (18:48 +0200)
share/extensions/uniconv-ext.py
share/extensions/uniconv_output.py

index 3b248d8b82bcbfa96433b95edca44677baef50e0..d3d69546c2e1ebfc0507dc4c357d4b87e7d93ea3 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,11 +51,11 @@ 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"'
 
index 9cdac7fc28ac77b79f466c1b501fc2fab497afa8..f7746c2f45ff2a1a5123871357aa4121a327545f 100644 (file)
@@ -31,6 +31,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 import os
 import sys
 import tempfile
+import gettext
+_ = gettext.gettext
 
 def run(command_format, prog_name, uniconv_format):
     outfile = tempfile.mktemp(uniconv_format)