Re: Translation of messages with automatic content into inflecting languages.

2017-11-14 Thread Strahinja Lukic
Hi Maciej, Thanks for your suggestion. This is nearly the kind of thing that I wanted to do. But if I am not mistaken, makemessages cannot capture expanded messages, since it analyses the code when it is not running, so it cannot predict what will be expanded. So it seems to me that changing th

Re: Translation of messages with automatic content into inflecting languages.

2017-11-12 Thread Maciek Olko
Hi Strahinja, To achieve what you are writing about, you should fork Django and change gettext calls occurences as you described. For example line 290 in helpers.py: gettext('*Add* *another* %(*verbose_name*)s') % {'*verbose_name*': capfirst(verbose_name)} would be changed to: gettext('*Add* *a

Re: Translation of messages with automatic content into inflecting languages.

2017-11-11 Thread Strahinja Lukic
Hi Mathias, Thanks for sharing your example. I agree, there is no point attempting to provide automatic inflections. I was just wondering the following: At present, the message file for the app can be made to provide translations for all messages with inflected forms that appear in the app. H

Re: Translation of messages with automatic content into inflecting languages.

2017-11-10 Thread Mathias Rav
On Fri, 10 Nov 2017 09:00:08 -0800 (PST) Strahinja Lukic wrote: > I am relatively new to Django, and I recently ran into the problem of > translating messages with automatic inclusion of model names / verbose > names into a language in which nouns are inflected depending on the gender > and ca