|
Cannot translate Mailpoet String
Started by: fredericE
in: English Support
Quick solution available
Problem:
MailPoet - Checkbox opt-in message - if the user changes the message the string cannot be found for translation
Solution:
1. Open the following file with the text or code editor that you are using.
/wp-content/plugins/mailpoet/lib/WooCommerce/subscription.php
2. Change this line:
<span class="woocommerce-terms-and-conditions-checkbox-text">' . $this->wp->escHtml($label_string) . '</label>
To this:
<span class="woocommerce-terms-and-conditions-checkbox-text">' . esc_html_e($label_string, 'wpml-fix') . '</label>
3. Save the change.
4. Visit the page on the front-end where this string is showing and this way the string will be registered.
5. Go to String Translation, and you will find this string under the 'wpml-fix' domain.
6. Translate the string.
It will now also work on the front-end.
Relevant Documentation:
|
|
3 |
8 |
3 years, 9 months ago
Itamar
|
|
database error
Started by: fredericE
in: English Support
|
|
2 |
2 |
4 years, 1 month ago
fredericE
|