Translation issue, again

Hi,

I have had issues with the translation in the past and again it has surfaced. On this page - http://www.heldenopreis.nl/helden-op-reis-documentaire-premiere/#respond - you can see that the placeholders in the comments form are not translated into Dutch.
On the blog page - http://www.heldenopreis.nl/blog/ - there is no way to translate ‘View Post’.

Please advise/solve this.

Thanks!

Hi,

You might have missed translating those words in your language files. Do you mind double checking it.

If that doesn’t work, you can also translate those words using gettext. You can add the code below in your child theme’s functions.php file.

function custom_text_translate($translated) { 
  $translated = str_ireplace('Your Comment', 'Jouw commentaar', $translated);
  $translated = str_ireplace('Leave a comment', 'laat een reactie achter', $translated);  
  $translated = str_ireplace('View Post', 'Bekijk bericht', $translated);
  return $translated; 
}
add_filter('gettext', 'custom_text_translate' );

Thanks

Yeah, checked it and double checked it. Happened before and it is extremely annoying. No idea what causes it. Thanks for the get text though.

Hi There @yingfuli

You can also check for a plugin conflict by deactivating all of your 3rd party plugins.

In your child theme, you can remove other customizations added and test.

I see that you’re using a caching plugin, often you need to disable caching when you’re in the development phase of the site.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.