Time Stamp Language

edited January 2008 in Vanilla 1.0 Help
Hej there.
Where can i change the definitions for the months etc?

in the moment it says "Oct 18th 2007"
i want it look somehow like this "18. Oktober 2007"

Comments

  • Hmm... it seems Vanilla doesn't support date locales in the core.

    You will have to edit library/framework/Framework.Functions.php, inside the TimeDiff function, change the line like so:
    return datestrftime($Context->GetDefinition('OldPostDateFormatCode'), $Time);
    Then in your conf/language.php file, add these lines (I'm assuming that Oktober is German):setlocale(LC_TIME, "de_DE"); $Context->Dictionary['OldPostDateFormatCode'] = '%d. %B %Y';
    More info on setlocale and strftime.
  • edited January 2008
    okay, thank you so far. i guess i have to add some defenitions to my definitions.php?

    at the moment it looks like that:
    %16. %662 %2007
    what do i have to do? ._.

    edit: ah, well i got it. i think my server doesn't support %B or something. an the % signs are not necessary.

    changed the B to m, now this seems to work fine. thank you :)
This discussion has been closed.