mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Converted usage of ugettext* functions to their gettext* aliases
Thanks Tim Graham for the review.
This commit is contained in:
parent
4353640ea9
commit
c651331b34
129 changed files with 362 additions and 355 deletions
|
@ -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'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue