Change WP comments language


How can I change the text language in wp comments:

“Comments on” to “Kommenttia”


I would rather use code in functions.php

Hi There,

Thank you for writing in, I advice that you setup a translation file instead by following the guile provided here.

Or if you really need a custom function, while that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here. Try adding this on your child theme’s functions.php file.

add_filter('gettext', 'change_comment_reform' );
function change_comment_reform($translated) { 
  $translated = str_ireplace('Leave a Reply', 'VASTAA', $translated);
  return $translated; 

Hope it helps it,