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

Rob Parsons jrobparsons at gmail.com
Mon Aug 3 05:26:27 PDT 2015


Telling Eclipse that the C dialect is c99 (-std=c99) solved the problem.
The macro is now recognized.
On Aug 3, 2015 4:00 AM, "Maris Nartiss" <maris.gis at gmail.com> wrote:

> 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
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150803/16aaaf46/attachment-0001.html>


More information about the grass-dev mailing list