I am trying to find the file to translate the result count in the pagination at the bottom. I found the result-count.php file but changing the text there gave no change on the site.
I tried through filters too, but no result.
I tried this:
add_filter(‘gettext’, ‘translate_text’);
add_filter(‘ngettext’, ‘translate_text’);
function translate_text($translated) {
$translated = str_ireplace(‘Showing’, ‘Toont’, $translated);
return $translated;
}
and also
/**
* Translate WooCommerce text
*
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
*/
function prefix_translate_woocommerce( $translated_text, $text, $domain ) {
if ( $domain == ‘woocommerce’ ) {
switch ( $text ) {
case ‘Showing’ :
$translated_text = ‘Toont’;
break;
case ‘Create an account by entering the information below. If you are a returning customer please login with your username at the top of the page.’ :
$translated_text = ‘Maak hieronder uw nieuwe account aan.’;
break;
case ‘Showing %1$d–%2$d of %3$d results’ :
$translated_text = ‘Toont %1$d–%2$d van %3$d resultaten’;
break;
}
}
return $translated_text;
}
None of this works. I hope you can help me
|
|
Hello,
We attached patch for core.php, please replace it and it should be fixed. (You have to translate theme language file).
Best,
ThemeBurn team
|
|
Thank you so much, it worked!
|
|
Glad we’ve helped
Best,
ThemeBurn team
|
|