#33661: Fix Catalan formats.py to use alt.month
--------------------------------------+------------------------------------
     Reporter:  mpachas               |                    Owner:  mpachas
         Type:  Bug                   |                   Status:  assigned
    Component:  Internationalization  |                  Version:  4.0
     Severity:  Normal                |               Resolution:
     Keywords:  date, template, i18n  |             Triage Stage:  Accepted
    Has patch:  1                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  1                     |                    UI/UX:  0
--------------------------------------+------------------------------------
Description changed by mpachas:

Old description:

> 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

New description:

 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 "gener"

 msgid "April"
 msgstr "abril"

 {item.date | date} output -> 25 de gener 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 gener"

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

 {item.date | date} output -> 25 de gener 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#comment:6>
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/01070180664d435f-248fc34b-0773-401c-a9de-00d389eb00a0-000000%40eu-central-1.amazonses.com.

Reply via email to