diff --git a/django/conf/locale/en/LC_MESSAGES/django.po b/django/conf/locale/en/LC_MESSAGES/django.po index 57a56eabcd..cc5dbee4ab 100644 --- a/django/conf/locale/en/LC_MESSAGES/django.po +++ b/django/conf/locale/en/LC_MESSAGES/django.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: Django\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-05-19 15:17+0200\n" +"POT-Creation-Date: 2014-07-26 13:48+0200\n" "PO-Revision-Date: 2010-05-13 15:35+0200\n" "Last-Translator: Django team\n" "Language-Team: English \n" @@ -454,7 +454,9 @@ msgstr "" msgid "%(model_name)s with this %(field_label)s already exists." msgstr "" -#: db/models/fields/__init__.py:109 +#. Translators: The 'lookup_type' is one of 'date', 'year' or 'month'. +#. Eg: "Title must be unique for pub_date year" +#: db/models/fields/__init__.py:111 #, python-format msgid "" "%(field_label)s must be unique for %(date_field_label)s %(lookup_type)s." diff --git a/django/db/models/fields/__init__.py b/django/db/models/fields/__init__.py index 7d4f8e152e..56c25f0045 100644 --- a/django/db/models/fields/__init__.py +++ b/django/db/models/fields/__init__.py @@ -106,6 +106,8 @@ class Field(RegisterLookupMixin): 'blank': _('This field cannot be blank.'), 'unique': _('%(model_name)s with this %(field_label)s ' 'already exists.'), + # Translators: The 'lookup_type' is one of 'date', 'year' or 'month'. + # Eg: "Title must be unique for pub_date year" 'unique_for_date': _("%(field_label)s must be unique for " "%(date_field_label)s %(lookup_type)s."), }