WPML

WPML.org site

For translations, the Polylang Plugin would be a better idea. WPML has too much nonstandard code that interferes with how WordPress and other plugins work.

This add-on for Broadcast adds support for ICanLocalize’s WPML translation plugin. More specifically, it adds support for:

  • The WPML plugin itself
  • the WooCommerce Multilinguagal plugin

The add-on will automatically link the translations on the child blogs to each other upon broadcast.

Please read all of the notes below, they contain information that can save you a ton of headache.

Syncing taxonomies

Taxonomies can be synced in one language at a time using the Sync Taxonomies plugin. In order to correctly sync taxonomies in WPML you have to switch to the language in question, using the admin bar, before syncing. The same language must exist on the target blog(s).

Language selector in the admin bar

Language selector in the admin bar

Notes

WPML must be enabled before pages are Broadcasted, otherwise translated posts will lose their language linking upon being rebroadcast from the parent blog.

Each translation much be broadcasted separately.

When creating a new translation by using the duplicate content function, the post is automatically broadcasted to all blogs that it is currently broadcasted to.

To create a new translation, do not use any WPML duplication functions. Instead, use the + sign for the language you want to translate the post to. If you do not do this, you can end up with duplicate taxonomy terms.

When broadcasting to blogs without WPML enabled (and WPML is not network enabled) the post will be broadcast as normal, without any WPML handling. If the broadcasted post is hidden, use this snippet to broadcast from non-WPML to WPML sites.

Taxonomy term translations are remembered between blogs if the terms have the same slugs on the parent and child blogs.

Using WPML together with the Broadcast Queue add-on is hit-or-miss: it might work for you, it might not, leaving the child post and terms in the wrong language. If you find that the language is incorrect, you’ll have to disable the queue.

If you find that images disappear from other translations when broadcasting, disable media duplication, as per this image:

Disable to prevent missing images

If you find that you are getting duplicate terms when broadcasting, disable taxonomy copying, as per this image:

Setting to prevent duplicate terms

Tested with

Version 4.0.6 ; 3.2.2 ; 3.1.9.7.

Where to buy

This add-on is a part of the following packs:

Comments

  1. From a user:

    “From what we’ve observed, adding the translate independently after duplicate seems like a behaviour that is acceptable for most multlingual websites. This method works with the latest wpml 3.3.5 and wordpress 4.4.1.”

Leave a Reply

Your email address will not be published. Required fields are marked *