summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2010-07-08 16:48:40 +0000
committerJazzyNico <nicoduf@yahoo.fr>2010-07-08 16:48:40 +0000
commit0b8d7ed24a7e7a32b84b6e3a69dcc7c9f0b1d24d (patch)
treeefd37a028b9be568756efd63f1aeaa8c03118f14 /share
parentTutorials. Japanese Interpolate and Tips tutorials update. (diff)
downloadinkscape-0b8d7ed24a7e7a32b84b6e3a69dcc7c9f0b1d24d.tar.gz
inkscape-0b8d7ed24a7e7a32b84b6e3a69dcc7c9f0b1d24d.zip
Extensions. Uniconvertor import and export scripts fix (missing gettext import).
(bzr r9596)
Diffstat (limited to 'share')
-rw-r--r--share/extensions/uniconv-ext.py6
-rw-r--r--share/extensions/uniconv_output.py2
2 files changed, 6 insertions, 2 deletions
diff --git a/share/extensions/uniconv-ext.py b/share/extensions/uniconv-ext.py
index 3b248d8b8..d3d69546c 100644
--- a/share/extensions/uniconv-ext.py
+++ b/share/extensions/uniconv-ext.py
@@ -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"'
diff --git a/share/extensions/uniconv_output.py b/share/extensions/uniconv_output.py
index 9cdac7fc2..f7746c2f4 100644
--- a/share/extensions/uniconv_output.py
+++ b/share/extensions/uniconv_output.py
@@ -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)