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

GRASS GIS trac at osgeo.org
Thu Feb 11 02:16:02 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 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.

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



More information about the grass-dev mailing list