Loco translate won’t translate/find strings within esc_html function
-
Hi, I am just testing the new twentytwenty default theme
https://github.com/WordPress/twentytwentyThe continue reading link is included in an esc_html function
function twentytwenty_read_more_tag() { return sprintf( '<a href="%1$s" class="more-link">%2$s <span class="screen-reader-text">"%3$s"</span></a></p>', esc_url( get_permalink( get_the_ID() ) ), /* Translators: %s: Name of current post */ esc_html( 'Continue reading', 'twentytwenty' ), get_the_title( get_the_ID() ) ); } add_filter( 'the_content_more_link', 'twentytwenty_read_more_tag' );
If I create a template file for translation the “continue reading” link is not included.
Thanks for any tips how to translate continue reading with loco translate.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Loco translate won’t translate/find strings within esc_html function’ is closed to new replies.