Hi,
we used X 6.5.6 and updated to Pro 3.1.1 today.
Our translation of the “0 items” next to the cart icon in navbar is now not working anymore. Oddly translations for more than 1 items in cart are still working fine.
We even tried it the hard way with:
add_filter('gettext', 'translate_text');
add_filter('ngettext', 'translate_text');
function translate_text($translated) { $translated = str_ireplace('Items', 'Artikel', $translated);
return $translated;
}
No success. We tried several places for .mo and .po like naming them x-de_DE and putting them in /wp-content/languages/themes and so on. .mo and .po are working as other translations are beeing applied.
Seems to have something to do with the update to (newest version?) of Pro.
Any idea? Thanks!
Ps.: When you look closely the translation (“0 Artikel”) is showing for one second after pageload but is then replaced by “0 items” again.