Tagged: search results page, translation
-
AuthorPosts
-
March 7, 2022 at 2:59 pm #1343498
I come across something I can’t really put my finger on. Enfold seems to be nicely translated into Dutch by default, but when I want to change something myself, for example the text of the search results page, the .mo file turns out to be empty. If I edit that empty .mo file, Enfold is suddenly displayed in the English language.
Where can I change this text?
March 8, 2022 at 6:05 am #1343558Hey Jacobus,
Thank you for the inquiry.
Are you editing the formal version of the language or just the default de_DE.mo file? You may need to use the Loco Translate plugin in order to translate the strings instead of manually editing the language files. Please check the link below.
// https://wordpress.org/plugins/loco-translate/
If you want to compile the language files manually, try to use the following application.
Best regards,
IsmaelMarch 8, 2022 at 1:06 pm #1343604Hey Ismael,
Thanks for your quick response! It’s a strange story, because I already wanted to change the nl_NL po-file with Poedit. But the corresponding nl_NL mo file is completely empty. While Enfold is neatly translated into Dutch already.
Is there another translation file where Enfold gets the Dutch translation from?
Best regards,
Jacobus
March 8, 2022 at 2:00 pm #1343625But you edit the po files ( not mo ) – after editing the po file with e.g. poedit this creates the po and mo files. Both files had to be uploaded.
btw: you can have your own child-theme lang folder and to have this active you can use in 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');
see : docu
March 9, 2022 at 5:31 am #1343766Hi,
because I already wanted to change the nl_NL po-file with Poedit
Sorry for the confusion. I thought you are editing the de_DE language files. We checked the nl_NL.po file and it seems to contain most of the translations. Which particular strings are you trying to edit?
Are you uploading the both language files after compiling them using POEdit?
Is there another translation file where Enfold gets the Dutch translation from?
All translations for the theme are located in the lang folder. Are you using another language plugin?
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.