Hi,
there is two words that is not on the website language (Portuguese). Its the “Read More” link that appears after the expert text on the Blog. Should I solve this issue with PoEdit or there is another way?
thank you!
Hi,
there is two words that is not on the website language (Portuguese). Its the “Read More” link that appears after the expert text on the Blog. Should I solve this issue with PoEdit or there is another way?
thank you!
Hello @juliana,
Thanks for writing in!
There are texts that can’t be translated by PoEdit and that would be the automatically generated parts by Wordpress such as the “Read More” text.
You can however install a third-party plugin which caters this: https://wordpress.org/plugins/loco-translate/
Hope this helps.
Hello!
well great, but another plugin… Is there any light solution to avoid more addons?
Hi there,
If you want to translate only the read more text, you can simply add this code in the functions.php file of your child theme:
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Read More' :
$translated_text = __( 'YOUR NEW READ MORE TEXT HERE', '__x__' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'my_text_strings', 20, 3 );
Please replace YOUR NEW READ MORE TEXT HERE
in the code to your translated text.
Hope this helps.
Thank you!! yes that did work!
Now I found another 2 places that also need s to be translate.
How can i change the “Share on”…
thats all
Thanks for your help.
Hi There,
You should be able to locate those information on your x.pot file.
Hope that helps.
thank you!
You are welcome!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.