<p dir="ltr">Telling Eclipse that the C dialect is c99 (-std=c99) solved the problem. The macro is now recognized.<br>
</p>
<div class="gmail_quote">On Aug 3, 2015 4:00 AM, "Maris Nartiss" <<a href="mailto:maris.gis@gmail.com">maris.gis@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Some examples on _() and n_() use are in locale/README file.<br>
<a href="https://svn.osgeo.org/grass/grass/trunk/locale/README" rel="noreferrer" target="_blank">https://svn.osgeo.org/grass/grass/trunk/locale/README</a><br>
<br>
<br>
2015-08-03 0:32 GMT+03:00 Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>>:<br>
> On Sun, Aug 2, 2015 at 10:25 PM, Nikos Alexandris<br>
> <<a href="mailto:nik@nikosalexandris.net">nik@nikosalexandris.net</a>> wrote:<br>
> ...<br>
>> Is this relevant to python (scripts) as well?<br>
><br>
> Yes, e.g.<br>
><br>
> [neteler@oboe r.unpack]$ grep message *<br>
> <a href="http://r.unpack.py" rel="noreferrer" target="_blank">r.unpack.py</a>: grass.message(_('Raster map <{name}><br>
> unpacked'.format(name=map_name)))<br>
><br>
> I added a hint here:<br>
> <a href="http://grasswiki.osgeo.org/wiki/GRASS_messages_translation#Python_programming_language" rel="noreferrer" target="_blank">http://grasswiki.osgeo.org/wiki/GRASS_messages_translation#Python_programming_language</a><br>
><br>
> Markus<br>
> _______________________________________________<br>
> grass-dev mailing list<br>
> <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote></div>