Plugin Contributor
jomo
(@jonathanmoorebcsorg)
Which “payment getaway plugin” are you referring to?
This plugin only adapts the woocommerce plugin for polylang, may need their own support for polylang or you may need to implement your own compatibility layer, which normally isn’t too hard to do but will depend on the plugin in question.
For example it may be possible with Loco Translate or Polylang string translation tables.
Marking the issue as closed as other plugins are out of scope of support by this plugin.
I referring to payment plugin allow people to pay with credit card on the payment company’ site, the site gets the language code to show the site’s language according to the code.
P.S. if you close the issue I can not answer you
Plugin Contributor
jomo
(@jonathanmoorebcsorg)
Which “payment plugin” and which payment company are you referring to?
If they have a filter for the url you could hook this and substitute the language code with the Polylang language code.
pll_current_language or pll_get_post_language($order_id) should do it.
It is Israeli company, did found English info, the plugin has parameter for language,
he for Hebrew and en for English, they work with WPML so I believe it work also with Polylang.
I will check to see if their is any code for the language
I read the pll_current_language reference but I did not understand how to get the value it return.
using get_locale() ; can help?