Permalink
Browse files

[1.7.x] Fixed #22887 -- Added comment for translators on unique_for_d…

…ate error message

Backport of 6eed751 from master.
  • Loading branch information...
synasius authored and claudep committed Jul 26, 2014
1 parent 08e8e21 commit bc3d401b9f95ebc5bd25488708b5a82074c53ebb
Showing with 6 additions and 2 deletions.
  1. +4 −2 django/conf/locale/en/LC_MESSAGES/django.po
  2. +2 −0 django/db/models/fields/__init__.py
@@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-06-20 22:48+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 <en@li.org>\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."
@@ -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."),
}

0 comments on commit bc3d401

Please sign in to comment.