Browse Source

Correct use of _() (backport of https://trac.osgeo.org/grass/changeset/67648)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@67707 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 9 years ago
parent
commit
deeafe8d07
1 changed files with 4 additions and 3 deletions
  1. 4 3
      lib/init/grass.py

+ 4 - 3
lib/init/grass.py

@@ -873,12 +873,13 @@ def check_lock():
     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")