Thanks for sharing the files and it seems you have translated the “Search”, “Read More” strings correctly so it should be translated on your site. Please make your site to translate in french language so that i can test it.
Would you mind if i log in to your site and do some troubleshooting? If this is ok then could you please share me your site log in details privately by checking the option “Set as private reply” when replying to this topic?
Also the following is not translated:
https://www.dropbox.com/s/k4o4tkm64948xna/Screenshot%202016-04-11%2009.54.27.png?dl=0
“Your email address”
“Subscribe”
These strings are displayed by mailchimp-for-wp plugin and not by this theme so you have to translate that plugin to change these strings.
I don’t mind using the plugin, as you’re correct in saying it’s very lightweight! However I’m not super familiar with JS and cannot add other strings to translate, without breaking the other ones! If you could either help me figure out why the theme is missing some translations, or instruct me on how to add additional lines to the plugin (without breaking anything), it would be greatly appreciate!
Here’s the following updated code that contains additional strings :
function colorlib_change_translate_text( $translations, $text, $context, $domain ) {
if (strpos($text,'Read More') !== false) {
$text = str_replace("Read More","Lire la suite", $text);
} else if (strpos($text,'Search') !== false) {
$text = str_replace("Search","Chercher", $text);
}else if (strpos($text,'Your email address') !== false) {
$text = str_replace("Your email address","Votre adresse email", $text);
}else if (strpos($text,'Subscribe') !== false) {
$text = str_replace("Subscribe","Souscrire", $text);
}
return $text;
}
add_filter( 'gettext_with_context', 'colorlib_change_translate_text', 99, 4 );
function colorlib_change_translate_text2( $translated_text, $text, $domain ) {
if (strpos($translated_text,'Read More') !== false) {
$translated_text = str_replace("Read More","Lire la suite", $translated_text);
} else if (strpos($translated_text,'Search') !== false) {
$translated_text = str_replace("Search","Chercher", $translated_text);
}else if (strpos($translated_text,'Your email address') !== false) {
$translated_text = str_replace("Your email address","Votre adresse email", $translated_text);
}else if (strpos($translated_text,'Subscribe') !== false) {
$translated_text = str_replace("Subscribe","Souscrire", $translated_text);
}
return $translated_text;
}
add_filter( 'gettext', 'colorlib_change_translate_text2', 99, 4 );