[GRASS-dev] po-strings für r.mapcalc

Maris Nartiss maris.gis at gmail.com
Fri Jul 20 01:26:23 PDT 2012


Hello Markus,
You can't use function to initialize a array (string) in C (Glynn can
correct me, if I'm wrong).

I just moved help text to main to be able to extract that string in
r52421 for 6.4.

Cheers,
Maris.

2012/7/19 Markus Neteler <neteler at osgeo.org>:
> On Wed, Jul 18, 2012 at 8:15 PM, Glynn Clements
> <glynn at gclements.plus.com> wrote:
>>
>> Markus Neteler wrote:
>>
>>> what is the best way to get this long r.mapcalc/main.c message into the
>>> .po files?
>>>
>>> static const char help_text[] =
>>>     "r.mapcalc - Raster map layer data calculator\n"
>>>     "\n"
>>>     "usage: r.mapcalc '<map>=<expression>'\n"
>>>     "\n"
>>>     "r.mapcalc performs arithmetic on raster map layers.\n"
>>>     "\n"
>>>     "New raster map layers can be created which are arithmetic expressions\n"
>>>     "involving existing raster map layers, integer or floating point constants,\n"
>>>     "and functions.\n" "\n" "For more information use 'g.manual r.mapcalc'\n";
>>
>> Does enclosing the string in _(...) not work?
>
> For me no, I get in the last row:
> error: invalid initializer
>
> 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