Internationalization and Date Formats

Permalink Browser Info Environment
It's great to have the ability to specify the date format. When using Internationalization, different countries need different formats. Is there any way to use multiple date formats in the same site installation?

Type: Discussion
Status: New
unicomc5
View Replies:
hutman replied on at Permalink Reply
hutman
It would take a fair amount of messing around to modify this in the dashboard save function. I'm not really sure how internationalization works to handle this, so that's the biggest issue.

There's this call that is what gets the date format:

$dateFormat = $co->get("HUTMAN_NEWS_DATE_FORMAT");?>


I'd imagine you would want to modify that to get the correct date format from the internationalization add on, instead of using the one for Hutman News. It wouldn't be using the format from the dashboard, but would have the formats you need. Maybe a switch statement based on the current locale?

Do you know how it's handled in other places?
unicomc5 replied on at Permalink Reply
unicomc5
Thanks, I think with a little work I can probably use that code to make it happen!

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.