WPML
Status
Resolved
Reported for
WPML String Translation 3.2.1
Resolved in
3.2.2

Overview of the issue

This problem happens when trying to translate an option (admin text) that contains an array as a value.

For example, you might be using a theme or plugin that uses this method to add strings (text) in a page builder kind of application.

The zero index of the array (first element) is dropped and not translated.

Workaround

Open the wpml-admin-texts.class.php file in the ../plugins/wpml-string-translation/inc/admin-texts/ folder. Edit line 290 to add the strlen argument to array_filter, like this:

 return array_filter( explode( '][', preg_replace( '/^\[(.*)\]$/', '$1', $string ) ), 'strlen' ); 

All known issues →