0
votes

I've got a problem with translating the client side validator in ext:form in a multi language site en/de/it/fr/cn.

But in english page I have the german translation "Bitte füllen Sie dieses Feld aus", which should not appear here.

I tried all variations of

support.validation.error.email.1221560910

validation.error.1221560910

in typo3conf/ext/site_package/Resources/Private/Language/locallang.xlf but nothing happens with german message...

I've already tried How do you translate EXT:Form forms in TYPO3 CMS 8.7 LTS?

2

2 Answers

0
votes

you might need to define the current language in your typoscript.

instead of the older condition based on the L-parameter you now need it done with the symphony expressions:

[siteLanguage("title") == "English"]
  config {
      sys_language_uid = 1
      language = en
      locale_all = en_US.UTF-8
      htmlTag_langKey = en
  }
[global]

and you need the correct spelling based on your language definition in the yaml file

0
votes

You can translate validation error messages with the following translation keys:

<formDefinitionIdentifier>.validation.error.<elementIdentifier>.<validationErrorCode>
<formDefinitionIdentifier>.validation.error.<validationErrorCode>
validation.error.<elementIdentifier>.<validationErrorCode>
validation.error.<validationErrorCode>

Source: Documentation of the TYPO3 Form Framework, TYPO3 v8

Important: the translation keys for validation messages are only considered if you don't already have a message in the form definition under validationErrorMessages!

So please check your form definition for custom validation messages and remove them there.