From: alvinpenner Date: Wed, 15 Jul 2009 23:52:22 +0000 (+0000) Subject: patch by inductiveload for bug 278423 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31dad42333cb2969e86d1f69556c958140a02b51;p=inkscape.git patch by inductiveload for bug 278423 --- diff --git a/share/extensions/polyhedron_3d.py b/share/extensions/polyhedron_3d.py index e659427b9..ae73d6b27 100644 --- a/share/extensions/polyhedron_3d.py +++ b/share/extensions/polyhedron_3d.py @@ -52,6 +52,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import inkex import simplestyle, sys, re from math import * +import gettext +_ = gettext.gettext try: from numpy import * except: @@ -326,14 +328,16 @@ class Obj(object): #a 3d object defined by the vertices and the faces (eg a poly if self.fce != []: self.type = 'face' else: - inkex.errormsg(_('No face data found in specified file\n')) + inkex.errormsg(_('No face data found in specified file.')) + inkex.errormsg(_('Try selecting "Edge Specified" in the Model File tab.\n')) self.type = 'error' else: if self.edg != []: self.type = 'edge' else: - inkex.errormsg(_('No edge data found in specified file\n')) - obj.type = 'error' + inkex.errormsg(_('No edge data found in specified file.')) + inkex.errormsg(_('Try selecting "Face Specified" in the Model File tab.\n')) + self.type = 'error' class Poly_3D(inkex.Effect): def __init__(self):