-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement i18n for error messages #923 #924 #928
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job @ocruze. I added some notes to limitations the typings would introduce.
src/SldStyleParser.ts
Outdated
de: {}, | ||
fr: { | ||
marksymbolizerParseFailedUnknownWellknownName: | ||
'Lecture de MarkSymbolizer échoué. Le WellKnownName {{wellKnownName}} n\'est pas supporté.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Échec de lecture du symbole de type MarkSymbolizer. Le WellKnownName...
src/SldStyleParser.ts
Outdated
marksymbolizerParseFailedUnknownWellknownName: | ||
'Lecture de MarkSymbolizer échoué. Le WellKnownName {{wellKnownName}} n\'est pas supporté.', | ||
noFilterDetected: 'Aucun filtre détecté.', | ||
symbolizerKindParseFailed: 'Lecture de SymbolizerKind {{sldSymbolizerName}} à partir de SldRule échoué.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Échec de lecture du type de symbole {{sldSymbolizerName}} à partir de SldRule.
'Lecture de MarkSymbolizer échoué. Le WellKnownName {{wellKnownName}} n\'est pas supporté.', | ||
noFilterDetected: 'Aucun filtre détecté.', | ||
symbolizerKindParseFailed: 'Lecture de SymbolizerKind {{sldSymbolizerName}} à partir de SldRule échoué.', | ||
colorMapEntriesParseFailedColorUndefined: 'Lecture de ColorMapEntries échoué. color n\'est pas défini.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Échec de lecture des couleurs ColorMapEntries : color n'est pas défini.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some other translations suggestions in french
src/SldStyleParser.ts
Outdated
symbolizerKindParseFailed: 'Lecture de SymbolizerKind {{sldSymbolizerName}} à partir de SldRule échoué.', | ||
colorMapEntriesParseFailedColorUndefined: 'Lecture de ColorMapEntries échoué. color n\'est pas défini.', | ||
contrastEnhancParseFailedHistoAndNormalizeMutuallyExclusive: | ||
'Lecture de ContrastEnhancement échoué. Histogram et Normalize sont mutuellement exclusifs.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Échec de lecture des propriétés de contraste ContrastEnhancement. Histogram....
src/SldStyleParser.ts
Outdated
contrastEnhancParseFailedHistoAndNormalizeMutuallyExclusive: | ||
'Lecture de ContrastEnhancement échoué. Histogram et Normalize sont mutuellement exclusifs.', | ||
channelSelectionParseFailedRGBAndGrayscaleMutuallyExclusive: | ||
'Lecture de ChannelSelection échoué. RGB et Grayscale sont mutuellement exclusifs.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Échec de lecture de la sélection de canaux ChannelSelection....
src/SldStyleParser.ts
Outdated
channelSelectionParseFailedRGBAndGrayscaleMutuallyExclusive: | ||
'Lecture de ChannelSelection échoué. RGB et Grayscale sont mutuellement exclusifs.', | ||
channelSelectionParseFailedRGBChannelsUndefined: | ||
'Lecture de ChannelSelection échoué. Les canaux Rouge, Vert et Bleu doivent être définis.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pareil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
## [5.4.0](v5.3.1...v5.4.0) (2024-06-21) ### Features * Extract SLD version from SLD ([#926](#926)) ([56f231b](56f231b)) * implement i18n for error messages [#923](#923) [#924](#924) ([#928](#928)) ([e01c8c8](e01c8c8)) ### Bug Fixes * offset Y for Textsymbolizer ([#932](#932)) ([398ce0c](398ce0c)), closes [#566](#566)
🎉 This PR is included in version 5.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.