Hi Michael,
indeed there is some support for it, but it's not well documented (I will
try to add some documentation ASAP).
You can use the parameter LANGUAGE to choose a particular locale, then you
can use the following syntax in SLD to specify some of the metadata in
several languages:

<Title>Basso-Basso
      <Localized lang="it">Basso-Basso</Localized>
      <Localized lang="en">Low-Low</Localized>
      <Localized lang="fr">Faible-Faible</Localized>
      <Localized lang="de">Niedriges-Niedriges</Localized>
  </Title>

The text directly inside Title is the default (when no language parameter
is specified). The text in a Localized tag is used when LANGUAGE is equal
to the lang attribute value.

This syntax can be used for the following SLD Title and Abstract tags.

Regards,
Mauro


2015-09-11 0:50 GMT+02:00 Michael Colin <[email protected]>:

> Hello :)
>
> I recently started using GeoServer and am currently trying to learn the
> ropes. My new project has been using GeoServer for some time now. They
> currently are on version 2.5. Now I received the task to add
> internationalization to the legend drawn from the style of a layer. I could
> do it with custom functions but I would prefer a native way over building
> my own mechanism. I found this mailing list entry:
> http://osgeo-org.1560.x6.nabble.com/SLD-and-Internationalization-td5054597.html
> which seems to address my issue exactly. But as I can find no mention of
> this in the documentation I am not sure if this made it into the
> application as of yet.
>
> Does anyone know if the SLD i18n was implemented? And if so, which
> parameter do I have to set to define the locale for the getLegendGraphic (
> http://docs.geoserver.org/stable/en/user/services/wms/get_legend_graphic/legendgraphic.html#get-legend-graphic)
> request?
>
> Cheers,
> Michael
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to