• Resolved dersaru

    (@dersaru)


    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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I think you could do this by replacing

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

    with

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

    hope it helps

    Theme Author Konstantin Kovshenin

    (@kovshenin)

    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: https://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.

    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.

    Theme Author Konstantin Kovshenin

    (@kovshenin)

    Looking forward to that, thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change order of how TIME is displayed in a post’ is closed to new replies.