summaryrefslogtreecommitdiffstats
path: root/share/extensions/perspective.py
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-01-24 00:39:06 +0000
committerJabiertxof <jtx@jtx>2017-01-24 00:39:06 +0000
commitda07c5edaeefe35a92662e42579b3e0b36621cbb (patch)
treebd783169733a4b06927601fca59ec569dc5317b5 /share/extensions/perspective.py
parentUpdate to trunk (diff)
parentfix nodes reverting back during editing (diff)
downloadinkscape-da07c5edaeefe35a92662e42579b3e0b36621cbb.tar.gz
inkscape-da07c5edaeefe35a92662e42579b3e0b36621cbb.zip
Remove some code and make dependant of rotate copies
(bzr r15295.1.63)
Diffstat (limited to 'share/extensions/perspective.py')
-rwxr-xr-xshare/extensions/perspective.py2
1 files changed, 2 insertions, 0 deletions
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()