Changeset 5895
- Timestamp:
- 08/15/07 07:09:32 (1 year ago)
- Files:
-
- django/trunk/AUTHORS (modified) (1 diff)
- django/trunk/django/core/validators.py (modified) (1 diff)
- django/trunk/django/utils/text.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/AUTHORS
r5880 r5895 129 129 Espen Grindhaug <http://grindhaug.org/> 130 130 Thomas Güttler <hv@tbz-pariv.de> 131 dAniel hAhler 131 132 Brian Harring <ferringb@gmail.com> 132 133 Brant Harris django/trunk/django/core/validators.py
r5864 r5895 273 273 raise ValidationError, ungettext("Watch your mouth! The word %s is not allowed here.", 274 274 "Watch your mouth! The words %s are not allowed here.", plural) % \ 275 get_text_list(['"%s%s%s"' % (i[0], '-'*(len(i)-2), i[-1]) for i in words_seen], 'and')275 get_text_list(['"%s%s%s"' % (i[0], '-'*(len(i)-2), i[-1]) for i in words_seen], _('and')) 276 276 277 277 class AlwaysMatchesOtherField(object): django/trunk/django/utils/text.py
r5609 r5895 3 3 from django.utils.encoding import force_unicode 4 4 from django.utils.functional import allow_lazy 5 from django.utils.translation import ugettext_lazy 5 6 6 7 # Capitalizes the first letter of a string. … … 124 125 get_valid_filename = allow_lazy(get_valid_filename, unicode) 125 126 126 def get_text_list(list_, last_word=u 'or'):127 def get_text_list(list_, last_word=ugettext_lazy(u'or')): 127 128 """ 128 129 >>> get_text_list(['a', 'b', 'c', 'd'])
