From cb1e1ed0e7eab8865a1f3a5925688cea5f63a140 Mon Sep 17 00:00:00 2001 From: Nicolas Dufour Date: Mon, 23 Jan 2017 11:32:56 +0100 Subject: i18n. Fixing gettext initialization in some more extensions. (bzr r15433) --- share/extensions/perspective.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'share/extensions/perspective.py') diff --git a/share/extensions/perspective.py b/share/extensions/perspective.py index ea08b98dc..f15deaad5 100755 --- a/share/extensions/perspective.py +++ b/share/extensions/perspective.py @@ -39,6 +39,8 @@ try: from numpy import * from numpy.linalg import * except: + # Initialize gettext for messages outside an inkex derived class + inkex.localize() inkex.errormsg(_("Failed to import the numpy or numpy.linalg modules. These modules are required by this extension. Please install them and try again. On a Debian-like system this can be done with the command, sudo apt-get install python-numpy.")) exit() -- cgit v1.2.3