[Geoserver-devel] [jira] Created: (GEOS-2849) Localization support in GetLegendGraphics and/or removal of English Strings

Localization support in GetLegendGraphics and/or removal of English Strings
---------------------------------------------------------------------------

                 Key: GEOS-2849
                 URL: http://jira.codehaus.org/browse/GEOS-2849
             Project: GeoServer
          Issue Type: Wish
          Components: WMS
    Affects Versions: 1.7.3
            Reporter: Sune Edmund Pedersen
            Assignee: Andrea Aime
            Priority: Minor

When calling getLegendGraphics the org.vfny.geoserver.wms.responses.legend.raster.ColorMapLegendCreator.class contains a few Strings in English used for the footer

In some case it could be nice to either be able to localize or remove these, especially when you dynamically generate the graphics for the end user, who do not know what an extended color map is.

line 547-559
    //
    //FOOTER
    //
        //set footer strings
    final String bandNameString = "Band selection is "+this.grayChannelName;
    footerRows.add(new TextManager(bandNameString,vAlign,hAlign, backgroundColor, requestedDimension, labelFont, labelFontColor, fontAntiAliasing, borderColor));
        //set footer strings
    final String colorMapTypeString = "ColorMap type is "+this.colorMapType.toString();
    footerRows.add(new TextManager(colorMapTypeString,vAlign,hAlign, backgroundColor, requestedDimension, labelFont, labelFontColor, fontAntiAliasing, borderColor));
    // extended colors or not
    final String extendedCMapString = "ColorMap is "+(this.extended?"":"not")+" extended";
    footerRows.add(new TextManager(extendedCMapString,vAlign,hAlign, backgroundColor, requestedDimension, labelFont, labelFontColor, fontAntiAliasing, borderColor));
    cycleFooterRows(graphics);

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira