[Django] #28136: timesince() uses wrong plural form in Polish when the number is 14.

1 view
Skip to first unread message

Django

unread,
Apr 26, 2017, 12:35:02 PM4/26/17
to django-...@googlegroups.com
#28136: timesince() uses wrong plural form in Polish when the number is 14.
-----------------------------------------+------------------------
Reporter: Rafał P. | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.11
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 |
-----------------------------------------+------------------------
Tested in version 1.11:

{{{
>>> from datetime import timedelta
>>> from django.utils import translation
>>> from django.utils.timezone import now
>>> from django.utils.timesince import timesince
>>> translation.activate('pl')
>>> timesince(now() - timedelta(minutes=14))
'14\xa0minuty'
}}}
The result should be '14\xa0minut'. In version 1.10.6 the above code works
as expected.

--
Ticket URL: <https://code.djangoproject.com/ticket/28136>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 26, 2017, 12:48:21 PM4/26/17
to django-...@googlegroups.com
#28136: timesince() uses wrong plural form in Polish when the number is 14.
-------------------------------------+-------------------------------------

Reporter: Rafał P. | Owner: nobody
Type: Bug | Status: closed
Component: | Version: 1.11
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
* component: Uncategorized => Internationalization
* resolution: => invalid


Comment:

Looks like you'll need to suggest reverting the change on
[https://docs.djangoproject.com/en/dev/internals/contributing/localizing/#translations
Transifex] (translations aren't handled in this ticket tracker). This
change came in during the Django 1.11 translations update,
96ec72e298cd359648e1cf408d3c506ee3b1f297.

--
Ticket URL: <https://code.djangoproject.com/ticket/28136#comment:1>

Reply all
Reply to author
Forward
0 new messages