[GRASS-SVN] r60223 - grass/trunk/lib/init
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue May 13 03:19:22 PDT 2014
Author: martinl
Date: 2014-05-13 03:19:21 -0700 (Tue, 13 May 2014)
New Revision: 60223
Modified:
grass/trunk/lib/init/grass.py
Log:
fix r60216 (i18n)
Modified: grass/trunk/lib/init/grass.py
===================================================================
--- grass/trunk/lib/init/grass.py 2014-05-13 10:08:08 UTC (rev 60222)
+++ grass/trunk/lib/init/grass.py 2014-05-13 10:19:21 UTC (rev 60223)
@@ -1116,14 +1116,16 @@
f.write("""grass_prompt() {
LOCATION="`g.gisenv GISDBASE`/`g.gisenv LOCATION_NAME`/`g.gisenv MAPSET`"
if test -d "$LOCATION/grid3/G3D_MASK" && test -f "$LOCATION/cell/MASK" ; then
- echo [Raster and Volume MASKs present]
+ echo [%s]
elif test -f "$LOCATION/cell/MASK" ; then
- echo [Raster MASK present]
+ echo [%s]
elif test -d "$LOCATION/grid3/G3D_MASK" ; then
- echo [Volume MASK present]
+ echo [%s]
fi
}
-PROMPT_COMMAND=grass_prompt\n""")
+PROMPT_COMMAND=grass_prompt\n""" % (_("2d and 3d Raster MASKs present"),
+ _("Raster MASK present"),
+ _("3d raster MASK present")))
# read environmental variables
path = os.path.join(userhome, ".grass.bashrc") # left for backward compatibility
More information about the grass-commit
mailing list