Browse Source

wxGUI/vdigit: error message cosmetics, define default units (for XY location)
merge from devbr6, https://trac.osgeo.org/grass/changeset/32579


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@32580 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 17 years ago
parent
commit
3c920cec27

+ 2 - 2
gui/wxpython/gui_modules/gcmd.py

@@ -100,14 +100,14 @@ class DigitError(GException):
     """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):

+ 1 - 0
gui/wxpython/gui_modules/render.py

@@ -691,6 +691,7 @@ class Map(object):
                     projinfo[key] = val
                 elif "XY location (unprojected)" in line:
                     projinfo['proj'] = "xy"
+                    projinfo['units'] = ''
             return projinfo
         else:
             return None

+ 9 - 4
gui/wxpython/gui_modules/vdigit.py

@@ -21,6 +21,7 @@ Classes:
  - VDigitCategoryDialog
  - VDigitZBulkDialog
  - VDigitDuplicatesDialog
+ - VDigitVBuildDialog
 
 (C) 2007-2008 by the GRASS Development Team
 
@@ -146,14 +147,18 @@ class AbstractDigit:
         
         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: