[GRASS-SVN] r67648 - in grass/trunk: gui/wxpython/psmap lib/init lib/vector/diglib

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 24 01:31:39 PST 2016


Author: marisn
Date: 2016-01-24 01:31:38 -0800 (Sun, 24 Jan 2016)
New Revision: 67648

Modified:
   grass/trunk/gui/wxpython/psmap/dialogs.py
   grass/trunk/lib/init/grass.py
   grass/trunk/lib/vector/diglib/struct_alloc.c
Log:
Add comments for translators and fix gettext usage

Modified: grass/trunk/gui/wxpython/psmap/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/dialogs.py	2016-01-24 08:09:17 UTC (rev 67647)
+++ grass/trunk/gui/wxpython/psmap/dialogs.py	2016-01-24 09:31:38 UTC (rev 67648)
@@ -760,6 +760,7 @@
         border.Add(item = sizer, proportion = 0, flag = wx.ALL | wx.EXPAND, border = 5)
         
         # border
+        # GTC Line around legend or map frame
         box   = wx.StaticBox (parent = self, id = wx.ID_ANY, label = " %s " % _("Border"))        
         sizer = wx.StaticBoxSizer(box, wx.HORIZONTAL)
         gridBagSizer = wx.GridBagSizer(hgap = 5, vgap = 5)
@@ -2644,6 +2645,7 @@
         self.sizePositionFont(legendType = 'vector', parent = panel, mainSizer = border)
          
         # border
+        # GTC  Line around legend or map frame
         box   = wx.StaticBox (parent = panel, id = wx.ID_ANY, label = " %s " % _("Border"))
         sizer = wx.StaticBoxSizer(box, wx.VERTICAL)
         flexGridSizer = wx.FlexGridSizer(cols = 2, hgap = 5, vgap = 5)

Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py	2016-01-24 08:09:17 UTC (rev 67647)
+++ grass/trunk/lib/init/grass.py	2016-01-24 09:31:38 UTC (rev 67648)
@@ -1169,12 +1169,13 @@
     if not os.path.exists(mapset_path):
         fatal(_("Path '%s' doesn't exist") % mapset_path)
     if not os.access(mapset_path, os.W_OK):
-        error = "Path '%s' not accessible.\n" % mapset_path
+        error = _("Path '%s' not accessible.") % mapset_path
         stat_info = os.stat(mapset_path)
         mapset_uid = stat_info.st_uid
         if mapset_uid != os.getuid():
-            error += "You are not the owner of '%s'" % mapset_path
-        fatal(_(error))
+            # GTC %s is mapset's folder path
+            error = "%s\n%s" % (error, _("You are not the owner of '%s'.") % mapset_path)
+        fatal(error)
     # Check for concurrent use
     lockfile = os.path.join(mapset_path, ".gislock")
     ret = call([gpath("etc", "lock"), lockfile, "%d" % os.getpid()])
@@ -1416,6 +1417,7 @@
 %-41sg.manual -i
 %-41sg.version -c
 """ % (_("GRASS GIS homepage:"),
+        # GTC Running through: SHELL NAME
        _("This version running through:"),
        shellname, os.getenv('SHELL'),
        _("Help is available with the command:"),

Modified: grass/trunk/lib/vector/diglib/struct_alloc.c
===================================================================
--- grass/trunk/lib/vector/diglib/struct_alloc.c	2016-01-24 08:09:17 UTC (rev 67647)
+++ grass/trunk/lib/vector/diglib/struct_alloc.c	2016-01-24 09:31:38 UTC (rev 67648)
@@ -488,6 +488,6 @@
 */
 int dig_out_of_memory()
 {
-    G_warning(_("Out of memmory"));
+    G_warning(_("Out of memory"));
     return -1;
 }



More information about the grass-commit mailing list