Tagged: Language, translation
Hi there
I have a problem with CONTACT FORM Backend. Although Language is Deutsch (Sie) «DE_Sie» the message in Response Mail comes like this:
«Vielen Dank für Deine Nachricht! Instead of «Ihre Nachricht» and above the summary «Deine Nachricht:» instead of «Ihre Nachricht»
How can i change to Formal Response? «Deine» to «Ihre»?
Hi,
open the de_DE_formal.po file in the /lang folder using Poedit. Find and replace the occurrences of “Deine” etc. and save. 2 files will be created, .po and .mo. Overwrite the .po and .mo files in the lang directory and you’re done. Keep your modified files in a save place also in case you need them again after a theme update.
by the way: you can have child-theme edited lang files –
just create in child-themes folder a lang folder
and put those edited lang files ( po and mo – in your case: de_DE_formal.po and de_DE_formal.mo ) to that folder.
Put this little snippet to your child-theme functions.php:
function overwrite_language_file_child_theme() {
$lang = get_stylesheet_directory().'/lang';
return $lang;
}
add_filter('ava_theme_textdomain_path', 'overwrite_language_file_child_theme');
Ok, I got it! Found the strings with Loco Translate:
The file «ENFOLD de_DE_formal.po» is not correctly translated: «Your» is not «Deine» but «Ihre» in formal German.
https://www.directupload.net/file/d/6068/au3bwm5l_jpg.htm