[GRASS-dev] [GRASS GIS] #2912: raster_what() not compliant with localised version of GRASS

GRASS GIS trac at osgeo.org
Wed Feb 17 06:29:01 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 lucadelu):

 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.

 In the attached diff I propose a change, because the actual behavior is
 useful for GUI modules but not for other uses

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2912#comment:3>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list