mirror of
				https://github.com/django/django.git
				synced 2025-10-31 01:25:32 +00:00 
			
		
		
		
	Fixed #22887 -- Added comment for translators on unique_for_date error message
This commit is contained in:
		
				
					committed by
					
						 Claude Paroz
						Claude Paroz
					
				
			
			
				
	
			
			
			
						parent
						
							e1c85167a3
						
					
				
				
					commit
					6eed751162
				
			| @@ -4,7 +4,7 @@ msgid "" | |||||||
| msgstr "" | msgstr "" | ||||||
| "Project-Id-Version: Django\n" | "Project-Id-Version: Django\n" | ||||||
| "Report-Msgid-Bugs-To: \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" | "PO-Revision-Date: 2010-05-13 15:35+0200\n" | ||||||
| "Last-Translator: Django team\n" | "Last-Translator: Django team\n" | ||||||
| "Language-Team: English <en@li.org>\n" | "Language-Team: English <en@li.org>\n" | ||||||
| @@ -454,7 +454,9 @@ msgstr "" | |||||||
| msgid "%(model_name)s with this %(field_label)s already exists." | msgid "%(model_name)s with this %(field_label)s already exists." | ||||||
| msgstr "" | 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 | #, python-format | ||||||
| msgid "" | msgid "" | ||||||
| "%(field_label)s must be unique for %(date_field_label)s %(lookup_type)s." | "%(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.'), |         'blank': _('This field cannot be blank.'), | ||||||
|         'unique': _('%(model_name)s with this %(field_label)s ' |         'unique': _('%(model_name)s with this %(field_label)s ' | ||||||
|                     'already exists.'), |                     '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 " |         'unique_for_date': _("%(field_label)s must be unique for " | ||||||
|                              "%(date_field_label)s %(lookup_type)s."), |                              "%(date_field_label)s %(lookup_type)s."), | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user