[GRASS-dev] element name labels --> label?

Hi,

can we rename for consistency "labels" to "label"?
The element name uses the plural form.

               raster: raster map(s)
               raster_3d: 3D raster map(s)
               vector: vector map(s)
               labels: paint label file(s) <<--- why s?
               region: region definition(s)
               group: imagery group(s)

In C, there is G_ELEMENT_LABEL (not G_ELEMENT_LABELS) used in include/gis.h.

If no objections, I'll change that and also sync here:
./lib/python/pygrass/gis/__init__.py: 'labels': libgis.G_ELEMENT_LABEL,

Markus

On Sat, Jan 10, 2015 at 1:19 PM, Markus Neteler <neteler@osgeo.org> wrote:

Hi,

can we rename for consistency "labels" to "label"?
The element name uses the plural form.

               raster: raster map(s)
               raster_3d: 3D raster map(s)
               vector: vector map(s)
               labels: paint label file(s) <<--- why s?
               region: region definition(s)
               group: imagery group(s)

In C, there is G_ELEMENT_LABEL (not G_ELEMENT_LABELS) used in include/gis.h.

If no objections, I'll change that and also sync here:
./lib/python/pygrass/gis/__init__.py: 'labels': libgis.G_ELEMENT_LABEL,

Done in trunk and relbranch7.

Markus