[GRASS-SVN] r32579 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 6 13:51:37 EDT 2008


Author: martinl
Date: 2008-08-06 13:51:37 -0400 (Wed, 06 Aug 2008)
New Revision: 32579

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py
   grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py
   grass/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py
Log:
wxGUI/vdigit: error message cosmetics, define default units (for XY location)

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py	2008-08-06 17:48:43 UTC (rev 32578)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gcmd.py	2008-08-06 17:51:37 UTC (rev 32579)
@@ -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/branches/develbranch_6/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2008-08-06 17:48:43 UTC (rev 32578)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/render.py	2008-08-06 17:51:37 UTC (rev 32579)
@@ -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/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py	2008-08-06 17:48:43 UTC (rev 32578)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/vdigit.py	2008-08-06 17:51:37 UTC (rev 32579)
@@ -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