[1.8.x] Fixed typo in translation import statement
Backport of b0bd1f0e19
from master
This commit is contained in:
parent
f0f8116a5f
commit
0c79932881
|
@ -1762,7 +1762,7 @@ To help write more concise code, there is also a context manager
|
||||||
``django.utils.translation.override()`` that stores the current language on
|
``django.utils.translation.override()`` that stores the current language on
|
||||||
enter and restores it on exit. With it, the above example becomes::
|
enter and restores it on exit. With it, the above example becomes::
|
||||||
|
|
||||||
from django.utils import tranlations
|
from django.utils import translation
|
||||||
|
|
||||||
def welcome_translated(language):
|
def welcome_translated(language):
|
||||||
with translation.override(language):
|
with translation.override(language):
|
||||||
|
|
Loading…
Reference in New Issue