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/contrib/postgres/validators.py | |
parent | 4353640ea9495d58fabd0357253b82de3b069408 (diff) | |
download | django-c651331b34b7c3841c126959e6e52879bc6f0834.tar.gz |
Converted usage of ugettext* functions to their gettext* aliases
Thanks Tim Graham for the review.
Diffstat (limited to 'django/contrib/postgres/validators.py')
-rw-r--r-- | django/contrib/postgres/validators.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/postgres/validators.py b/django/contrib/postgres/validators.py index a1aef12015..9d256d8d83 100644 --- a/django/contrib/postgres/validators.py +++ b/django/contrib/postgres/validators.py @@ -6,18 +6,18 @@ from django.core.validators import ( MinValueValidator, ) from django.utils.deconstruct import deconstructible -from django.utils.translation import ugettext_lazy as _, ungettext_lazy +from django.utils.translation import gettext_lazy as _, ngettext_lazy class ArrayMaxLengthValidator(MaxLengthValidator): - message = ungettext_lazy( + message = ngettext_lazy( 'List contains %(show_value)d item, it should contain no more than %(limit_value)d.', 'List contains %(show_value)d items, it should contain no more than %(limit_value)d.', 'limit_value') class ArrayMinLengthValidator(MinLengthValidator): - message = ungettext_lazy( + message = ngettext_lazy( 'List contains %(show_value)d item, it should contain no fewer than %(limit_value)d.', 'List contains %(show_value)d items, it should contain no fewer than %(limit_value)d.', 'limit_value') |