• Resolved flyartcom

    (@flyartcom)


    Hello everyone

    I am having a weird issue with languages in the give forms. I am using two different forms (one in english one in german). So far so good. In german when opening the form everything is in german until I change the payment method using the radio button then parts of the form appear in english. From that moment these fields remain in english even when switching back and forth.. anyone havig a clue?
    Any help is greatly appreciated! Thanks. Pascal

    (link to screenshot: https://ibb.co/m5VP2ph)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    What plugin are you using to implement the multi-language support? And what approach do you take with that plugin exactly? Are you creating multiple Give forms?

    For example, some multi-lingual plugins have you create multiple forms but ALSO generate PO/MO files for the additional languages. That’s what you’d need to do in order for the language to be reflected correctly.

    When the gateway switches it loads the new fields dynamically over AJAX, so WordPress needs to be able to load that language PO translation file in order to show them correctly.

    Hope that helps!

    Thread Starter flyartcom

    (@flyartcom)

    Hi Matt

    Thanks a lot for your reply! I am working with WMPL for translating the site. And to make sure I have the form content in two languages I have two give forms (one in english one in german). German reflects correctly as long as I don’t switch gateways… since it loads the correct language at first I do not understand why it changes languages when switching gateways (I’m not a programmer unfortunately).. so what would your approach be to solve that issue?

    Thank you very much for the support!
    Pascal

    Thread Starter flyartcom

    (@flyartcom)

    Hi again Matt

    After digging deeper the solution was pretty simple: In WPML there is an option called “Language filtering for AJAX operations” that uses a cookie to store the language info.. that did the trick.. so one step closer! Thanks for your help!
    Pascal

    • This reply was modified 7 years ago by flyartcom.
    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Awesome, thanks for the update. I’ll keep that in mind.

    I’m working on a few docs for Give and Multi-language support and that will be important for the WPML doc.

    If you’re enjoying Give and appreciate our support, we’d love a kind review from you here:
    https://wordpress.org/support/plugin/give/reviews/

    Thanks!

    Hi there,

    I am having the same issue but as I am using WPGLobus (instead of WMPL) I haven’t been able to check on the Ajax option.

    The page is this one: http://restartersbcn.info/donar/
    The website’s language is set to Spanish, but not even then the form text appears different than English.

    Any thoughts?

    Thanks!!

    Cristina.

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

The topic ‘language error in form fields’ is closed to new replies.