geostyler / geostyler-sld-parser

GeoStyler-Style-Parser implementation for SLD
BSD 2-Clause "Simplified" License
48 stars 29 forks source link

Translations of parsers error messages #923

Closed slafayIGN closed 2 weeks ago

slafayIGN commented 3 weeks ago

Messages from the parsers are in english.

For instance : https://github.com/geostyler/geostyler-sld-parser/blob/master/src/SldStyleParser.ts#L976

   throw new Error('MarkSymbolizer cannot be parsed. Unsupported WellKnownName.');

These messages sometimes have to be displayed for the end user who may be using a UI in another language. It would be great to make the parsers more multilingual.

In addition, the message may contain the "Unsupported WellKnownName". (see #924)

ocruze commented 2 weeks ago

Done in #928