• Resolved moertel62

    (@moertel62)


    Hallo,
    wie kann ich den angezeigten Text von den G?stebucheintr?gen von
    annonymous schrieb am 21.Dezember 2018
    in
    annonymous schrieb im Dezember 2018
    ?ndern?

    Dankefür die Hilfe

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcel Pol

    (@mpol)

    Hi, I see you managed the day thing. You can use the Settings > General for WordPress and change the date notation.

    I am not sure about the im / am thing.
    I would think it is ‘am’ when using a day, and ‘im’ when using a month? Then changing the default translation is a wrong approach.

    You could use this filter:

    function my_gwolle_gb_entry_read( $entry_html, $entry ) {
    	// $entry_html is a string
    	$old = '<span class="gb-date"> schrieb am ';
    	$new = '<span class="gb-date"> schrieb im ';
    	$entry_html = str_replace( $old, $new, $entry_html );
    	return $entry_html;
    }
    add_filter( 'gwolle_gb_entry_read', 'my_gwolle_gb_entry_read', 10, 2 );
    

    It is untested, so I hope the quoting and spaces go allright.

    • This reply was modified 5 years, 10 months ago by Marcel Pol.
    Thread Starter moertel62

    (@moertel62)

    Hi Marcel,
    IT WORKS !!

    Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Text ?ndern’ is closed to new replies.