Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #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.

    #1098034

    Das selbe Problem habe ich auch bei der loop-search.php
    Der geänderte Text aus der de_DE.po Datei wird nicht übernommen.

    #1098638

    Hi,

    Could you please let us know your question in English?

    Best regards,
    Basilis

    #1098792

    Hello,
    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.php

    As 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.

    #1099706

    Hi,
    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,
    Mike

    #1100011

    Hi 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,
    Sarah

    #1100327

    Hi,
    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,
    Mike

    #1100431

    Hi 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,
    Sarah

#1101313

Hi,

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,
Ismael

#1101401

Thank you Ismael,
it works now!

Best regards,
Sarah

#1101785

Hi,

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

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.