• Resolved igorandre

    (@igorandre)


    Hi, i installed this plugin and I do not see any translation option in the polylang strings. Can you help me?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Aert Hulsebos

    (@aahulsebos)

    Hi @igorandre,

    Maybe this article will help: https://complianz.io/how-to-translate-legal-documents-to-your-own-language/,

    Let me know if you need anymore help,

    Regards Aert

    Plugin Author RogierLankhorst

    (@rogierlankhorst)

    As described in the article Aert posted, you can add this filter. This will be part of the free plugin as of 3.0.0, released in 2-3 weeks.

    function cmplzf_register_translation($fieldname, $string)
    {
        //polylang
        if (function_exists("pll_register_string")) {
            pll_register_string($fieldname, $string, 'complianz');
        }
    
        //wpml
        if (function_exists('icl_register_string')) {
            icl_register_string('complianz', $fieldname, $string);
        }
    
        do_action('wpml_register_single_string', 'complianz', $fieldname, $string);
    }
    add_action('cmplz_register_translation', 'cmplzf_register_translation', 10, 2);

    Where do I have to add such a filter? I have tried plugin and theme functions.php but it doesn’t work for me.

    Best Regards!

    • This reply was modified 10 months, 4 weeks ago by igorandre. Reason: Not Works!
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Polylang’ is closed to new replies.