Hi Arthur,

2015-04-07 20:47 GMT+02:00 Arthur F. Zanona <[email protected]>:

>
>
> https://github.com/geoserver/geoserver/pull/253
>
>
Unfortunately this pull request was about internazionalization of Rule
labels, and did not apply to color map entries labels, so what you are
asking for is not supported yet.


>
> But i need:
>
>           <ColorMap type="ramp" lang='pt_BR'>
>                 <ColorMapEntry color="#0000AD" quantity=".25"
> label="normal"/>
>                 <ColorMapEntry color="#0000ED" quantity=".5" label="baixo"
> />
>                 <ColorMapEntry color="#00FFFE" quantity=".75"
> label="medio" />
>                 <ColorMapEntry color="#73FF8C" quantity="1.0" label="alto"
> />
>            </ColorMap>
>
>           <ColorMap type="ramp" lang='en'>
>                 <ColorMapEntry color="#0000AD" quantity=".25"
> label="normal"/>
>                 <ColorMapEntry color="#0000ED" quantity=".5" label="low" />
>                 <ColorMapEntry color="#00FFFE" quantity=".75"
> label="medium" />
>                 <ColorMapEntry color="#73FF8C" quantity="1.0" label="high"
> />
>            </ColorMap>
>
>
I would use a different syntax, to avoid unneeded replication, since we
need to differentiate only the label we could:
 - add additional attributes for localized labels (label_pt_BR or
label_en), but this could be a bit "out of standard" and difficult to parse
/ serialize
 - use an expression like syntax to express multilanguage labels,
leveraging cql functions. I was thinking of something like:
label="${Recode(env('lang','en'),'pt_BR','baixo','en','low')}"

With a recent pull request I added cql syntax support for several
ColorMapEntry attributes, but unfortunately (again) label was not one of
those, because it was a bit more difficult than for other attributes.


Regards,
Mauro
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to