Max Merz
2018-04-16 13:08:19 UTC
Hello everybody,
I am the author of a pull request to fix Django bug #21408
<https://code.djangoproject.com/ticket/21408>, which concerns the German
translation of the phrases âX days agoâ and âX days from nowâ. Up until
now, these phrases were translated into German with âvor X Tageâ and âin X
Tageâ, while the correct translation would have been âvor X Tagenâ and âin
X Tagenâ (this corresponds to the Dative inflection of the word âTagâ).
The problem lies in the fact that Django's implementation does not
translate the phrase âX days agoâ as one, but rather translates the phrases
â⊠agoâ and âX daysâ separately, and puts the two translations together
afterwards. I tried to fix the bug for the German language by introducing a
`naturaltime` context to pass to `npgettext_lazy` when translating âX
daysâ, so that it would translate to âX Tagenâ. (The same holds for â⊠from
nowâ.)
When reviewing the changes in my pull request
<https://github.com/django/django/pull/9777>, Claude Paroz noted that there
might be languages in which a differentiation between âX days agoâ and âX
days from nowâ is needed.
My (our) question is now: Are there any such languages, and if yes, could
you provide an example?
Thank you very much in advance :)
Cheers
Max
I am the author of a pull request to fix Django bug #21408
<https://code.djangoproject.com/ticket/21408>, which concerns the German
translation of the phrases âX days agoâ and âX days from nowâ. Up until
now, these phrases were translated into German with âvor X Tageâ and âin X
Tageâ, while the correct translation would have been âvor X Tagenâ and âin
X Tagenâ (this corresponds to the Dative inflection of the word âTagâ).
The problem lies in the fact that Django's implementation does not
translate the phrase âX days agoâ as one, but rather translates the phrases
â⊠agoâ and âX daysâ separately, and puts the two translations together
afterwards. I tried to fix the bug for the German language by introducing a
`naturaltime` context to pass to `npgettext_lazy` when translating âX
daysâ, so that it would translate to âX Tagenâ. (The same holds for â⊠from
nowâ.)
When reviewing the changes in my pull request
<https://github.com/django/django/pull/9777>, Claude Paroz noted that there
might be languages in which a differentiation between âX days agoâ and âX
days from nowâ is needed.
My (our) question is now: Are there any such languages, and if yes, could
you provide an example?
Thank you very much in advance :)
Cheers
Max
--
You received this message because you are subscribed to the Google Groups "Django internationalization and localization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-i18n+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-i18n.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Django internationalization and localization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-i18n+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-i18n.
For more options, visit https://groups.google.com/d/optout.