Good Morning Remi
I try this, but dosn’t work.
The Code:
if ( 1 === $total ) {
_e( 'Showing the single result', 'woocommerce' );
} elseif ( $total <= $per_page || -1 === $per_page ) {
/* translators: %d: total results */
printf( _n( 'Showing all %d result', 'Showing all %d results', $total, 'woocommerce' ), $total );
} else {
$first = ( $per_page * $current ) - $per_page + 1;
$last = min( $total, $per_page * $current );
/* translators: 1: first result 2: last result 3: total results */
printf( _nx( 'Showing %1$d–%2$d of %3$d result', 'Showing %1$d–%2$d of %3$d results', $total, 'with first and last result', 'woocommerce' ), $first, $last, $total );
}
I edit this Code:
printf( _nx( 'Showing %1$d–%2$d of %3$d result', 'Showing %1$d–%2$d of %3$d results', $total, 'with first and last result', 'woocommerce' ), $first, $last, $total );
to
printf( _nx( 'Showing %1$d–%2$d of <b>%3$d</b> result', 'Showing %1$d–%2$d of <b>%3$d</b> results', $total, 'with first and last result', 'woocommerce' ), $first, $last, $total );
But when I do that, is total result bold but the Translation no longer works.
befor:
Ergebnisse 1 – 12 von 1230 werden angezeigt
after:
Showing 1–12 of 1230 results
When i edit this Code, then Display it in english. German dosn’t work.