From 5f6d480d9cd8f7f495a567cc4212592bfecdfcfc Mon Sep 17 00:00:00 2001 From: JazzyNico Date: Thu, 8 Jul 2010 18:48:40 +0200 Subject: [PATCH] Extensions. Uniconvertor import and export scripts fix (missing gettext import). --- share/extensions/uniconv-ext.py | 6 ++++-- share/extensions/uniconv_output.py | 2 ++ 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) -- 2.30.2