When user change locale, the date and time should also be set to the proper locale when presenting such information. This is controlled inside PHP with a special settings. I believe it is setlocale()

http://www.php.net/manual/en/function.setlocale.php

Comments

Kjartan’s picture

Category: bug » feature
coreb’s picture

Version: » 6.x-dev

Moving from x.y.z queue to 6.x-dev.

cburschka’s picture

Version: 6.x-dev » 7.x-dev

Good idea.

scb’s picture

Subscribing.
Note: In my opinion this is not a feature request, it is a bug, as date formats and names are not properly localized in multilanguage sites.

damien tournoud’s picture

Status: Active » Closed (won't fix)

There's no bug here. setlocale() is not used for good reasons (it is process wide, so it can affect other PHP scripts is some server environments).

In my opinion this is not a feature request, it is a bug, as date formats and names are not properly localized in multilanguage sites.

That's a funny one. Of course the site is localized only if the correct language is installed.

Also, see #11623: Localize date formats on some thinking on how to change the date/time *format* depending on the current language.