mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
i18n: fixed a problem with the object history and lazy translations of field names
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@918 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c63aae3cff
commit
52e336d3d0
@ -55,7 +55,7 @@ def get_text_list(list_, last_word='or'):
|
||||
"""
|
||||
if len(list_) == 0: return ''
|
||||
if len(list_) == 1: return list_[0]
|
||||
return '%s %s %s' % (', '.join([i for i in list_][:-1]), last_word, list_[-1])
|
||||
return '%s %s %s' % (', '.join([str(i) for i in list_][:-1]), last_word, list_[-1])
|
||||
|
||||
def normalize_newlines(text):
|
||||
return re.sub(r'\r\n|\r|\n', '\n', text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user