mirror of
https://github.com/django/django.git
synced 2025-10-03 15:24:43 +00:00
[1.8.x] Fixed typo in translation import statement
Backport of b0bd1f0e19
from master
This commit is contained in:
parent
f0f8116a5f
commit
0c79932881
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue