Forums

Translate date & time (3 posts)

  1. renefyrster
    Member
    Posted 9 months ago #

    Hi i´ve been running Wordpress for along time know, but can´t figure out how to translate the time & date into Danish (da_DK) is there anybody who can tell me where to customize this? or is there any other "smarter way to do it?

    Best regards

    René Simonsen

    www.fyrster.dk

  2. jszym
    Member
    Posted 2 weeks ago #

    I have the same problem. I would like to translate the date to Polish (pl_PL).

    I found some resources, but it's too complicated for a begginer user like me.
    http://codex.wordpress.org/Function_Reference/date_i18n
    http://pl2.php.net/manual/pl/function.date.php
    http://pl2.php.net/manual/pl/function.setlocale.php
    http://pl2.php.net/manual/pl/function.strftime.php

    I currently have such a code in the header.php:

    <div class="date"><?php echo date('l, jS F Y'); ?></div>

    Does anyone have a recepie for this? Did you find out anything Rene?

    Cheers
    Janek
    www.homogazyn.com

  3. offspring
    Member
    Posted 2 weeks ago #

    I had the same problem with russian. I ended up with going through my theme and changing every time/date output function to the format I want.
    You may start by removing the S from the above example date('l, jS F Y');
    It will remove the siffixes from numbers - 1st November will become 1 November. If you need further help with this let me know.

Reply

You must log in to post.

About this Topic