Hi,
How can I translate “Reply” to “Vastaa”? (see attachment)
I have translated the string with poedit but it doesn´t work…
I´m also using this in my functions.php to translate comments and it works. Do I need to add something to this code to translate the “Reply” also?
function comment_reform ($arg) {
$arg[‘title_reply’] = __(‘Jätä Kommentti’);
return $arg;
}
add_filter(‘comment_form_defaults’,‘comment_reform’);
add_filter(‘gettext’, ‘x_translate_text’ , 20, 3);
function x_translate_text ( $translated_text, $text, $domain ) {
$translation = array (
‘Submit’ => ‘Lähetä’,
);
if( isset( $translation[$text] ) ) {
return $translation[$text];
}
return $translated_text;
}