[Resolved] Display post author not translated

Home Forums Support Display post author not translated

  • This topic has 5 replies, 3 voices, and was last updated 12 months ago by Tom.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #1237039

    The German translation of “by” before the post author is missing.
    e.g 6. April 2020 by Someone

    Is that something, that you have to include or can I fix this myself? If so, where can I fix it?


    Customer Support

    Hi there,

    Try this PHP:

    add_filter( 'gettext', function( $text ) {
        if ( 'by' === $text ) {
            $text = 'YOUR TEXT';
        return $text;
    } );

    That will sure do the trick without me even trying. But what am I going to do, when I have more than one language? Is this the clean way to make it translatable?

    I just double checked with the default twentytwenty theme…they failed the translation of this part, which is sad.

    But when I’m fixing this, I wanna do it right for other languages to come. Can you help me with that?

    Lead Developer
    Lead Developer

    Hi there,

    If you’d like, you can contribute to our translations for the theme over on WordPress.org: https://translate.wordpress.org/projects/wp-themes/generatepress/

    If a translation is over 90% approved, the translations are shipped automatically.

    Let me know if you need more info πŸ™‚


    I just figured, where the problem was. I used german(Austria). Had to switch to german(sie) so that “by” got translated. Which is really stupid, because there’s no difference. I don’t even see the point of having german Austria. But anyway, German is translated 100% already. Thanks

    Lead Developer
    Lead Developer

    That’s strange, you would think they would fallback in that case. Glad it’s working now πŸ™‚

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