Widget doesn’t use WPML language config
-
Hi,
widget is not translated when used on wordpress with several languages.My language in general settings is French
i use WPML and i have 2 languages : French (default) and English which is used for /en/ … urls
I created two widgets in “Weather” menu. One for French, One for english.
But when the widget is displayed on english page, it is still in french.
So the widget doesn’t take care of the language defined by WPML. (constant ICL_LANGUAGE_CODE for example, which carries the language : fr for french, en for english, …)I tried to use :
<?php if(ICL_LANGUAGE_CODE=='en'){ echo do_shortcode('[wpc-weather id="8883"]'); } else { echo do_shortcode('[wpc-weather id="6132"]'); } ?>
in my theme, but still in french for both English and French website
Can we fix this in order to fix the widget language to target the WPML language?
Thanks
- The topic ‘Widget doesn’t use WPML language config’ is closed to new replies.