#29018: The 'E' date filter format should return lowercase months for Spanish
------------------------------------------------+------------------------
               Reporter:  Michael Terry         |          Owner:  nobody
                   Type:  Bug                   |         Status:  new
              Component:  Internationalization  |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 Template code like the following:

 {{ now|date:'E' }}

 should return a month like "March" for English but "marzo" for Spanish (no
 uppercase).  I guess 'F' could continue to be uppercase.  But 'E'
 certainly should respect the locale preferences.

 Wikipedia mentions this rule [1]. Apparently it's also on the Royal
 Spanish Academy's site, but I'm not good enough at Spanish to navigate it.

 Python's strftime('%B') uses lowercase in Spanish.  So does python-babel
 and similar projects. Even Django used to (and rejected a request to make
 it uppercase in ticket:11173) before commit
 6ca475d540361090e8b28154ce5391de718d5c63 in 2013 (which I suspect was a
 mistake, but I didn't follow why those changes were made in the 1.5
 branch).

 I suspect the fix is to update the Spanish translation for all the "alt.
 month" contexts to use lowercase.

 [1] https://en.wikipedia.org/wiki/Date_and_time_notation_in_Spain

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29018>
Django <https://code.djangoproject.com/>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.9f6fb0d2015b3e14ba83c8f632c6a772%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to