[1.7.x] Fixed typo in translation import statement
Backport of b0bd1f0e19857ed8c085f4621c5b7fcfde5ec040 from master
This commit is contained in:
parent
3d625cfc20
commit
285371bd76
@ -1701,7 +1701,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…
x
Reference in New Issue
Block a user