A
A
Andrew2014-09-09 13:01:46
Django
Andrew, 2014-09-09 13:01:46

How to disable automatic translations in django?


Django returns me the translation for some words ('Home', 'Submit', 'Add'..) even though there is no translation in the *.po file, I need it to display the original string if there is no translation. even if you enter the original string in msgstr and run compilemessages, the standard dzhang translation is displayed.

LOCALE_PATHS = (
    os.path.join(PROJECT_PATH, 'locale')
)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Vasiliev, 2014-09-09
@aphex

I suspect that the "standard" dzhangovsky is being pulled from somewhere in the admin application.

V
Valery, 2014-09-18
@Vintorez

Remove django.middleware.locale.LocaleMiddleware from MIDDLEWARE_CLASSES in settings.py

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question