Project

General

Profile

Actions

Feature #82366

closed

Allow translation of validation messages for a specific elementIdentifier without a formDefinitionIdentifier

Added by David Gurk about 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Form Framework
Start date:
2017-09-08
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:
Remote Sprint

Description

As integrator/developer I like to translate form-element validation messages without the need of a form-definition-identifier.

A use case is a installation with multiple forms which share common form fields like the first and the last name. If it's required that the input is not empty, it is necessary to display an error message like "Please fill in the last name".

Currently I can only translate the validation message like:

ContactForm.validation.error.LastName.1221560910

Only available option - very specific.

ContactForm.validation.error.1221560910
validation.error.1221560910

Both are less specific. This is more useful for cases with error messages like "This field is mandatory".

In this use case beside the ContactForm I have another form "StoreContactForm". If I like to have the same error message "Please fill in the last name", I currently add another translation with the key "StoreContactForm.validation.error.LastName.1221560910".

This gets very annoying with each other form with the same field. Especially in installations with multiple translations.

A no-brainer solution would be to add another translation key format within the translation key chain in the translations service for the validation messages.

This would allow to set the needed error message for the last name like "validation.error.LastName.1221560910" for each available form.

Actions #1

Updated by David Gurk about 7 years ago

I would appreciate it if this could be my first real contribution to the project. I currently prepare my first commit.

Actions #2

Updated by Gerrit Code Review about 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53988

Actions #3

Updated by Mathias Brodala about 7 years ago

  • Sprint Focus set to Remote Sprint
Actions #4

Updated by Gerrit Code Review about 7 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53988

Actions #5

Updated by Gerrit Code Review about 7 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53988

Actions #6

Updated by Gerrit Code Review about 7 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53988

Actions #7

Updated by Gerrit Code Review about 7 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53988

Actions #8

Updated by Gerrit Code Review about 7 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53988

Actions #9

Updated by Gerrit Code Review about 7 years ago

Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54179

Actions #10

Updated by Anonymous about 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #11

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF