5

I want to disable i18n in django admin. Or rewrite django.utils.translation methods (gettext, gettext_lazy and other). This solution works fine, but some apps working incorect (because depends of language selecting). Web site have Russian as default language, but admin panel I want to create in English or Other language. So i have only settings.LANGUAGES = (('ru', 'Russian'))

Community
  • 1
  • 1

1 Answers1

0

You may need to write your own middleware to activate desired language in those urls: https://docs.djangoproject.com/en/1.3/topics/http/middleware/

It should look something like this: set language within a django view

def process_request(self, request):
        if request.path == '/thirdpartyapp/':
            activate('ru')
Community
  • 1
  • 1
n3storm
  • 704
  • 8
  • 21