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