#23619: Russian humanize does not correctly handle paucal numbers in naturaltime
filter
--------------------------------------+------------------------------
Reporter: gagarski | Owner: nobody
Type: Uncategorized | Status: new
Component: Internationalization | Version: 1.7
Severity: Normal | Keywords: humanize russian
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------
Hello.
I have detected some problems when I tried to use 'naturaltime' filter
with russian i18n.
For example:
* "2 hours ago" is translated as "2 часа назад" (which is correct, so I
suppose django can handle such cases).
But:
* "5 days, 2 hours ago" is translated as "5 дней, 2 часов назад" instead
of "5 дней, 2 часа назад" (notice the incorrect ending of russian "hours"
word and the correct one in the previous case).
Also there are problems with "days" word:
* "2 days ago", "3 days ago" and "4 days ago" are translated as "2 дней
назад", "3 дней назад" and "4 дней назад". The correct translation is "2
дня назад", "3 дня назад" and "4 дня назад".
Summary:
* Paucal endings are handled correctly with "hours" word when there is no
"days" component in 'naturaltime' filter result.
* Paucal endings are always handled correctly with words "minites" and
"seconds" (probably because phrases with minutes or seconds never have the
second component)
* Paucal endings are never handled correctly with words "days", "months"
and "years". I even cannot find strings for them in
django/contrib/humanize/locale/ru/django.po file (are they handled by
other declension mechanism?)
--
Ticket URL: <https://code.djangoproject.com/ticket/23619>
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/051.81762cb0b6677702f67b136ca54495a8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.