[Django] #29018: The 'E' date filter format should return lowercase months for Spanish

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Django] #29018: The 'E' date filter format should return lowercase months for Spanish

Django
#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 [hidden email].
To post to this group, send email to [hidden email].
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 | Threaded
Open this post in threaded view
|

Re: [Django] #29018: The 'E' date filter format should return lowercase months for Spanish

Django
#29018: The 'E' date filter format should return lowercase months for Spanish
-------------------------------------+-------------------------------------
     Reporter:  mikix                |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:                       |                  Version:  master
  Internationalization               |
     Severity:  Normal               |               Resolution:  invalid
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 Thanks for the report, however, translations are handled at
 [https://docs.djangoproject.com/en/dev/internals/contributing/localizing/#translations
 Transifex] rather than in this tracker. If a code change is needed instead
 of a translation update, please reopen this ticket with details.

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