Hi There, we have the problem to translate some phrases within TheGrid Plugin. And Tools like Loco and other fail to translate, because those tools found at least 3 different “mo” files which they could not handle. So, what could we do?.
These are the Phrases we need to be translated:
- “Load More” translate in “Lade mehr”
- “Loading” translate in “Lade”
- “Search” translate in “Suche”
… and “yes” we have produced the necessary .po and .mo files. But nothing happens!
And we have tried the “hard version” via PHP… but even this failed:
add_filter(‘gettext’, ‘x_translate_text’ , 20, 3);
function x_translate_text ( $translated_text, $text, $domain ) {
$translated_text = str_ireplace("Load More", 'mehr laden', $translated_text);
$translated_text = str_ireplace("Loading", 'lade', $translated_text);
return $translated_text;
}
Could you please help on this?!
Daniel

