mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +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
|
@ -16,7 +16,7 @@ different types of fields.
|
|||
For example, here's a validator that only allows even numbers::
|
||||
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
def validate_even(value):
|
||||
if value % 2 != 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue