• Resolved emiubaldi

    (@emiubaldi)


    Hi Everyone!

    The topic has been discussed multiple times across the forum, but it seems I cannot found a solution.

    Issue: I need to push the language setting to get the Stripe pop-up checkout form in French and no let Stripe autodetect by default and set it based on the user’s preferred language, which btw for me does not work either. In detail, fields like Name, Last name, Email, Billing Address, Country, State and Postal Code.

    I am using WordPress lastest version 5.4.1–fr_FR (language set in French) with the latest Stripe Payments Plugin.

    I am using a Firefox browser in French.

    I have tried and added the variable checkout_lang=” fr” in the product shortcode and also tried data-locale=fr.

    I tried the option described here https://s-plugins.com/translating-the-stripe-payments-plugin/.

    The plugin language folder plugins/stripe-payments/languages contain stripe-payments-fr_FR.mo

    After all, nothing the pop-up billing details information is shown still in English.

    What am I doing wrong? I am giving up!

    Can someone help me out?

    Lastly, I wish you and your families nothing but safety in this ongoing global pandemic.

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    The plugin language folder plugins/stripe-payments/languages contain stripe-payments-fr_FR.mo

    Just to confirm with you, does that folder contain both the po and mo files?

    For example:

    stripe-payments-fr_FR.po
    stripe-payments-fr_FR.mo

    If it doesn’t, then you need to make sure both files are there. Or else your language will not be translated into French. Please use the link you mentioned above to create the po and mo files.

    Let me know how you.

    Kind regards

    Thread Starter emiubaldi

    (@emiubaldi)

    Hi,

    Thanks for the insight. The fr PO file was not in there, so I created one through Loco Translate.

    Now in the folder, I see:
    stripe-payments-fr_FR.mo
    stripe-payments-fr_FR.po

    In Loco I see this message under the plugin:

    Additional files found
    This bundle isn’t fully configured, so we don’t know what the following files are for. Click the setup tab to complete the bundle configuration.

    This message is referring to the other MO and PO translation located into includes/plugin-update-checker/languages

    Following the Loco indication, I added a new SET under Loco=>Advanced but I still see the message,

    This bundle isn’t fully configured

    , I might miss some steps?

    Thanks!

    Thread Starter emiubaldi

    (@emiubaldi)

    Update: I was able to fix the issue with the

    Additional files found
    This bundle isn’t fully configured, so we don’t know what the following files are for. Click the setup tab to complete the bundle configuration.

    I still can’t see the checkout pop-up in French. ??

    See it here: https://www.kiaenligne.ca/?asp_action=show_pp&product_id=4690&checkout_lang=fr

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, are your po and mo files up to date with the pot template?

    Also make sure the same po and mo files exist in both areas as pointed out below.

    /plugins/stripe-payments/languages/

    and

    /wp-content/languages/plugins/

    Let me know if the above helps you in any way.

    Thank you

    Thread Starter emiubaldi

    (@emiubaldi)

    Hello,

    I confirm, the files are the latest. PO file downloaded from https://translate.www.ads-software.com/projects/wp-plugins/stripe-payments/dev/fr/default/

    I added po and mo files into /wp-content/languages/plugins/ as you suggested but still nothing.

    This is the result: https://www.kiaenligne.ca/?asp_action=show_pp&product_id=4690&checkout_lang=fr

    Does this product shortcode checkout_lang=fr or checkout_lang=es suppose to do the job as reported here https://s-plugins.com/?s=language?

    Emiliano

    • This reply was modified 4 years, 6 months ago by emiubaldi.
    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, did you also update the po file? In other words are all the strings translated in the po file into French?

    Does this product shortcode checkout_lang=fr or checkout_lang=es suppose to do the job as reported here https://s-plugins.com/?s=language?

    Yes.

    I also carried out a test in my Spanish dev site and it displays all the fields in Spanish in the popup window. So I can confirm that the plugin does detect the language correctly.

    Kind regards

    • This reply was modified 4 years, 6 months ago by mbrsolution.
    Thread Starter emiubaldi

    (@emiubaldi)

    Yes, all the strings have been translated.

    I don’t understand. What could be the issue?

    Step executed:

    • Updated MO and PO files into /plugins/stripe-payments/languages/ and /wp-content/languages/plugins/ (DONE and verified)
    • Make sure Loco Translate are reading the FR MO and PO files and strings are translated (DONE and verified)
    • Make sure the shortcode contains the [asp_product id=”1234″ checkout_lang=”fr”] (DONE and verified)
    • I have created a small video recap for you to visualize the steps you recommended. It might help to troubleshoot the problem.

      https://www.loom.com/share/e0ec98f692224205bddb9e87ca6a5933

      And finally, a video showing this is not working eighter.

      By default, Stripe tries to autodetect and set user’s preferred language.

      https://www.loom.com/share/0c1d6fcbb46e4c96b2641a38415548b3

      Any other suggestions?

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    Try the following. Disable all other plugins and only have our plugin active. Then carry out a test. Also make sure you have cleared any cache if you are running a cache plugin and or your server is running a cache system.

    Kind regards

    Thread Starter emiubaldi

    (@emiubaldi)

    I have tried also this option but nope, it did not work.

    See it here:
    https://www.loom.com/share/acf765c735fa4271a55599e9ef132d48

    The server it is not running any cache system!

    Thread Starter emiubaldi

    (@emiubaldi)

    I found the issue and it works now!

    Where you say:

    Also make sure the same po and mo files exist in both areas as pointed out below.

    /plugins/stripe-payments/languages/

    and

    /wp-content/languages/plugins/

    I had put the PO and MO files into /wp-content/languages/ and no into /wp-content/languages/plugins/

    My bad!

    Thank you so much for your patience and support.

    Cheers!

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi, I am out of ideas to help you with this. I have a feeling it is something very simple.

    I notice the shortcode had incorrect double quotes. I corrected that below. Try this shortcode and let me know what happens.

    [asp_product id="1234" checkout_lang="fr"]

    Thank you

    Plugin Support mbrsolution

    (@mbrsolution)

    I am happy you found the solution ??

    If you run into any other issues please open up a new support ticket.

    Enjoy the plugin.

    Thread Starter emiubaldi

    (@emiubaldi)

    All is good @mbrsolution, thank you so much!

    As the last thing: can we force the pop-up checkout language regardless of the Workrpess setting language? Let say, for example, I would need to create a multi-language website, how to archive this?

    Plugin Support mbrsolution

    (@mbrsolution)

    Hi,

    The following feature Stripe Checkout Language located in General Settings should allow you to control the default language.

    Currently the above feature only affects “Card Number”, “MM/YY” and “CVC” placeholders.

    Regards

    Thread Starter emiubaldi

    (@emiubaldi)

    Hello @mbrsolution,

    In a way, you answered my question, but can you please be more specific? Can I have the whole checkout pop-up, and not only the credit card number, on a different language other than the one set over WordPress default settings “Language of the website”?

    YES or NO?

    Maybe by adjusting a function pho file?

    Cheers!

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Push Stripe pop-up checkout form to a different language’ is closed to new replies.