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

GRASS GIS trac at osgeo.org
Wed Feb 17 10:05:16 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 annakrat):

 Replying to [comment:5 lucadelu]:
 > Replying to [comment:4 annakrat]:
 > >
 > > I would prefer to avoid the `gui` parameter. Instead we could have a
 wrapper function raster_what in wxpython/core/utils.py which would replace
 the labels with the translatable ones? Sorry, no time for this right now,
 maybe later.
 >
 > Can you explain a little bit more why you don't like gui parameter? Your
 proposal seems to me a duplication of code...

 I didn't like the gui parameter, perhaps `localized=False` would make more
 sense when you want to use localized names in a script, not just in the
 gui.

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



More information about the grass-dev mailing list