Code

share/extensions/*.py: Use gettext for (many) error messages.
[inkscape.git] / share / extensions / polyhedron_3d.py
index 006d16d6b5813b29acb457565904691abd29f90d..fca66b1137612766df3e1a83bfe8878b5df17e76 100644 (file)
@@ -52,10 +52,12 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 import inkex
 import simplestyle, sys, simplepath, re
 from math import *
+import gettext
+_ = gettext.gettext
 try:
     from numpy import *
 except:
-    inkex.debug("Failed to import the numpy module. This module is 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.")
+    inkex.errormsg(_("Failed to import the numpy module. This module is 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."))
     sys.exit()
 
 def objfile(name):