Re: [Django] #25856: JS strftime shim could (sometimes) support %B

2016-04-06 Thread Django
#25856: JS strftime shim could (sometimes) support %B
--+
 Reporter:  kezabelle |Owner:  akoskaaa
 Type:  New feature   |   Status:  closed
Component:  Internationalization  |  Version:  master
 Severity:  Normal|   Resolution:  fixed
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by Tim Graham ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"ab2d34ba3fe95d0324d544ca2ca92c2bf0b533aa" ab2d34ba]:
 {{{
 #!CommitTicketReference repository=""
 revision="ab2d34ba3fe95d0324d544ca2ca92c2bf0b533aa"
 Fixed #25856 -- Added %B support to Date.strftime.

 This enables the admin to display the correct localized month name if %B
 is used in the date format.
 }}}

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.ae8450c7ec8f190a03e493ccd4234704%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25856: JS strftime shim could (sometimes) support %B

2016-04-04 Thread Django
#25856: JS strftime shim could (sometimes) support %B
--+
 Reporter:  kezabelle |Owner:  akoskaaa
 Type:  New feature   |   Status:  assigned
Component:  Internationalization  |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  1 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by timgraham):

 * has_patch:  0 => 1


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.43ae54fd4a1113a25ecda8a9efb72884%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25856: JS strftime shim could (sometimes) support %B

2016-04-03 Thread Django
#25856: JS strftime shim could (sometimes) support %B
--+
 Reporter:  kezabelle |Owner:  akoskaaa
 Type:  New feature   |   Status:  assigned
Component:  Internationalization  |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+

Comment (by akoskaaa):

 Actually, here's a PR https://github.com/django/django/pull/6406

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.65ae0e8fa9a9bed83fb90526dc60847c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25856: JS strftime shim could (sometimes) support %B

2016-04-03 Thread Django
#25856: JS strftime shim could (sometimes) support %B
--+
 Reporter:  kezabelle |Owner:  akoskaaa
 Type:  New feature   |   Status:  assigned
Component:  Internationalization  |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by akoskaaa):

 * status:  new => assigned
 * owner:  nobody => akoskaaa


--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.3a907461d51531d276e9f199f5ab76b3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25856: JS strftime shim could (sometimes) support %B

2016-04-03 Thread Django
#25856: JS strftime shim could (sometimes) support %B
--+
 Reporter:  kezabelle |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Internationalization  |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+

Comment (by akoskaaa):

 I'd recommend using something like this:

 {{{
 ...
 Date.prototype.getFullMonthName = function() {
 return typeof CalendarNamespace === "undefined"
 ? this.getTwoDigitMonth()
 : CalendarNamespace.monthsOfYear[this.getMonth()];
 };
 ...
 Date.prototype.strftime = function(format) {
 var fields = {
 ...
 B: this.getFullMonthName(),
 ...
 };
 ...
 };
 }}}

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.0130e250bc77d3f825088cd5e2834edd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25856: JS strftime shim could (sometimes) support %B

2015-12-05 Thread Django
#25856: JS strftime shim could (sometimes) support %B
--+
 Reporter:  kezabelle |Owner:  nobody
 Type:  New feature   |   Status:  new
Component:  Internationalization  |  Version:  master
 Severity:  Normal|   Resolution:
 Keywords:| Triage Stage:  Accepted
Has patch:  0 |  Needs documentation:  0
  Needs tests:  0 |  Patch needs improvement:  0
Easy pickings:  0 |UI/UX:  0
--+
Changes (by timgraham):

 * needs_docs:   => 0
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * stage:  Unreviewed => Accepted


Comment:

 I guess if we have a patch, that will tell whether or not it's feasible.
 :-)

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.24ebecba0fa1f40fdad09f2b50046781%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #25856: JS strftime shim could (sometimes) support %B

2015-12-03 Thread Django
#25856: JS strftime shim could (sometimes) support %B
--+
 Reporter:  kezabelle |  Owner:  nobody
 Type:  New feature   | Status:  new
Component:  Internationalization  |Version:  master
 Severity:  Normal|   Keywords:
 Triage Stage:  Unreviewed|  Has patch:  0
Easy pickings:  0 |  UI/UX:  0
--+
 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.

--
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.aceb3b8798ff44d62756620f23abe033%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.