[TASK] Fix broken validation translation form docs 51/53851/3
authorJustus Leon Moroni <noreply@example.com>
Thu, 31 Aug 2017 16:59:39 +0000 (18:59 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Fri, 1 Sep 2017 06:28:34 +0000 (08:28 +0200)
The TranslationService uses the additional key 'error' in its translations
of the validation errors.

See https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/form/Classes/Service/TranslationService.php#L428.

Releases: master,8.7
Resolves: #82264
Change-Id: Id00b60de0bf1b2b882f583f538be9bc8e40c010f
Reviewed-on: https://review.typo3.org/53851
Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/form/Documentation/Concepts/FrontendRendering/Index.rst

index 81cef5c..8bc0237 100644 (file)
@@ -1004,9 +1004,9 @@ are valid. Read more about :ref:`concrete validator configurations <typo3.cms.fo
 The look-up process searches for translation keys in all given translation
 files based on the following order:
 
 The look-up process searches for translation keys in all given translation
 files based on the following order:
 
-- ``<formDefinitionIdentifier>.validation.<elementIdentifier>.<validationErrorCode>``
-- ``<formDefinitionIdentifier>.validation.<validationErrorCode>``
-- ``validation.<validationErrorCode>``
+- ``<formDefinitionIdentifier>.validation.error.<elementIdentifier>.<validationErrorCode>``
+- ``<formDefinitionIdentifier>.validation.error.<validationErrorCode>``
+- ``validation.error.<validationErrorCode>``
 
 
 Example
 
 
 Example
@@ -1043,9 +1043,9 @@ name", the ``NotEmpty`` validator fails. Now, the look-up process searches
 for the following translation keys for the ``NotEmpty`` validator combined
 with the form element ``LastName``:
 
 for the following translation keys for the ``NotEmpty`` validator combined
 with the form element ``LastName``:
 
-- ContactForm.validation.LastName.1221560910
-- ContactForm.validation.1221560910
-- validation.1221560910
+- ContactForm.validation.error.LastName.1221560910
+- ContactForm.validation.error.1221560910
+- validation.error.1221560910
 
 As mentioned above, if there is no corresponding translation key available,
 the default message of the Extbase framework will be shown.
 
 As mentioned above, if there is no corresponding translation key available,
 the default message of the Extbase framework will be shown.