leave a comment how can i translate the sentence

arawolf
314 Posts
arawolf posted this 08 June 2021

How can i change the sentence "leave a comment" into an other sentence in a wordpress site. Thnxs.

How can i change the sentence "leave a comment" into an other sentence in a wordpress site. Thnxs.
Vote to pay developers attention to this features or issue.
45 Comments
Order By: Standard | Newest
michaelarringtony
3 Posts
michaelarringtony posted this 28 September 2023

Using a child theme is the most secure way to make changes to your theme files because it won't be affected by theme updates cookie clicker

Using a child theme is the most secure way to make changes to your theme files because it won't be affected by theme updates [cookie clicker][1] [1]: https://cookieclicker2.org
kelseyradleyyy
7 Posts
kelseyradleyyy posted this 05 September 2023

There, adjust the translation as appropriate. tunnel rush

There, adjust the translation as appropriate. [tunnel rush][1] [1]: https://tunnel-rush.co/
dietrichvidal
3 Posts
dietrichvidal posted this 08 August 2023

Make the necessary translation updates there. wordle today

Make the necessary translation updates there. [wordle today][1] [1]: https://wordletoday.io/
arawolf
314 Posts
arawolf posted this 09 June 2021

perfect support ;) thnxs

perfect support ;) thnxs
Support Team posted this 08 June 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'
'Leave a comment' => 'Your translation',
);
$translated = str_ireplace( array_keys($words), $words, $translated );
return $translated;
}

Update translation there as needed.

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' 'Leave a comment' => 'Your translation', ); $translated = str_ireplace( array_keys($words), $words, $translated ); return $translated; } Update translation there as needed. Gina Themler support
You must log in or register to leave comments