2013/2/21 Andrea Aime <[email protected]>
>
>
> Internationalizing the other requests presents greater difficulties:
> GetMap should
> report labels in the requested language, GetFeatureInfo
>
Hi Andrea. For this 2 specific cases, I was thinking of a simple approach
that could be implemented as a first step to add some form of
internationalization.
For GetFeatureInfo, it would be useful to have different templates (with a
prefix or suffix in the name) depending on a request parameter.
For GetMap the env variable substitution in SLD could be used to build a
different PropertyName for labeling (currently this doesn't seem to be
feasible, I think because env variable substitution can only produce a
Literal and not a PropertyName). I was thinking of something like this:
<Label>
<ogc:PropertyName>
<ogc:Function name="Concatenate">
<ogc:Literal>STATE_</ogc:Literal>
<ogc:Function name="env">
<ogc:Literal>lang</ogc:Literal>
<ogc:Literal>EN</ogc:Literal>
</ogc:Function>
</ogc:Function>
</ogc:PropertyName>
</Label>
Do you think this could be useful in the intended direction and easy to
implement?
Thanks.
Mauro Bartolomeoli
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Dott. Mauro Bartolomeoli
@mauro_bart
Senior Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel