Validation message is not translatable by the configuration translation system. Custom schema definition is needed to provide it.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | interdiff-3001796-2-3.txt | 5.01 KB | manuel.adan |
| #3 | field_validation-translation_support-3001796-3.patch | 5.7 KB | manuel.adan |
| #2 | field_validation-translation_support-3001796-2.patch | 1.45 KB | manuel.adan |
Comments
Comment #2
manuel.adanI found that the config schema was incorrect. It now works and error message translation is available at the configuration translation ( /admin/config/regional/config-translation/field_validation_rule_set ).
Comment #3
manuel.adanThe schemas has some additional things to fix:
1. Schema prefix for rule sets is expected to be "field_validation.field_validation_rule_set.*", but the actual value is "field_validation.fv.*". I renamed it in schema and code to "field_validation.rule_set.*", that matched better with standards.
2. Non of the available validation rules had schemas. I added it all.
This patch introduces a database update that renames existing configuration entries. Don't forget to "drush updb" and then export your config to populate the changes to config sync dir.
Comment #5
manuel.adan