[GRASS-dev] C syntax and the use of underscore ('_')
Markus Neteler
neteler at osgeo.org
Sun Aug 2 14:32:37 PDT 2015
On Sun, Aug 2, 2015 at 10:25 PM, Nikos Alexandris
<nik at nikosalexandris.net> wrote:
...
> Is this relevant to python (scripts) as well?
Yes, e.g.
[neteler at oboe r.unpack]$ grep message *
r.unpack.py: grass.message(_('Raster map <{name}>
unpacked'.format(name=map_name)))
I added a hint here:
http://grasswiki.osgeo.org/wiki/GRASS_messages_translation#Python_programming_language
Markus
More information about the grass-dev
mailing list