[GRASS-SVN] r67707 - grass/branches/releasebranch_7_0/lib/init

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 30 06:16:54 PST 2016


Author: marisn
Date: 2016-01-30 06:16:54 -0800 (Sat, 30 Jan 2016)
New Revision: 67707

Modified:
   grass/branches/releasebranch_7_0/lib/init/grass.py
Log:
Correct use of _() (backport of r67648)

Modified: grass/branches/releasebranch_7_0/lib/init/grass.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/init/grass.py	2016-01-29 21:52:06 UTC (rev 67706)
+++ grass/branches/releasebranch_7_0/lib/init/grass.py	2016-01-30 14:16:54 UTC (rev 67707)
@@ -873,12 +873,13 @@
     if not os.path.exists(location):
         fatal(_("Path '%s' doesn't exist") % location)
     if not os.access(location, os.W_OK):
-        error = "Path '%s' not accessible." % location
+        error = _("Path '%s' not accessible.") % location
         stat_info = os.stat(location)
         mapset_uid = stat_info.st_uid
         if mapset_uid != os.getuid():
-            error += "You are not the owner of '%s'" % location
-        fatal(_(error))
+            # GTC %s is mapset's folder path
+            error = "%s\n%s" % (error, _("You are not the owner of '%s'.") % location)
+        fatal(error)
 
     # Check for concurrent use
     lockfile = os.path.join(location, ".gislock")



More information about the grass-commit mailing list