[GRASS-SVN] r32580 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 6 13:55:58 EDT 2008


Author: martinl
Date: 2008-08-06 13:55:58 -0400 (Wed, 06 Aug 2008)
New Revision: 32580

Modified:
   grass/trunk/gui/wxpython/gui_modules/gcmd.py
   grass/trunk/gui/wxpython/gui_modules/render.py
   grass/trunk/gui/wxpython/gui_modules/vdigit.py
Log:
wxGUI/vdigit: error message cosmetics, define default units (for XY location)
merge from devbr6, r32579


Modified: grass/trunk/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gcmd.py	2008-08-06 17:51:37 UTC (rev 32579)
+++ grass/trunk/gui/wxpython/gui_modules/gcmd.py	2008-08-06 17:55:58 UTC (rev 32580)
@@ -100,14 +100,14 @@
     """Exception raised during digitization session"""
     def __init__(self, message, parent=None):
         GException.__init__(self, message,
-                            title=_("Error in digitization tool"),
+                            title=_("Vector digitizer error"),
                             parent=parent)
 
 class DBMError(GException):
     """Attribute Table Manager exception class"""
     def __init__(self, message, parent=None):
         GException.__init__(self, message,
-                            title=_("Error in Attribute Table Manager"),
+                            title=_("Attribute table manager error"),
                             parent=parent)
 
 class NvizError(GException):

Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py	2008-08-06 17:51:37 UTC (rev 32579)
+++ grass/trunk/gui/wxpython/gui_modules/render.py	2008-08-06 17:55:58 UTC (rev 32580)
@@ -691,6 +691,7 @@
                     projinfo[key] = val
                 elif "XY location (unprojected)" in line:
                     projinfo['proj'] = "xy"
+                    projinfo['units'] = ''
             return projinfo
         else:
             return None

Modified: grass/trunk/gui/wxpython/gui_modules/vdigit.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/vdigit.py	2008-08-06 17:51:37 UTC (rev 32579)
+++ grass/trunk/gui/wxpython/gui_modules/vdigit.py	2008-08-06 17:55:58 UTC (rev 32580)
@@ -21,6 +21,7 @@
  - VDigitCategoryDialog
  - VDigitZBulkDialog
  - VDigitDuplicatesDialog
+ - VDigitVBuildDialog
 
 (C) 2007-2008 by the GRASS Development Team
 
@@ -146,14 +147,18 @@
         
         if map and ret == -1:
             raise gcmd.DigitError(parent=self.mapWindow.parent,
-                                  message=_('Unable to open vector map <%s> for editing. '
+                                  message=_('Unable to open vector map <%s> for editing.\n\n'
                                             'Data are probably corrupted, '
-                                            'try to run v.build for rebuilding the topology.') % map)
+                                            'try to run v.build to rebuild '
+                                            'the topology (Vector->Develop vector map->'
+                                            'Create/rebuild topology).') % map)
         if not map and ret != 0:
             raise gcmd.DigitError(parent=self.mapWindow.parent,
-                                  message=_('Unable to open vector map <%s> for editing. '
+                                  message=_('Unable to open vector map <%s> for editing.\n\n'
                                             'Data are probably corrupted, '
-                                            'try to run v.build for rebuilding the topology.') % map)
+                                            'try to run v.build to rebuild '
+                                            'the topology (Vector->Develop vector map->'
+                                            'Create/rebuild topology).') % map)
             
         if UserSettings.Get(group='advanced', key='digitInterface', subkey='type') != 'v.edit':
             try:



More information about the grass-commit mailing list