Skip to content
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

Merged
merged 4 commits into from
Jun 21, 2024
Merged

Conversation

ocruze
Copy link
Member

@ocruze ocruze commented Jun 19, 2024

No description provided.

@ocruze ocruze requested a review from slafayIGN June 19, 2024 09:00
Copy link
Contributor

@KaiVolland KaiVolland left a 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 Show resolved Hide resolved
src/SldStyleParser.ts Outdated Show resolved Hide resolved
src/SldStyleParser.ts Outdated Show resolved Hide resolved
src/SldStyleParser.ts Outdated Show resolved Hide resolved
src/SldStyleParser.ts Outdated Show resolved Hide resolved
@ocruze ocruze requested a review from KaiVolland June 19, 2024 09:49
de: {},
fr: {
marksymbolizerParseFailedUnknownWellknownName:
'Lecture de MarkSymbolizer échoué. Le WellKnownName {{wellKnownName}} n\'est pas supporté.',

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...

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é.',

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.',
Copy link

@slafayIGN slafayIGN Jun 19, 2024

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.

Copy link

@slafayIGN slafayIGN left a 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

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.',

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....

contrastEnhancParseFailedHistoAndNormalizeMutuallyExclusive:
'Lecture de ContrastEnhancement échoué. Histogram et Normalize sont mutuellement exclusifs.',
channelSelectionParseFailedRGBAndGrayscaleMutuallyExclusive:
'Lecture de ChannelSelection échoué. RGB et Grayscale sont mutuellement exclusifs.',

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....

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.',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pareil

@ocruze ocruze requested a review from slafayIGN June 19, 2024 11:48
Copy link
Contributor

@jansule jansule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@jansule jansule merged commit e01c8c8 into master Jun 21, 2024
7 checks passed
@ocruze ocruze deleted the i18n-setup branch June 21, 2024 11:27
github-actions bot pushed a commit that referenced this pull request Jun 21, 2024
## [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)
@jansule
Copy link
Contributor

jansule commented Jun 21, 2024

🎉 This PR is included in version 5.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

hwbllmnn added a commit that referenced this pull request Jul 4, 2024
feat: reimplementing i18n for error messages without i18next #923 #924 #928 #944
github-actions bot pushed a commit that referenced this pull request Jul 4, 2024
## [6.1.0](v6.0.0...v6.1.0) (2024-07-04)

### Features

* reimplementing i18n for error messages without i18next [#923](#923) [#924](#924) [#928](#928) [#944](#944) ([8252180](8252180))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants