💾 Archived View for chirale.org › 2010-07-08_396.gmi captured on 2024-05-12 at 15:25:09. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Tested on:
Drupal 16+ Date API x-4 Internationalization x-3
Any date format is stored as system variable (on the global $conf variable).
Since Internationalization module allows to declare some system variables as Multilingual, you could add to your $conf\[‘i18n_variables’\] on settings.php these lines to use different date format for different languages:
allows to declare some system variables as Multilingual
$conf['i18n_variables'] = array( // Other variables // bla bla bla // Date variables 'date_format_long', 'date_format_medium', 'date_format_short', 'date_first_day', );
date_format variables are Long, Medium and Short date format, used in many places (including Views).
date_first_day is the first day displayed on calendars (e.g. Sunday for English, Monday for Italian).
Note that you have to save the value twice via:
http://example.com/it/admin/settings/date-time
http://example.com/en/admin/settings/date-time
And one more time:
http://example.com/it/admin/settings/date-time
After the first time, you can change format as you like without double checking.
https://web.archive.org/web/20100708000000*/http://drupal.org/node/134002
https://web.archive.org/web/20100708000000*/http://example.com/it/admin/settings/date-time
https://web.archive.org/web/20100708000000*/http://example.com/en/admin/settings/date-time
<p>And one more time:</p> <p><a href=
https://web.archive.org/web/20100708000000*/http://example.com/it/admin/settings/date-time
https://web.archive.org/web/20100708000000*/http://drupal.org/node/134002