Translation of error messages

Translate error messages in ChronoForms.

Overview

The error messages are hardcoded in English and need localization.
Navigate to Form > Settings > Locales, add your language code, define your strings, and use the {l:string} placeholder in field error messages.

Answered
ChronoForms v8
fw fwm 19 Nov, 2023
Hello,

How can I translate the following error messages?
- This field is required.
- A valid email address is required.

Thanks!
rb rbock 19 Nov, 2023
I am modifying some PHP files. This way I don't have to adjust this for every field in all forms. Maybe Max will add a global option for this again, like in CF7.
Max_admin Max_admin 19 Nov, 2023
Answer
Form > settings > Locales

Add language (en-GB, de-DE, it-IT...etc), then use {l:string} as your error message

example, if you enter the following in the language box:
string=This is required

then use {l:string} in the field settings
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.