[OpenLayers-Dev] Scale control and innerhtml text

Mike Adair madair at dmsolutions.ca
Fri Feb 1 09:57:13 EST 2008


With the work being done for the I18n patch, 
http://trac.openlayers.org/ticket/109, that would get changed to:

innerHTML = OpenLayers.String.translate('scaleTemplate', number);

And then there would be an Italian string resource file with the 
OpenLayers.Strings['it'].scaleTemplate = 'scala 1:{0}'

Details of how it's implemented may change, but the concept is being 
worked on.


Diego Guidi wrote:
> I'm checking the source of the scale control, and i see that the
> innerHTML is something like:
> innerHTML = "Scale: " + number;
> I think that a better behavior is to return only the numeric value, so
> the user could customize the text value (as example using italian
> text).
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev

More information about the Dev mailing list