• Resolved tbo460

    (@thibotus01)


    Hi,

    Front-end texts on checkout page is not translated. How the plugin is handling translations? Please answer directly to this question.

    I’m using WPML and scanning for strings doesn’t work either. Can’t find the ones in frontend.

    Thank you,

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support montazar

    (@montazaraj)

    Hello there,

    Klarna uses your store’s locale to set the language of the form. You can either use a third-party plugin to dynamically set the locale or use the ‘kp_locale’ filter (available as of KP version 2.12.0). If you want to use a static locale, simply change the store’s locale in the WordPress general settings.

    Thread Starter tbo460

    (@thibotus01)

    Hi,

    Thank you for your prompt reply,

    Since I’m using WPML how can I achieve this exactly?

    Plugin Support Andreas – Krokedil

    (@boozebrorsan)

    Hi,

    What the Klarna iframe shows is what your store sends in to Klarna. So it is not possible to change with any translation plugins.
    So what you need to do is make sure your site delivers the correct locale and currency for the customer that is visiting your site.

    So for instance if you sell to Germany you need to configure WPML and Woo so that when a German customer lands on your site WP/WC knows that this customers is from Germany and that German customers use Euro as the currency.

    I’m not sure how your setup has been made but you could look into these areas more:

    https://wpml.org/documentation/related-projects/woocommerce-multilingual/#multiple-currencies

    and for WooCommerce:
    https://woocommerce.com/document/configuring-woocommerce-settings/#store-address and Default Customer Address and Geolocate address

    I hope this gives you more info to dig into

    Thread Starter tbo460

    (@thibotus01)

    Hi,

    I guess there is something wrong on how Klarna is getting the language.

    WPML is well setup and the correct language locale is set when he visit my site for example on this url: toto.com/fr
    The site will be in french, but once on Checkout Klarna is showing in english (default language of my site).

    Is there some trace or log or anything that can help to investigate?

    • This reply was modified 2 years, 4 months ago by tbo460.
    Plugin Support Andreas – Krokedil

    (@boozebrorsan)

    Hi,

    I could not get the link you shared to work. Can you confirm the url again? You can check in your logs if purchase_country and purchase_currency is FR and the currency is Euro.

    Thread Starter tbo460

    (@thibotus01)

    Hi,

    The link was an example. I can’t post the real link here. I can send it in private.

    I enabled logging and I can see this in log:

    {“purchase_country”:”FR”,”purchase_currency”:”EUR”,”locale”:”de-DE”
    Language sent is German however the text on frontend is still showing in english.

    Thank you

    Plugin Support Andreas – Krokedil

    (@boozebrorsan)

    Hi,

    I reached out to you through WordPress slack.

    Plugin Support Andreas – Krokedil

    (@boozebrorsan)

    This has been solved:

    KP didn’t show the German language translation because there was no account/payment way available for Germany within the Klarna account and then the plugin falls back to default which is english language.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How translation works?’ is closed to new replies.