Bug 7926 - Date fields are not localized
Date fields are not localized
Status: NEW
Product: OJS
Classification: Unclassified
Component: Open Journal Systems
2.4.x
All All
: P3 normal
Assigned To: PKP Support
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-20 04:17 PDT by Marc Bria
Modified: 2012-09-21 15:19 PDT (History)
1 user (show)

See Also:
Version Reported In: 2.2.4, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.3.7
Also Affects:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Bria 2012-09-20 04:17:13 PDT
In forms where a date is required, [month] - [day] - [year] fields are not localized.

It means:
a) Month names are always shown in English.
b) Fields order is MDY while in other languages is DMY.

A first review of code drives me to an smarty-pkp function called:
function.html_select_date.php

This function does the job and need to be reimplemented taking in consideration the locale of the user.

For a) Month names must be in a translation file.
An alternative solution for b) is hidding fields behind a popup calendar.

To reproduce, just visits http://yourMagazine/manager/createAnnouncement with a lang diferent than English.
Comment 1 Marc Bria 2012-09-20 07:46:37 PDT
Not confirmed, but I'm pretty sure this issue "also affects" OJS (2.x versions).

Probably is not as annoying in OMP as far it includes popup calendars.