#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> _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev