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

Support i18n in ValidationError #9089

Closed
Tracked by #9055
rymsha opened this issue Sep 21, 2021 · 1 comment
Closed
Tracked by #9055

Support i18n in ValidationError #9089

rymsha opened this issue Sep 21, 2021 · 1 comment
Assignees
Labels

Comments

@rymsha
Copy link
Contributor

rymsha commented Sep 21, 2021

it should be possible to provide i18n key for ValidationError.

@rymsha
Copy link
Contributor Author

rymsha commented Sep 24, 2021

most of work is done it #9056

Need to agree on i18n keys

system.cms.validation.optionsetOccurrences=OptionSet [{0}] requires min {1} max {2} items selected: {3}
system.cms.validation.minOccurrences=[{0}] requires minimum {1,choice,1#1 occurrence|1<{1} occurrences}: {2}
system.cms.validation.maxOccurrences=[{0}] allows maximum {1,choice,1#1 occurrence|1<{1} occurrences}: {2}
system.cms.validation.site=Data validation error in site config for {0}
system.cms.validation.displayNameRequired=displayName is required
system.cms.validation.nameRequired=name is required

@rymsha rymsha self-assigned this Sep 24, 2021
@rymsha rymsha added the Feature label Sep 24, 2021
@rymsha rymsha mentioned this issue Sep 30, 2021
5 tasks
rymsha added a commit that referenced this issue Oct 1, 2021
rymsha added a commit that referenced this issue Oct 1, 2021
rymsha added a commit that referenced this issue Oct 5, 2021
rymsha added a commit that referenced this issue Oct 6, 2021
@alansemenov alansemenov changed the title ValidationError i18n Support i18n in ValidationError Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants