[GRASS-dev] C syntax and the use of underscore ('_')

Maris Nartiss maris.gis at gmail.com
Mon Aug 3 00:59:50 PDT 2015


Some examples on _() and n_() use are in locale/README file.
https://svn.osgeo.org/grass/grass/trunk/locale/README


2015-08-03 0:32 GMT+03:00 Markus Neteler <neteler at osgeo.org>:
> 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
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list