- Go to Woocommerce > Woocommerce Multilingual > Settings.
- Select the Add separate download files for translations when translating products option from the Products Download Files section. (check the screenshot).
- Save the settings.
- Go to the product in the dashboard and do a small change, for example, change the title to force the need to update the translation.
- There you will see a separate section for translating the downloadable product items.
Problem: I'm having trouble translating the mailpoet plugin
Solution: Mailpoet is not officially compatible but you can try the following
1) Upgrade to the latest version of WPML
2) Go to *wp-content/plugins/mailpoet/lib/WooCommerce* folder
3) Open *Subscription.php* file for edit
4) Scroll down to line 48 and make the following change to the code. Save the change.
[php]
$labelString = __($this->settings->get(self::OPTIN_MESSAGE_SETTING_NAME), 'wpml-fix');
>String Translation enables "Look for strings while pages are rendered"
6) Visit the page in the front end
7) Then the string should appear in WPML>>String Translation under the text domain 'wpml-fix'
8) Translate it there and it should show up in the front end
Problem:
I would like to place a custom language switcher in the top right corner of the header (I have 1 global header and 2 custom headers made with Divi Theme Builder)
Solution:
Place the custom language switcher shortcode [wpml_language_selector_widget] in the Divi code module in the global header made with Divi builder.
That shortcode outputs the language switcher based on the options set in the Custom Language Switchers section.
In this example, 'documentation' represents the slug of the page you link to and don't want to take the user to the translation of this page. Please read more about this function in our documentation here.
1. You do not need to activate the Sticky Links add-on.
2. For existing pages and posts with links in their content, you might need to make a small change on the page and press the Update button. And then also update the translation.
Problem:
The advanced custom field relationship is not translated, the English field has Arabic values, not the English ones. Relationship fields are set to Translate.
Solution:
- Go to ACF > Fields groups > Edit and set your relationships field to Copy, so the same value is copied to the translated post.
- Go to default language post and click Update so correct values are now synced and copied.