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
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 3 years, 4 months ago by
igorandre. Reason: Not Works!