[Geoserver-devel] [JIRA] (GEOS-10129) Add language function for multilingual support in sld

Marco Volpini created an issue

GeoServer / New FeatureGEOS-10129

Add language function for multilingual support in sld

Issue Type:

New FeatureNew Feature

Assignee:

Marco Volpini

Created:

30/Jun/21 10:42 AM

Priority:

MediumMedium

Reporter:

Marco Volpini

A new language function will retrieve the AcceptLanguages parameter value from the request, so that can be used in sld to support multilingual labels.
The sld needs to use the recode transformation function with the language function result as a parameter eg.

> <TextSymbolizer>
> <Label>
> <ogc:Function name=“Recode”>
> <ogc:Function name=“language”/>
>
> <ogc:Literal>en</ogc:Literal>
> <ogc:Literal>name_en</ogc:Literal>
>
> <ogc:Literal>it</ogc:Literal>
> <ogc:Literal>name_it</ogc:Literal>
>
> <ogc:Literal>fr</ogc:Literal>
> <ogc:Literal>name_fr</ogc:Literal>
> </ogc:Function>
> </Label>
> <Fill>
> <CssParameter name=“fill”>#000000</CssParameter>
> </Fill>
> </TextSymbolizer>

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100166-sha1:cc21667)

Atlassian logo