[resolved] Change order of how TIME is displayed in a post (5 posts)

  1. dersaru
    Posted 2 years ago #

    Hi, I want to use the Theme on a German Website. The timestamp above each post now says for instance when posted 2 hours ago "2 Stunden ago".
    This German / English mix doesn't look too well. So I need a timestamp that says "vor 2 Stunden", thus the two things I need to do is:

    1) change "ago" to "vor"
    2) move that "vor" bit to the front of the timestamp

    I can fix 1) on my own. I think I found the relevant bit in the template-tags.php, lines 119 and 140, but I have no idea how I can move the "ago" part to the front.

    Can anyone help?

  2. rgholizadehr
    Posted 2 years ago #


    I think you could do this by replacing

    $human_time = human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) . ' ' . __( 'vor', 'expound' );


    $human_time = __( 'vor', 'expound' ). ' ' . human_time_diff(
    get_the_time( 'U' ), current_time( 'timestamp' ) );

    hope it helps

  3. Konstantin Kovshenin
    Theme Author

    Posted 2 years ago #

    The theme is translation ready, so your best bet is to just provide a de_DE translation files with 'ago' translated to 'vor'. Here's a good article on translating WordPress themes: http://www.appthemes.com/blog/how-to-translate-a-wordpress-theme/

    If you do make a full German translation of Expound, don't hesitate to send it over, so I can include it in the next update.

  4. Blubberbarsch
    Posted 2 years ago #

    I would recommend to translate "ago" with "zuvor".

    Currently I'm working on a german translation of the theme. I'll send it over to you when it's done Konstantin.

  5. Konstantin Kovshenin
    Theme Author

    Posted 2 years ago #

    Looking forward to that, thank you!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic