WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dersaru
    Member
    Posted 11 months 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
    Member
    Posted 11 months ago #

    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

  3. Konstantin Kovshenin
    Member
    Theme Author

    Posted 10 months 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
    Member
    Posted 10 months 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
    Member
    Theme Author

    Posted 10 months ago #

    Looking forward to that, thank you!

Reply

You must log in to post.

About this Theme

About this Topic