2013/5/21 Andrea Aime <andrea.a...@geo-solutions.it>

> On Tue, May 21, 2013 at 6:42 PM, carlo cancellieri <
> carlo.cancelli...@geo-solutions.it> wrote:
>
>> Mauro,
>>
>>  Can you explain me using an example how you would use the VendorOption
>>> to specify localized versions of a title or abstract?
>>>
>>
>> Well I was thinking to standardize the keys using the I18n standard
>> prefix plus a fixed Keyword, something like:
>>
>> <VendorOption name="it_IT.TITLE">Il titolo</VendorOption>
>> <VendorOption name="en_US.TITLE">The title</VendorOption>
>> <VendorOption name="it_IT.ABSTRACT">Questo e' un esempio</VendorOption>
>> <VendorOption name="en_US.ABSTRACT">This is an example</VendorOption>
>>
>
> I guess it's a nice balance... does not break too much SLD, it's clear
> it's a vendor extension, and we already
> have option maps in the symbolizers, so why not have them in UserStyle as
> well.
> And more importantly, keeps everything in a single place
>
>
Just a note: for my specific needs I would add VendorOption support to
Rule, not to UserStyle, since it's the Rule title that is shown on
GetLegendGraphic labels. I think the same can be extended to other SLD
elements containing Title and Abstract, such as UserStyle, FeatureTypeStyle
and maybe others.

I will try to prepare a patch (for Geotools and GeoServer) and inform you
when it's ready.

Thanks.
Mauro Bartolomeoli

-- 
==
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.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

-------------------------------------------------------
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to