• kachicamo

    (@kachicamo)


    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,
    Jose

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

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

    (@chouby)

    Hello,

    If your plugin is compatible with WPML, then it probably uses a wpml-config.xml file to allow the translation of the options. If this is the case, then it should work with Polylang too as Polylang is able to interpret this file.

    It’s however possible that the file works with WPML and not with Polylang, as WPML is rather permissive with malformed xml files while Polylang uses a PHP library which requires that there is no error in the xml file. Please check that with the plugin developer.

    If there is no wpml-config.xml file in the plugin, please ask the developer how he achieves the translation of the options with WPML.

    Thread Starter kachicamo

    (@kachicamo)

    Thanks Chouby!

    The plugin does not include the file wpml-config.xml. :/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translate plugin management options with Polylang’ is closed to new replies.