I'm trying to activate Django translations in a language that is not yet part of the Django distribution. I'm more than happy to do Django translations in that language from now on, but since I need it now, I'd like to know if it's possible to activate a certain language even though the admin panel and Django messages have not yet been translated (since I don't need that).
I would like to not fiddle with the django installation, unless absolutely necessary.
If I set the LANGUAGES
variable in settings.py
to the following, for example:
LANGUAGES = (
('en', _('English')),
('de', _('German')),
)
then it works fine and I can choose either German or English, with my own custom translations. If I do the following, however:
LANGUAGES = (
('en', _('English')),
('af', _('Afrikaans')),
)
then the language in neither the session nor the cookie can be set to the af
value, and it remains on en
. I would think it would be possible to use af
translations where available (as defined in my application locale files), then fall back to the en
values otherwise? How does one do this?