mirror of
https://github.com/django/django.git
synced 2025-09-21 09:49:53 +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
|
@ -9,7 +9,7 @@ from django.utils.functional import (
|
|||
SimpleLazyObject, keep_lazy, keep_lazy_text, lazy,
|
||||
)
|
||||
from django.utils.safestring import SafeText, mark_safe
|
||||
from django.utils.translation import pgettext, ugettext as _, ugettext_lazy
|
||||
from django.utils.translation import gettext as _, gettext_lazy, pgettext
|
||||
|
||||
|
||||
@keep_lazy_text
|
||||
|
@ -240,7 +240,7 @@ def get_valid_filename(s):
|
|||
|
||||
|
||||
@keep_lazy_text
|
||||
def get_text_list(list_, last_word=ugettext_lazy('or')):
|
||||
def get_text_list(list_, last_word=gettext_lazy('or')):
|
||||
"""
|
||||
>>> get_text_list(['a', 'b', 'c', 'd'])
|
||||
'a, b, c or d'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue