#33661: Fix Catalan formats.py to use alt.month
-------------------------------------+-------------------------------------
               Reporter:  mpachas    |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  4.0
  Internationalization               |       Keywords:  date, template,
               Severity:  Normal     |  i18n
           Triage Stage:             |      Has patch:  1
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 DATE_FORMAT, DATETIME_FORMAT and MONTH_DAY_FORMAT strings in Catalan
 language are wrong because it uses always the preposition "de" between the
 day number and the month name but it is wrong when the month name starts
 with vowel like abril (April), agost (August) or octubre (October). In
 that case it should be d'abril, d'agost or d'octubre.

 I think that alt.month Month translations were created to help in this
 kind of situations (https://github.com/django/django/commit/2478f8588e) so
 this issue can be solved by a combination of a Catalan formats.py patch
 (django/conf/locale/ca/formats.py) and changing that translations (via
 Transifex).

 Actual:
 DATE_FORMAT = r"j \d\e F \d\e Y"

 msgid "January"
 msgstr "enero"

 msgid "April"
 msgstr "abril"

 {item.date | date} output -> 25 de enero de 2007
 {item.date | date} output -> 4 de abril de 2014    ---> THIS IS WRONG

 Proposal:

 DATE_FORMAT = r"j E \d\e Y" # E placeholder: alt. month translations for
 special cases.

 msgctxt "alt. month"
 msgid "January"
 msgstr "de enero"

 msgctxt "alt. month"
 msgid "April"
 msgstr "d'abril"

 {item.date | date} output -> 25 de enero de 2007
 {item.date | date} output -> 4 d'abril de 2014

 I'm trying to reach Catalan Transifex Team to add those strings, I think
 .po/.mo files won't follow the usual pull request way, but they must be
 changed before this file gets patched.

 Alternative month representation is available since this
 https://code.djangoproject.com/ticket/12309#no1

-- 
Ticket URL: <https://code.djangoproject.com/ticket/33661>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018065e56842-b72f5a5f-77ed-4460-8621-4f44c3e60a3b-000000%40eu-central-1.amazonses.com.

Reply via email to