mirror of
https://github.com/django/django.git
synced 2025-04-13 03:52:20 +00:00
[1.8.x] Fixed typo in translation import statement
Backport of b0bd1f0e19857ed8c085f4621c5b7fcfde5ec040 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
|
||||
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):
|
||||
with translation.override(language):
|
||||
|
Loading…
x
Reference in New Issue
Block a user