Title: WPML problem
Last modified: June 4, 2024

---

# WPML problem

 *  Resolved [giannisdigitup](https://wordpress.org/support/users/giannisdigitup/)
 * (@giannisdigitup)
 * [2 years ago](https://wordpress.org/support/topic/wpml-problem-17/)
 * Hello,
 * We are having a two language e-shop and we use wpml for the translations. We 
   are facing a problem with trasnlating the plugin strings using WPML. Also another
   strange thing is that when a user is logged in the strings are in Greek both 
   in the Greek and English site, and when a user is logged out the strings are 
   in English Greek and English site. Is it possible to translate the plugin strings
   using WPML?
 * [https://prnt.sc/6XWf9gkVjJem](https://prnt.sc/6XWf9gkVjJem)
   [https://prnt.sc/Ekbir_K1I1Ph](https://prnt.sc/Ekbir_K1I1Ph)
 * Thanks!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/wpml-problem-17/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wpml-problem-17/page/2/?output_format=md)

 *  Plugin Support [louisekrokedil](https://wordpress.org/support/users/louisekrokedil/)
 * (@louisekrokedil)
 * [2 years ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17803905)
 * Hi,
   Could you please send a link to your site so I can have a look?
 *  Thread Starter [giannisdigitup](https://wordpress.org/support/users/giannisdigitup/)
 * (@giannisdigitup)
 * [2 years ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17803910)
 * Hello,
 * This is a product page [https://www.nashbyna.com/tiffany-nude-dress/](https://www.nashbyna.com/tiffany-nude-dress/).
   We also have enabled it to the checkout page. You can also check it out there.
 * Thanks!
 *  Thread Starter [giannisdigitup](https://wordpress.org/support/users/giannisdigitup/)
 * (@giannisdigitup)
 * [1 year, 12 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17822027)
 * Hello again,
 * I haven’t heard from you for a weak. Do you see the problem? Is there any solution?
 * Thanks!
 *  Plugin Support [louisekrokedil](https://wordpress.org/support/users/louisekrokedil/)
 * (@louisekrokedil)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17835768)
 * Hi,
   The language in the Klarna On Site Messaging widget is based on the customer
   country, we have a [filter here](https://docs.krokedil.com/klarna-for-woocommerce/additional-klarna-plugins/klarna-on-site-messaging/#force-locale-to-a-specific-country)
   to force the locale to a specific country that you can try out. 
 *  Thread Starter [giannisdigitup](https://wordpress.org/support/users/giannisdigitup/)
 * (@giannisdigitup)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17836017)
 * Hello,
 * Is the same filter valid for the checkout page strings? If i am correct they 
   are not mentioned as On Site Messaging from the plugin.
 * Thanks!
 *  Plugin Support [louisekrokedil](https://wordpress.org/support/users/louisekrokedil/)
 * (@louisekrokedil)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17837853)
 * Hi,
   If you would like to also force locale to a specific country and language
   in the Klarna Payments method in the checkout you can [use this filter.](https://docs.krokedil.com/klarna-payments-for-woocommerce/customization/hooks-action-filter/#force-locale-to-a-specific-country-and-language)
 *  Thread Starter [giannisdigitup](https://wordpress.org/support/users/giannisdigitup/)
 * (@giannisdigitup)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17838466)
 * Hello,
 * Thanks for the help. My issue is solved!
 *  Thread Starter [giannisdigitup](https://wordpress.org/support/users/giannisdigitup/)
 * (@giannisdigitup)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17840654)
 * Hello again,
 * We managged to solve the problem using WPML filter to get the current language
   of the page. The solution you provided does what we asked for but it is not working
   on Safari browser in the checkout page. This are the snippets we have added in
   order to work.
   `add_filter('kosm_locale', function($locale) {` `//this works 
   on Safari` `$my_current_lang = apply_filters( 'wpml_current_language', NULL );
   if($my_current_lang == 'el'){ return 'el-GR'; }else{ return 'en-GR'; }});add_filter('
   kp_locale', function($locale) { //this doesn't work on Safari $my_current_lang
   = apply_filters( 'wpml_current_language', NULL ); if($my_current_lang == 'el'){
   return 'el-GR'; }else{ return 'en-GR'; }});
 * Any idea how to fix it?
    -  This reply was modified 1 year, 11 months ago by [giannisdigitup](https://wordpress.org/support/users/giannisdigitup/).
 *  Plugin Support [louisekrokedil](https://wordpress.org/support/users/louisekrokedil/)
 * (@louisekrokedil)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17846476)
 * Hi,
   These filters are running on the server so it should not matter what browser
   you are using, does it work now in the checkout when using your custom filter
   for kp_locale?
 *  Thread Starter [giannisdigitup](https://wordpress.org/support/users/giannisdigitup/)
 * (@giannisdigitup)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17846683)
 * Hello,
 * In the Greek version of the checkout page we can see the string in Greek as it
   sould be.
 * In the English version we can see the string but again in Greek. Here is the 
   screenshot:
   [https://prnt.sc/r-rG-CfKNsBC](https://prnt.sc/r-rG-CfKNsBC)
 * The string in the circle is Greek. We can not understand why this is happening.
 * Thanks!
    -  This reply was modified 1 year, 11 months ago by [giannisdigitup](https://wordpress.org/support/users/giannisdigitup/).
 *  Plugin Support [louisekrokedil](https://wordpress.org/support/users/louisekrokedil/)
 * (@louisekrokedil)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17849319)
 * Hi,
   To move forward with this we need to take a look at what data we send to 
   Klarna via the Klarna Payments plugin log, but this information is private and
   should therefore not be published in a public forum like this. Would it be possible
   for you to create a [Krokedil support ticket here](https://krokedil.com/support/)
   so we can troubleshoot this further? When we have a solution/cause of the issue
   we will also post it in this forum thread to keep this thread updated.
 *  Thread Starter [giannisdigitup](https://wordpress.org/support/users/giannisdigitup/)
 * (@giannisdigitup)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17849505)
 * Hello,
 * I just created the ticket with the same email as this account has.
 * Thanks!
 *  Plugin Support [louisekrokedil](https://wordpress.org/support/users/louisekrokedil/)
 * (@louisekrokedil)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17860840)
 * **Here is a summary of the issue and solution:
   When the language was changed 
   in the checkout the locale was updated correctly and we could confirm that in
   our logs. When we changed from Greek to English the locale was updated from el-
   GR to en-GR correctly but only the title in Klarna Payments was updated to English.
   The description was still in Greek even though the locale was updated. Klarna
   have now made changes to fix this but we as developers of the plugin still need
   to add support for these changes in the Klarna Payments for WooCommerce plugin.
   We have created an internal task to build this but I can unfortunately not give
   you an estimate since it is not yet planned.
 *  Thread Starter [giannisdigitup](https://wordpress.org/support/users/giannisdigitup/)
 * (@giannisdigitup)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-17860975)
 * Hello Louise,
 * Thanks for the update. We will wait for the new version of the plugin.
 *  Plugin Contributor [Kristi at Klarna](https://wordpress.org/support/users/klarna/)
 * (@klarna)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/wpml-problem-17/#post-18139096)
 * [v3.8.3](https://github.com/krokedil/klarna-payments-for-woocommerce/releases/tag/3.8.3)
   was released 2024-Nov-12 with:
 * “Tweak – If the locale is modified, the existing session will be dropped, and
   a new one will be created. This should ensure that Klarna has the correct locale,
   and improve compatibility with i18n plugins.”
 * Please update (ideally first in a non-production environment) and retest, and
   share feedback.
 * Thank you for the patience for this update!

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/wpml-problem-17/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/wpml-problem-17/page/2/?output_format=md)

The topic ‘WPML problem’ is closed to new replies.

 * ![](https://ps.w.org/klarna-payments-for-woocommerce/assets/icon-256x256.png?
   rev=3174333)
 * [Klarna for WooCommerce](https://wordpress.org/plugins/klarna-payments-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/klarna-payments-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/klarna-payments-for-woocommerce/reviews/)

 * 16 replies
 * 3 participants
 * Last reply from: [Kristi at Klarna](https://wordpress.org/support/users/klarna/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/wpml-problem-17/page/2/#post-18192550)
 * Status: resolved