• Resolved Paul

    (@pjenkiss)


    Hello,

    I use Gift Voucher plugin to use Stripe payments. My website is in English, and I expect everything should be in English, however, it sets Stripe checkout to Lithuanian for some reason. To be more precise: everything before entering Credit Card information is in English, but when it comes to enter CC information page it changes to Lithuanian. Is there an easy way how to change that? I found in Stripe settings that I should add this code the the form:
    data-locale="auto"
    I can edit source files, but I don’t find where I should put/change this parameter. Could someone help, please?

    PS: I imagine it might be because of my physical location, however, even I use VPN and connect via any other country – it still changes to Lithuanian.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Codemenschen

    (@codemenschen)

    Hi @pjenkiss

    Thanks for your message.

    You can follow this article from stripe for syntax and modify below listed files from plugin.

    gift-voucher/include/wpgv_item_pdf.php Line number 322
    gift-voucher/include/wpgv_voucher_pdf.php Line number 319

    Let us know if you need any further help from us!

    Thread Starter Paul

    (@pjenkiss)

    Thank you for the insight!
    The thing is, wpgv_item_pdf.php file has only 290 lines, wpgv_voucher_pdf.php – 285 lines. However, I tried to put new element into this array:
    $session = \Stripe\Checkout\Session::create([...
    the result… if I put specific locale – it works, but if I leave “auto” – it still changes the language to Lithuanian, even I connect through other country (via VPN). Here is the screenshot where I selected Lithuanian text in red, and auto-selected country (correct by VPN country) – in green: https://ibb.co/yR4D3Yx

    Not sure if this related to this plugin or Stripe itself. Anyway, current solution is enough for me, thank you again for the insight!

    • This reply was modified 4 years, 1 month ago by Paul.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Localization does not work with “Gift Voucher” plugin’ is closed to new replies.