#26337: Translations - No fallback used if requesting english variant
-------------------------------------+-------------------------------------
Reporter: cristianocca | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Documentation | Version: 1.9
Severity: Normal | Resolution:
Keywords: i18n translations | Triage Stage: Accepted
english |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by claudep):
Thanks, that use case is much more realistic!
I would suggest to add the following paragraphs under
https://docs.djangoproject.com/en/1.9/topics/i18n/translation
/#implementation-notes :
{{{
Non-English base language
-------------------------
Django makes the general assumption that the original strings in a
translatable
project are written in English.
You can choose another language, but you must be aware of certain
limitations:
* ``gettext`` only provide two plural forms for the original messages, so
you
will need to also provide a translation for the base language to include
all
plural forms if the plural rules for the base language are different
from
English.
* When an English variant is activated and English strings are missing,
the
fallback language will not be the :setting:`LANGUAGE_CODE` of the
project,
but the original strings. For example, an English user visiting a site
which
default language is Spanish and original strings are written in Russian
will
fallback to Russian, not to Spanish.
}}}
Thoughts?
--
Ticket URL: <https://code.djangoproject.com/ticket/26337#comment:10>
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/070.b95418fdd2cc4f153cb708fb19c1a2aa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.