How i can get the current language of my web in a model or in the admin?
+3
A:
Functions of particular interest are django.utils.translation.get_language() which returns the language used in the current thread.
http://docs.djangoproject.com/en/1.1/howto/i18n/#using-translations-outside-views-and-templates
micha480
2010-07-28 20:19:43