Le 08. 06. 16 13:19, Michael Wolf a écrit :
Hi Claude,
yes, AMO is addons.mozilla.org, thank you for your reply.
Another question: If these Django time strings of type "%d days", "%d
weeks", etc. are really used on AMO, a problem exists: On AMO they occur
together with "ago", e.g. %d days ago". Django supports plural rules,
that's good but here support for grammatical cases is needed. Sorbian
languages - as other Slavic languages as well - use prepositions that
need a specific grammatical case, here the instrumental. Such a string
like "%d days" is not good if it is used in different grammatical
contexts. Here it would be better to have the string "%d days ago" so I
could use e.g. Upper Sorbian instrumental, "před %d dnjemi". Of course,
this string should support plural rules as well. But, there is still a
problem: the preposition resp. English "ago" comes from AMO and if we
used the new string, "ago" resp. "před" would be appear twice. In this
case, AMO shouldn't use its "ago" resp. "před". Here an arrangement must
be made between Django and AMO drivers.
The string "a second ago"/"%(count)s seconds ago" is separately
translated in contrib.humanize:
https://github.com/django/django/blob/master/django/contrib/humanize/locale/en/LC_MESSAGES/django.po
This doesn't solve all grammatical issues, but at least the distinction
between "%(count)s seconds", "%(count)s seconds ago", "%(count)s seconds
from now" can be done in the translations.
Claude
--
www.2xlibre.net
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-i18n.
For more options, visit https://groups.google.com/d/optout.