Search code examples
pythondjangotranslationlocale

Force Django to show English as fallback


I just got done setting up languages in Django via this tutorial: http://devdoodles.wordpress.com/2009/02/14/multi-language-support-in-a-django-project/

Now that I have it live and working, I've discovered it will default to showing the message IDs if I don't have the user's locale.

Because I don't intend on supporting every locale in the whole wide world, can I set it to show the english locale by default instead? Right now my site says "title" to germans instead of the name of the site.


Solution

  • Just use the English translations as the message IDs.

    If you need a more detailed introductin to the translation of text with Django, you can look here.