diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-01-26 20:58:33 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2017-02-07 09:04:04 +0100 |
| commit | c651331b34b7c3841c126959e6e52879bc6f0834 (patch) | |
| tree | 3f93aeb92fc91dcc61649b46d9f26f7aaaff978b /django/forms/widgets.py | |
| parent | 4353640ea9495d58fabd0357253b82de3b069408 (diff) | |
Converted usage of ugettext* functions to their gettext* aliases
Thanks Tim Graham for the review.
Diffstat (limited to 'django/forms/widgets.py')
| -rw-r--r-- | django/forms/widgets.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 38ed56950a..c468e7d799 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -17,7 +17,7 @@ from django.utils.encoding import force_text from django.utils.formats import get_format from django.utils.html import format_html, html_safe from django.utils.safestring import mark_safe -from django.utils.translation import ugettext_lazy +from django.utils.translation import gettext_lazy as _ from .renderers import get_default_renderer @@ -358,9 +358,9 @@ FILE_INPUT_CONTRADICTION = object() class ClearableFileInput(FileInput): - clear_checkbox_label = ugettext_lazy('Clear') - initial_text = ugettext_lazy('Currently') - input_text = ugettext_lazy('Change') + clear_checkbox_label = _('Clear') + initial_text = _('Currently') + input_text = _('Change') template_name = 'django/forms/widgets/clearable_file_input.html' def clear_checkbox_name(self, name): @@ -690,9 +690,9 @@ class NullBooleanSelect(Select): """ def __init__(self, attrs=None): choices = ( - ('1', ugettext_lazy('Unknown')), - ('2', ugettext_lazy('Yes')), - ('3', ugettext_lazy('No')), + ('1', _('Unknown')), + ('2', _('Yes')), + ('3', _('No')), ) super().__init__(attrs, choices) |
