Jump to content

Dates in Dutch


MaikelVE

Recommended Posts

if you mean on the homepage, then the dates are formatted in the template - so you'd need to edit the homepage.tpl template to tweak this...

{$carbon->translatePassedToFormat($announcement.rawDate, 'M jS')}

becomes...

{$carbon->translatePassedToFormat($announcement.rawDate, 'j F')|strtolower}

SzHTAbv.png

if you had to, you could wrap the above code in an if statement to check if language is Dutch and if it is, make this format change, otherwise use the default date format.

if you wanted to do it in the announcements template, a similar bit of tweaking would be needed...

{$carbon->createFromTimestamp($announcement.timestamp)->format('j F Y')|strtolower}

VthtEIp.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated