Add language function for multilingual support in sld

Description

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>

Environment

None

Activity

Marco Volpini 
July 6, 2021 at 10:08 AM

main pr

Fixed

Details

Assignee

Reporter

Fix versions

Components

Priority

Created June 30, 2021 at 8:42 AM
Updated September 14, 2021 at 11:50 PM
Resolved July 6, 2021 at 10:08 AM