• Resolved nelero

    (@nelero)


    Hi,
    i’ve bought a theme where strings are called with esc_html__ function.
    For example :
    $this->text_home = esc_html__(‘Home’, ‘mytheme’); // text for the ‘Home’ link

    But Polylang doesn’t detect it for translation.

    I’ve tried to used pll_register_string( ‘Home breadcrumb’, ‘Home’,’mytheme’);
    the string is shown in backoffice but isn’t translated in frontoffice.
    Could you fix the use of esc_html__ detection ?

    Regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    Have you enabled this theme in the settings under “Export/import translations”?
    /wp-admin/admin.php?page=mlang_import_export_strings

    Thread Starter nelero

    (@nelero)

    I’m the administrator, however your link send the wordpress page “Sorry, you don’t have permission to access this page.
    And there is no menu to access “import/export strings”

    Same problem here. Did you manage to solve it?

    Plugin Author Marcin Kazmierski

    (@marcinkazmierski)

    Please update the plugin and let me know if everything is OK 

    Additionally please check if you have necessary themes and plugins selected in tab (In admin dashboard): Languages -> TTfP Settings.
    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘esc_html__ not detected’ is closed to new replies.