Title: Random language using string translation with WPML
Last modified: August 30, 2016

---

# Random language using string translation with WPML

 *  Resolved [monkeykong](https://wordpress.org/support/users/monkeykong/)
 * (@monkeykong)
 * [11 years ago](https://wordpress.org/support/topic/random-language-using-string-translation-with-wpml/)
 * Hi!
    I’ve installed your plugin on [http://rorvikscamping.se/](http://rorvikscamping.se/)
   and translated the strings to Swedish using WPML.
 * There are two issues, the first one is the big one.
 * On the start page, which is swedish, the popup doesn’t show at all.
    On the rest
   of the swedish pages, the popup is sometimes in swedish, sometimes in english.
   Some of them even load the plain text in swedish and the “accept” and “read more”
   button and link in english.
 * On the english site [http://rorvikscamping.se/en/](http://rorvikscamping.se/en/)
   and all the sub pages, it shows perfectly, and always in english.
 * – Do you think you could assist us in solving this? The most important thing 
   is that the popup shows on the landing page?
 * [https://wordpress.org/plugins/cookie-law-info/](https://wordpress.org/plugins/cookie-law-info/)

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

 *  [Richard](https://wordpress.org/support/users/richardashby/)
 * (@richardashby)
 * [11 years ago](https://wordpress.org/support/topic/random-language-using-string-translation-with-wpml/#post-6186801)
 * On the Swedish website you aren’t using Cookie Law Info, you’re using another
   cookie plugin. On the English website I see the plugin working just fine but 
   the buttons are in English when the language selected is Swedish. I’m not personally
   a user of WPML, I have been given the solution by the WPML team but don’t have
   a developer copy to test it, so you will need to post a message on their support
   forums.
 *  Thread Starter [monkeykong](https://wordpress.org/support/users/monkeykong/)
 * (@monkeykong)
 * [11 years ago](https://wordpress.org/support/topic/random-language-using-string-translation-with-wpml/#post-6186805)
 * What…? We tried using [https://wordpress.org/plugins/easy-wp-cookie-popup/](https://wordpress.org/plugins/easy-wp-cookie-popup/)
   for a bit, but it didn’t translate at all. It’s been deleted of course, but you’re
   saying it’s still occupying the start page?
 * I have no idea how to get rid of that other than deleting it like we already 
   did.
 * Alright, I’ll check their forums. Thank you for the quick reply!
 *  [Richard](https://wordpress.org/support/users/richardashby/)
 * (@richardashby)
 * [11 years ago](https://wordpress.org/support/topic/random-language-using-string-translation-with-wpml/#post-6186806)
 * On closer inspection- I see what you mean, you don’t have the Cookie Law Info
   files showing on the homepage. This points to one of:
 * – Theme error (does it use wp_head and wp_footer?)
    – Caching software like WP
   Total Cache, Super Cache, Cloudflare, your host’s caching, etc (refresh your 
   cache)
 * The plugin isn’t written in a way that would discriminate on which page it displays
   so it’s one or the other of those reasons.
 *  [Richard](https://wordpress.org/support/users/richardashby/)
 * (@richardashby)
 * [11 years ago](https://wordpress.org/support/topic/random-language-using-string-translation-with-wpml/#post-6186807)
 * Ok if you tried another plugin, deleted it and it still shows that is server 
   side caching. Refresh whatever cache you have, or temporarily disable it. I bet
   that will solve all the problems in one go.
 *  Thread Starter [monkeykong](https://wordpress.org/support/users/monkeykong/)
 * (@monkeykong)
 * [11 years ago](https://wordpress.org/support/topic/random-language-using-string-translation-with-wpml/#post-6186810)
 * You were right about the cache. The landing page loads correctly now. I don’t
   really mind the wonky translation on the sub pages, just that the visitors get
   the correct information on the first hit.
 * Thank you so much for your super quick support. I’ll be sure to rate your plugin.
 *  [Richard](https://wordpress.org/support/users/richardashby/)
 * (@richardashby)
 * [11 years ago](https://wordpress.org/support/topic/random-language-using-string-translation-with-wpml/#post-6186815)
 * Thanks 🙂
 * The WPML team are really good so if you still have an issue get in touch with
   them and post the answer here if you can.
 *  Thread Starter [monkeykong](https://wordpress.org/support/users/monkeykong/)
 * (@monkeykong)
 * [11 years ago](https://wordpress.org/support/topic/random-language-using-string-translation-with-wpml/#post-6186822)
 * I truly intended to check with them, but it seems my 1 year of support of WPML
   have run out.
 *  [Richard](https://wordpress.org/support/users/richardashby/)
 * (@richardashby)
 * [11 years ago](https://wordpress.org/support/topic/random-language-using-string-translation-with-wpml/#post-6186825)
 * I just checked it again and it seems to be working perfectly in both languages
   on both sites. I bet you just had a server side cache issue. I’ll update my FAQ
   as this will probably help somebody else sometime!
 * By the way- if you haven’t already, sign up to the [beta](http://cookielawinfo.com/beta)
   to get early access to the new version.
 * Cheers
    Richard

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

The topic ‘Random language using string translation with WPML’ is closed to new 
replies.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

## Tags

 * [language](https://wordpress.org/support/topic-tag/language/)
 * [string](https://wordpress.org/support/topic-tag/string/)
 * [Swedish](https://wordpress.org/support/topic-tag/swedish/)

 * 8 replies
 * 2 participants
 * Last reply from: [Richard](https://wordpress.org/support/users/richardashby/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/random-language-using-string-translation-with-wpml/#post-6186825)
 * Status: resolved