﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
25856	JS strftime shim could (sometimes) support %B	Keryn Knight	Akos Zsolt Hochrein	"Currently, using the calendar widget in the admin, when the first `DATE_INPUT_FORMATS` is `%B %d, %Y` you end up outputting `undefined 03, 2015`

At a glance (and a monolingual one at that) I think it ought to be possible to shim support for `%B` specifically in, at least ''sometimes''; specifically, adding the following to `admin/js/core.js:Date.prototype.strftime`:

{{{
var fields = { ... }
if (typeof gettext !== ""undefined"" && typeof CalendarNamespace !== ""undefined"") {
    fields.B = CalendarNamespace.monthsOfYear[this.getMonth()]
}
}}}
thus, if the javascript catalog (`jsi18n`) is loaded, along with the calendar widget itself (`calendar.js`), an additional shim is added for whatever the locale's full month name is.

Marked as as an internationalization issue because the format is locale specific. Vaguely relates to #25024 if you squint at it.

NB: for the purposes of suggestion, I've gone with attempting to access `gettext` as a window global; it could instead test for window.gettext or django.gettext, I think."	New feature	closed	Internationalization	dev	Normal	fixed		django@…	Accepted	1	0	0	0	0	0
