Translate plugin management options with Polylang
-
Hello!
I have used Polylang (free version) as a complement to translate a website that is in two languages ??(Spanish and English), Spanish being the main language. Everything works as expected.
I have bought a plugin to have a bar that indicates to customers when the “free shipping” is generated but I have not been able to make the messages of that bar translate into English.
I have contacted the developer and he has told me that I should find a way to “translate the administration options” of his plugin because that is where these messages are reflected that I need to translate into English.
According to its characteristics, the plugin is fully compatible with WPML for multilingual websites (since WPML has an option that allows “enable string translation for administration options”) and indicates that it is ready for translations but it is not possible to do it with Loco Translate. The creator has insisted that it must be with Polylang in my case because it is the plugin I use to translate the strings.
I have tried the translation including some parameter in the function.php of the child theme
/ ***** Strings to translate with polylang ***** /
pll_register_string( $name, $string, $group, $multiline);This has allowed the messages to be reflected in the translation options in LANGUAGES> CHAIN ??TRANSLATIONS
To later call the translations of these strings, I must place another function in page.php and woo commerce.php, but doing so generates an error in those pages:
<?php echo pll__(“$string”); ?>
Grateful for help.
Greetings,
JoseThe page I need help with: [log in to see the link]
- The topic ‘Translate plugin management options with Polylang’ is closed to new replies.