Hi everyone,
I’m using Polylang on my clients website. They now have a blog and want the following:
- read more and submit button (for adding comments) are not translated into German.
- The text for write a comment is ‘Schreibe einen kommentar’, but my client wants to change this into ‘Schreibe She einen kommentar’.
How can I do this?
For the read more button I’ve found this piece of code for the read more button on this topic on Stackoverflow:
function modify_read_more_link() {
return '<a href="' . get_permalink() . '">' . pll__('read more') . '</a>';
}
add_filter( 'the_content_more_link', 'modify_read_more_link' );
pll_register_string('my-theme', 'read more');
It is showing up in the String Translations, but the translation is not working on the website. I’m sure I’m doing something wrong since I know very little JavaScript. I’m really stuck so I hope you guys can help me out.
Thank you in advance!
Kind regards,
Michelle