Opened 9 years ago

Closed 7 years ago

#7405 closed feature (wontfix)

Add date format hint to localizations

Reported by: saje Owned by: saje
Priority: minor Milestone: 1.11.0
Component: ui.datepicker Version: 1.8.13
Keywords: Cc:
Blocked by: Blocking:

Description

It would be useful if localizations contained translated version of date format eg. mm/dd/yyyy (mm/dd/yy) for en-GB, дд/мм/гггг (dd.mm.yy) for ru and DD-MM-ÅÅÅÅ (yy-mm-dd) for sv which could be used as date format hint:

$('span.dateFormatHint').text( $.datepicker._defaults.dateFormatHint );

Change History (5)

comment:1 Changed 7 years ago by Scott González

Milestone: 1.9.01.11.0

comment:2 Changed 7 years ago by mikesherov

Status: newopen

comment:3 Changed 7 years ago by Scott González

Owner: set to saje
Status: openpending

So you want a new option which won't be used by the datepicker itself? I may be missing something, but I don't think this is even provided by CLDR.

comment:4 in reply to:  3 Changed 7 years ago by saje

Status: pendingnew

Replying to scott.gonzalez:

So you want a new option which won't be used by the datepicker itself? I may be missing something, but I don't think this is even provided by CLDR.

No I think it's not provided by CLDR. Nor brought together in anywhere else. Just like the other text translations, I suppose.

It's cumbersome to type in the date in cultures that have several semi-official formats and sometimes it's not clear which culture-settings are active. Yes visitor is supposed to pick the date but some users prefer not to browse for the date. And input field is good to be there as fallback for some exotic/mobile ua's.

<p>Date (<span class="dateFormatHint"></span>): <input class="datepicker" type="text"></p>

comment:5 Changed 7 years ago by Scott González

Resolution: wontfix
Status: newclosed

Unfortunately we don't have a way to get this information, and we plan to move to CLDR for all of our data anyway. We're also not likely to add data that won't even be used by the plugin.

Note: See TracTickets for help on using tickets.