Code

patch by inductiveload for bug 278423
authoralvinpenner <alvinpenner@users.sourceforge.net>
Wed, 15 Jul 2009 23:52:22 +0000 (23:52 +0000)
committeralvinpenner <alvinpenner@users.sourceforge.net>
Wed, 15 Jul 2009 23:52:22 +0000 (23:52 +0000)
share/extensions/polyhedron_3d.py

index e659427b9d2d63d6cfae3c2aa8906d8647afa897..ae73d6b27925c9da5f65274993bdfcee5a9f0e46 100644 (file)
@@ -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):