Multilanguage issue for form label and submit button
-
The issue is, there is no way to translate label and submit button, that’s why we are modifying the following file, Can it possible to add the text domain for these two blocks?
Mailpoet:
plugins/mailpoet/lib/Form/Block/Base.php Line no: 79
$html .= $block[‘params’][‘label’];
Replaced to
——————-
$html .= __($block[‘params’][‘label’], ‘mailpoet’);plugins/mailpoet/lib/Form/Block/Submit.php Line no: 13
$html .= ‘value=”‘.static::getFieldLabel($block).'” ‘;
Replaced to
——————-
$html .= ‘value=”‘.__(static::getFieldLabel($block), ‘mailpoet’).'” ‘;The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Multilanguage issue for form label and submit button’ is closed to new replies.