Title: Multilanguage
Last modified: August 21, 2016

---

# Multilanguage

 *  [Presskopp](https://wordpress.org/support/users/presskopp/)
 * (@presskopp)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/multilanguage-14/)
 * Hello,
 * my question is, how can I use this in a multilanguage site. Could you possibly
   transfer the language setting to the shortcode like this:
 * [weatherlayer country=”Spain” city=”S’Illot” lang=”es”] ?
 * So one could easily integrate this with WPML for example.
 * Thank you!
 * [https://wordpress.org/plugins/weather-layer/](https://wordpress.org/plugins/weather-layer/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Zurd](https://wordpress.org/support/users/zurd/)
 * (@zurd)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/multilanguage-14/#post-5051221)
 * This plugin is quite neat. It is missing a multi-language option though.
 * I’m using polylang and was able to make a quick fix.
 * Open up wp-content/plugins/weather-layer/weather_layer.php and comment this line:
   
   $langue = weather_layer_getLanguage();
 * Replace with:
    if ( pll_current_language() == ‘en’ ) { $langue =”en”; } else {
   $langue = “fr”; }
 *  [geoff3](https://wordpress.org/support/users/geoff3/)
 * (@geoff3)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/multilanguage-14/#post-5051222)
 * I’m using Qtranslate-x, and this works for me,
    comment out $langue = weather_layer_getLanguage();
   and replace with: if ($GLOBALS[‘q_config’][‘language’]==’en’) $langue =”en”; 
   else $langue = “fr”;

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multilanguage’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/weather-layer.svg)
 * [Weather Layer](https://wordpress.org/plugins/weather-layer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/weather-layer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/weather-layer/)
 * [Active Topics](https://wordpress.org/support/plugin/weather-layer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weather-layer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weather-layer/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [geoff3](https://wordpress.org/support/users/geoff3/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/multilanguage-14/#post-5051222)
 * Status: not resolved