Resolved
Reported for: Gravity Forms Multilingual 1.6.0
Overview of the issue
When setting up a Gravity Forms form, users have the option to add custom messages for Schedule Pending and Login Required. When you translate the form, you won’t be able to translate those strings.
Workaround
We’re working on a permanent fix for this issue. In the meantime, you can follow these steps to fix the issue:
- Backup your website files and database.
- Modify gravityforms-multilingual/inc/gravity-forms-multilingual.class.php Lines 196 — 210From
1234567891011121314
protected
function
get_form_keys() {
if
( ! isset(
$this
->_form_keys ) ) {
$this
->_form_keys = [
'limitEntriesMessage'
,
'scheduleMessage'
,
'postTitleTemplate'
,
'postContentTemplate'
,
'button-imageUrl'
,
'lastPageButton-text'
,
'lastPageButton-imageUrl'
,
];
}
return
apply_filters(
'gform_multilingual_form_keys'
,
$this
->_form_keys );
}
To
12345678910111213141516protected
function
get_form_keys() {
if
( ! isset(
$this
->_form_keys ) ) {
$this
->_form_keys = [
'limitEntriesMessage'
,
'scheduleMessage'
,
'requireLoginMessage'
,
'schedulePendingMessage'
,
'postTitleTemplate'
,
'postContentTemplate'
,
'button-imageUrl'
,
'lastPageButton-text'
,
'lastPageButton-imageUrl'
,
];
}
return
apply_filters(
'gform_multilingual_form_keys'
,
$this
->_form_keys );
}
- Then, you can slightly modify the form and re-send it to be translated.