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'))
Asked
Active
Viewed 1,550 times
5

Community
- 1
- 1

Valentino Langarosa
- 307
- 1
- 3
- 9
1 Answers
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')