Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1408784

    Hallo liebe User
    Ich habe auf der Webseite einen Blogbeitrag mit freischaltung erstellt.
    Bis zur freischaltung erscheint dieser Text auf deutsch der nicht richtig geschrieben ist.
    “Das letzte Kommentar muss genehmigt werden”
    Wo kann ich diesen Text ganz auschalten oder richtig schreiben?
    Danke für euere Tipps!
    Gruss Stefan

    Hello dear users
    I have created a blog post on the website https://vve-erlenbach.ch/blog/ with activation.
    Until the release this text appears in German which is not written correctly.
    “The last comment must be approved”.
    Where can I turn off this text completely or write it correctly?
    Thanks for your tips!
    Greetings Stefan

    #1408813

    Hi Stefan,

    Where exactly are you seeing that text?

    Best regards,
    Rikard

    #1408844

    you are on Enfold 5.3.1.1 – especially with the translations, something changes quite often. That’s why I can no longer find this string in the lang files of 5.6.2.

    On Swiss wordpress the lang files are pulled from lang folder: de_CH.po (de_CH.mo)
    if you use the german version – be carefully that there is a formal and an informal lang file ( for “Sie” and “Du” usage )

    by the way: Users ( not logged in users ) see:
    “Dein Kommentar muss noch vom Moderator freigeschaltet werden”
    so i guess what you are seeing is the hint for the mods/admins.

    Ich testete gerade das auf deiner Seite – bitte lösche also diesen Test Kommentar

    #1408846

    Hi Rikard
    I had to write a comment again that you can see it, now it should be visible at https://vve-erlenbach.ch/abstimmung-19-juni-2023-gemeinde-erlenbach/
    the comment is called: The last comment must be approved.
    Das letzte Kommentar muss genehmigt werden.
    Best Regards Stefan

    • This reply was modified 1 year, 7 months ago by sroetheli.
    #1408851

    Hi,

    Thanks for that. I’m seeing this text on my end now:

    Das letzte Kommentar muss genehmigt werden.

    Is that correct or not? If you want to hide it, then you can use this in Quick CSS:

    div.av-buildercomment-unapproved {
      display: none;
    }

    Best regards,
    Rikard

    #1408853

    it is not correct. it should read:
    Der letzte Kommentar muss noch genehmigt werden.

    The fade out works!

    Best regards – Stefan

    #1408854

    Thanks for the info, I did it with hide in Quck CSS!
    Best Regards – Stefan

    #1408855

    in the lang files of formal : de_DE_formal.po it is correct : “Der letzte Kommentar muss genehmigt werden.”
    ( i.e. when using the formal form of address “SIE” )

    and indeed on the informal de_DE.po it is incorrect: “Das letzte Kommentar muss genehmigt werden.”

    So you can either switch to the formal Version of the lang file ( on dashboard – settings – site language )

    Or you can edit that lang file ( using poedit ) and have your own child-theme langfile for that:
    (edited Versions of both files .po and .mo files to upload in subfolder of your child-theme: lang )

    function overwrite_language_file_child_theme() {
        $lang = get_stylesheet_directory().'/lang';
        return $lang;
    }
    add_filter('ava_theme_textdomain_path', 'overwrite_language_file_child_theme');

    or – quick and relative dirty way:
    ( in child-theme functions.php )

    function my_text_strings( $translated_text, $text, $domain ){
      switch ( $translated_text ){
        case 'The last comment needs to be approved.' : $translated_text = __( 'Der letzte Kommentar muss genehmigt werden.', $domain ); break;
        // case 'Das letzte Kommentar muss genehmigt werden.' : $translated_text = __( 'Der letzte Kommentar muss genehmigt werden.', $domain ); break;
      }
      return $translated_text;
    }
    add_filter('gettext', 'my_text_strings', 20, 3);

    ( if first case does not work uncomment the second case in that code and remove the first case )

    or use a plugin to correct that wrong translation

    #1408856

    Hi Guenni007
    Thank you for your detailed description. I like to remember this when I need to change something in the lang file. At the moment I hide the text.
    Best Regard – Stefan

    #1408997

    Hi Stefan,

    Thanks for the update, please let us know if you should need any further help on the topic, or if we can close it.

    Thanks @guenni007 for helping out :-)

    Best regards,
    Rikard

    #1409011

    Thanks for the help. The problem is solved :-)
    Best Regerds Stefan

    #1409026

    Hi,

    I updated the wrong translation in the german files. Will be part of next release.

    Best regards,
    Günter

    #1409030

    Hi,
    Thank you for the quick service!
    Best Regards – Stefan

    #1409037

    Hi,

    You can find the latest translation files here: https://github.com/KriesiMedia/enfold-language-files

    Best regards,
    Günter

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