• Resolved matoton

    (@matoton)


    Hi,
    I did encounter an issue linke:
    theme’s functions.php file:

    add_action('admin_notices', 'register_polylang_words');
    function register_polylang_words()
    {
    if(function_exists('pll_register_string')){
    pll_register_string("Hero button text","ORDER","PetCare");
    pll_register_string("Hero button link","Link","PetCare");
    }
    }

    in Strings translation after updating custom translations strings and translations are messed up

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 1 replies (of 1 total)
  • Thread Starter matoton

    (@matoton)

    moved this code to end of functions.php of the theme
    no more reproducible issue

    if(function_exists(‘pll_register_string’)){
    pll_register_string(“Hero button text”,”ORDER”,”PetCare”);
    pll_register_string(“Hero button link”,”Link”,”PetCare”);
    }

Viewing 1 replies (of 1 total)

The topic ‘strings translation tab with pll_register_string issue’ is closed to new replies.