translate "one response"

arawolf
314 Posts
arawolf posted this 25 August 2021

How can i change the sentence "one response" on the post page. This is a "header" on a WP site (post template) when someone responds on i message.

How can i change the sentence "one response" on the post page. This is a "header" on a WP site (post template) when someone responds on i message.
Vote to pay developers attention to this features or issue.
1 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 27 August 2021

Hello Kris,

Try adding translation in Themler -> Home -> Settings -> CMS CODE:

add_filter( 'gettext', 'wps_translate_words_array' );
add_filter( 'ngettext', 'wps_translate_words_array' );
function wps_translate_words_array( $translated ) {
$words = array(
// 'word to translate' = > 'translation'
'one response' => 'one response in your language',
);
$translated = str_ireplace( array_keys($words), $words, $translated );
return $translated;
}

Replace the translation with the correct one.

Gina
Themler Support

Hello Kris, Try adding translation in Themler -> Home -> Settings -> CMS CODE: add_filter( 'gettext', 'wps_translate_words_array' ); add_filter( 'ngettext', 'wps_translate_words_array' ); function wps_translate_words_array( $translated ) { $words = array( // 'word to translate' = > 'translation' 'one response' => 'one response in your language', ); $translated = str_ireplace( array_keys($words), $words, $translated ); return $translated; } Replace the translation with the correct one. Gina Themler Support
You must log in or register to leave comments