[GRASS-dev] Re: [GRASS-SVN] r33171 - in grass/trunk: lib/gis raster/r.colors

Glynn Clements glynn at gclements.plus.com
Sat Aug 30 16:33:48 EDT 2008


Martin Landa wrote:

> I wonder about localization of colors descriptions...

> Author: glynn
> Date: 2008-08-30 13:21:59 -0400 (Sat, 30 Aug 2008)
> New Revision: 33171
>
> Added:
>   grass/trunk/lib/gis/colors.desc
> Modified:
>   grass/trunk/lib/gis/Makefile
>   grass/trunk/raster/r.colors/main.c
> Log:
> Read descriptions for etc/colors/* from etc/colors.desc

None of the existing .po files include a translation for
opt.colr->descriptions.

The new code passes each description to _() individually, which is
probably more useful (i.e. each description is translated separately,
so the translation doesn't become invalid each time a new description
is added).

OTOH, xgettext won't find the source strings by itself; they'll need
to be added manually. That's an inevitable consequence of not
embedding the descriptions in the source code (it seems a bit
pointless being able to just drop new colour tables into etc/colors
but then needing to re-compile r.colors to add the description).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list