On Tue, May 3, 2011 at 1:43 PM, Uri Goldstein <uri.goldst...@gmail.com> wrote: > Hi Tom, > > I definitely agree that having docs is good, reading and comprehending the > docs is better. Reading and comprehending the docs yourself you might have > noticed the following quote: "If you were to try this and Django supported > it, you would inevitably see a mixture of translated strings (from your > application) and English strings (from Django itself)." No mention of a > technical limitation, only of a goal to not see the mixture of translated > strings.
Were you expecting that a new translation would automatically have the correct translations for that language? What a strange expectation. The technical limitation belongs to gettext, not Django. It cannot load a supplementary language file when the main language file doesn't exist. IE, for our putative Mongolian translation, it cannot load your_app/locale/mn/LC_MESSAGES/django.mo if django/locale/mn/LC_MESSAGES/django.mo does not exist. > > The amount of effort to "to make at least a minimal translation of the > Django core" might be minuscule or it might not, I find that it shouldn't be > made necessary. You think Django should support all languages, out of the box? Do you have a patch? FYI, 'a minimal translation of the Django core' means copying the 'en' translation to your new language. Whether you need to translate parts of that depends upon whether your site needs it. > > And finally, I am assured that this is but a small issue to deal with and > yet, had it not been an issue in the first place it would not have been > mentioned in the official docs, would it? > Many things are mentioned in the manual that are small issues, since they evidently confuse new users. This is one of them. Anyone who has used gettext before would be aware of this issue, and it is extensively detailed in the gettext manual. Django's docs could easily have just said "Django uses gettext to deliver translatable content, refer to the gettext manual for implementation details", but it does more to help out new users. Bottom line: Django supports adding translations for as many languages as you like, but cannot and will not magically have translations for any languages which it does not support. You, as the website developer, are free to add languages that Django does not support, and doing so is a few trivial steps. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.