-
AuthorPosts
-
May 27, 2023 at 3:46 pm #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 StefanHello 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 StefanMay 27, 2023 at 8:09 pm #1408813May 28, 2023 at 8:18 am #1408844you 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
May 28, 2023 at 10:44 am #1408846Hi 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.
May 28, 2023 at 11:41 am #1408851Hi,
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,
RikardMay 28, 2023 at 12:05 pm #1408853it is not correct. it should read:
Der letzte Kommentar muss noch genehmigt werden.The fade out works!
Best regards – Stefan
May 28, 2023 at 12:06 pm #1408854Thanks for the info, I did it with hide in Quck CSS!
Best Regards – StefanMay 28, 2023 at 12:06 pm #1408855in 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
May 28, 2023 at 12:16 pm #1408856Hi 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 – StefanMay 30, 2023 at 9:57 am #1408997Hi 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,
RikardMay 30, 2023 at 11:42 am #1409011Thanks for the help. The problem is solved :-)
Best Regerds StefanMay 30, 2023 at 3:03 pm #1409026Hi,
I updated the wrong translation in the german files. Will be part of next release.
Best regards,
GünterMay 30, 2023 at 3:55 pm #1409030Hi,
Thank you for the quick service!
Best Regards – StefanMay 30, 2023 at 4:35 pm #1409037Hi,
You can find the latest translation files here: https://github.com/KriesiMedia/enfold-language-files
Best regards,
Günter -
AuthorPosts
- You must be logged in to reply to this topic.