[GRASS-dev] [GRASS GIS] #2912: raster_what() not compliant with localised version of GRASS
GRASS GIS
trac at osgeo.org
Thu Feb 11 05:09:46 PST 2016
#2912: raster_what() not compliant with localised version of GRASS
---------------------+---------------------------------------------
Reporter: andbal | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.0.4
Component: Python | Version: svn-trunk
Resolution: | Keywords: grass.script python translation
CPU: x86-64 | Platform: Linux
---------------------+---------------------------------------------
Comment (by marisn):
Replying to [comment:1 mlennert]:
> Replying to [ticket:2912 andbal]:
> > Writing a python script, I found that the
{{{grass.script.raster_what()}}} output dictionary has different keys
depending on language used in GRASS.
>
>
> This comes from line 191 in lib/python/script/raster.py where these
labels are noted as translatable strings. I agree that this is a very bad
idea and that such dictionary keys should not be translatable.
>
> Unless anyone gives a good reason for the contrary, I will change the
vector of labels to non-translatable. This might break existing scripts,
but I think this is necessary.
Then also add line 184 ("No data").
This also needs to be explicitly stated in docstring that it is callers
responsibility to use localized version of key values before they are
displayed to the end user.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2912#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list