Location "Showing x to x of xxx (xx pages)" for translation

ThemeBurn SupportForumsWordPress ThemesShoppica WordPress ThemeLocation "Showing x to x of xxx (xx pages)" for translation

This topic has been marked as resolved.

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

January 7, 2014 at 8:56 pm #29821

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

January 9, 2014 at 11:01 am #29857

Thank you so much, it worked!

January 9, 2014 at 2:06 pm #29870

Glad we’ve helped :)

Best,
ThemeBurn team

January 9, 2014 at 4:02 pm #29880
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.