plugin strings do not get translated
-
Hi,
I have a stupid plugin which is supposed to work when a different language is defined. But it doesn’t!I found some text strings hardcoded inside the code, and which stay the same, in English, no matter which language is selected.
Here’s the code:
`if ( $tax_total_display == ‘itemized’ ) {foreach ( $tax_string_array as $tax_string ) {
// Tax included.
if ( $tax_display == ‘incl’ ) {$tax_line = sprintf(
/* translators: %s: tax included */
__( ‘Includes %s’, ‘woocommerce-german-market’ ),
$tax_string
);
$tax_line_class = ‘wgm-tax includes_tax’;} else { // Tax to be added.
$tax_line = sprintf(
/* translators: %s: tax to be added */
__( ‘Plus %s’, ‘woocommerce-german-market’ ),
$tax_string
);
$tax_line_class = ‘wgm-tax excludes_tax’;
}// Append tax line to total.
$tax_total_string .= sprintf( ‘<br class=”wgm-break” /><span class=”%s”>’, $tax_line_class );
$tax_total_string .= $tax_line;
$tax_total_string .= ‘</span>’;
}I am talking about those “Includes %s” or “Plus %s” strings ….
Could you help?
Thanks!
- The topic ‘plugin strings do not get translated’ is closed to new replies.