-
AuthorPosts
-
May 7, 2019 at 9:26 am #1098009
Hallo,
ich wollte die deutsche Übersetzung der 404 Fehlerseite etwas anpassen. Eine Zeile habe ich hinzugefügt, die wird in der englischen Version auch korrekt angezeigt. In der deutschen Sprachversion wollte ich noch eine Text-Änderung machen von “Du” zu “Sie”.
Ich habe dafür den neuen Text in de_DE.po Datei eingefügt, wie hier beschrieben: https://kriesi.at/support/topic/fehler-404-seite-nicht-gefunden/
Aber die neue Übersetzung greift nicht und die neue Zeile wird nur in Englisch angezeigt.
Könnt ihr mir sagen, was noch falsch ist?Wie hier beschrieben https://kriesi.at/support/topic/search-result-po-file/
habe ich auch ausprobiert, die formale Sprachversion direkt über die WP Einstellungen auszuwählen, aber auch dann wurde die “Du” Version unverändert dargestellt.May 7, 2019 at 10:24 am #1098034Das selbe Problem habe ich auch bei der loop-search.php
Der geänderte Text aus der de_DE.po Datei wird nicht übernommen.May 8, 2019 at 9:39 pm #1098638Hi,
Could you please let us know your question in English?
Best regards,
BasilisMay 9, 2019 at 8:55 am #1098792Hello,
I wanted to edit the German translation of the 404 error page from “du” to “Sie” (more formal).
I did the changes in de_DE.po
But it does not work and also a the new line is only displayed in English. The same problem I have with the loop-search.phpAs described here https://kriesi.at/support/topic/search-result-po-file/
I also tried to select the formal language version directly from the WP settings, but it didn´t work.Can you tell me what’s wrong?
Thank you.May 12, 2019 at 9:55 am #1099706Hi,
Sorry for the late reply, you will see that there are actually two files for the language .po & .mo. The .po file is the “human readable” version, the .mo file is the “machine readable” version actually used by WordPress. So, if the .po is updated nothing will actually change until the corresponding .mo file is also updated.
You can do this with the Poedit software, here is an article explaining how to do this.
Please let us know if this helps.Best regards,
MikeMay 13, 2019 at 11:37 am #1100011Hi Mike, thank you.
I could translate everything with the Poedit software.In loop-search.php and error404.php I added a new sentence: ‘Or contact us and we will answer your question.’
This sentence always appears in English, also in the German version. See links below. How can I change that?
It was not automatically taken into enfold.pot.
Kind regards,
SarahMay 14, 2019 at 12:25 am #1100327Hi,
Glad you were able to translate everything with the Poedit.
To be clear are you replacing text with your “new sentence” or adding a totally “new sentence”?
If it’s a new line of code and sentence, please try to add only in your language.Best regards,
MikeMay 14, 2019 at 9:36 am #1100431Hi Mike,
i added a complete new code line underneath the original:- <?php _e(‘Or contact us and we will answer your question.’, ‘avia_framework’); ?>
If i write it in my language, i have the problem in the English language version. -> We have a website with 2 language-versions from Polylang Plugin.
Is there a way to show the correct translation for each version?
Kind regards,
SarahMay 16, 2019 at 8:12 am #1101313Hi,
Thanks for the update.
Did you specify the exact line in the .po file where the code is? Example:
# @ avia_framework #: includes/error404.php:31 includes/loop-search.php:137 msgid "Or contact us and we will answer your question." msgstr "ADD THE TRANSLATION HERE"
Since you appended it at the very last of the list, the code should be on line 31. Don’t forget to sync or compile the language file after adding the translation.
If you don’t want to edit the file manually, you can use the Loco Translate plugin.
// https://wordpress.org/plugins/loco-translate/
Best regards,
IsmaelMay 16, 2019 at 12:08 pm #1101401Thank you Ismael,
it works now!Best regards,
SarahMay 17, 2019 at 1:06 pm #1101785Hi,
Awesome! Glad it worked. Please don’t hesitate to open a new thread if you need anything else.
And if you have the time, please take a moment to review our theme and show your support https://themeforest.net/downloads
For future reference, don’t forget to bookmark the Enfold Documentation.Have a nice day!
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.