mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Converted usage of ugettext* functions to their gettext* aliases
Thanks Tim Graham for the review.
This commit is contained in:
@@ -4,7 +4,7 @@ from django.test import SimpleTestCase
|
||||
from django.utils import text
|
||||
from django.utils.functional import lazystr
|
||||
from django.utils.text import format_lazy
|
||||
from django.utils.translation import override, ugettext_lazy
|
||||
from django.utils.translation import gettext_lazy, override
|
||||
|
||||
IS_WIDE_BUILD = (len('\U0001F4A9') == 1)
|
||||
|
||||
@@ -235,7 +235,7 @@ class TestUtilsText(SimpleTestCase):
|
||||
|
||||
# The format string can be lazy. (string comes from contrib.admin)
|
||||
s = format_lazy(
|
||||
ugettext_lazy("Added {name} \"{object}\"."),
|
||||
gettext_lazy("Added {name} \"{object}\"."),
|
||||
name='article', object='My first try',
|
||||
)
|
||||
with override('fr'):
|
||||
|
||||
Reference in New Issue
Block a user