Not signed in (Sign In)

Categories

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthormonstr
    • CommentTimeNov 16th 2007
     # 1
    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"
    •  
      CommentAuthorWallPhone
    • CommentTimeNov 16th 2007
     # 2
    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.
    •  
      CommentAuthormonstr
    • CommentTimeJan 3rd 2008 edited
     # 3
    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 :)
Add your comments
    Username Password
  • Format comments as