#23619: Russian humanize does not correctly handle paucal numbers in naturaltime
filter
----------------------------------+--------------------------------------
     Reporter:  gagarski          |                    Owner:  nobody
         Type:  Bug               |                   Status:  closed
    Component:  Translations      |                  Version:  1.7
     Severity:  Normal            |               Resolution:  invalid
     Keywords:  humanize russian  |             Triage Stage:  Unreviewed
    Has patch:  0                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Changes (by claudep):

 * status:  new => closed
 * resolution:   => invalid
 * component:  Internationalization => Translations
 * needs_tests:   => 0
 * needs_better_patch:   => 0
 * needs_docs:   => 0
 * type:  Uncategorized => Bug


Comment:

 The problem is indeed in the Russian translation. Some of those
 translations are from `django.contrib.humanize` (apparently the correct
 ones). But when the difference is greater than one day, `naturaltime` is
 calling `django.utils.timesince` and this time the translation comes from
 the Django core po file.

 From humanize translations:
 {{{
 msgid "an hour ago"
 msgid_plural "%(count)s hours ago"
 msgstr[0] "%(count)s час назад"
 msgstr[1] "%(count)s часа назад"
 msgstr[2] "%(count)s часов назад"
 }}}

 From Django core translations:
 {{{
 msgid "%d hour"
 msgid_plural "%d hours"
 msgstr[0] "%d час"
 msgstr[1] "%d часов"
 msgstr[2] "%d часов"
 }}}

 Translations issues are not tracked here, but should be fixed directly in
 Transifex, hence the `invalid` closing.
 
https://docs.djangoproject.com/en/dev/internals/contributing/localizing/#translations

--
Ticket URL: <https://code.djangoproject.com/ticket/23619#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 [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/066.2e4f1b85cd409095551225b10fac97ca%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to