Widget translation issue with WPML and WP Page Widget
-
Hi – great plugin!
I realise I’ve made a rod for my own back here, but I am using your plugin along with WP Page Widget to allow different widgets on different pages, and WPML.
I noticed that a particular widget on an English page on my site is showing the English widget title but the content from the same widget on the equivalent Welsh version of the page. A little troubleshooting revealed that the switch happened during the function wpml_widget_text() which starts on line 187 of black-studio-tinymce-widget/includes/class-compatibility-plugins.php.
Because WP Page Widget means I’m putting separate widgets on each page (and each translation of each page) anyway, I don’t actually need widgets to translate themselves. In fact that appears to be causing this issue as the widget seems to be “translating” itself back into the other language. Am I making sense?
Anyway I’ve worked around this for the site in question by commenting out the wpml_widget_text function in your code, and thereby disabling the translation of widgets, but I thought you might want to incorporate a fix into your code too?
Plugin compatibility issues can be a nightmare, can’t they? I really appreciate all your efforts. ??
Tim
- The topic ‘Widget translation issue with WPML and WP Page Widget’ is closed to new replies.