From 31dad42333cb2969e86d1f69556c958140a02b51 Mon Sep 17 00:00:00 2001 From: alvinpenner Date: Wed, 15 Jul 2009 23:52:22 +0000 Subject: [PATCH] patch by inductiveload for bug 278423 --- share/extensions/polyhedron_3d.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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): -- 2.30.2