fixed issue 1723:Missing translation for the word file in the upload widget, thanks mweissen

This commit is contained in:
mdipierro
2013-10-16 09:00:42 -05:00
parent a74a16cfba
commit a379d7020e
2 changed files with 4 additions and 4 deletions

View File

@@ -1 +1 @@
Version 2.7.4-stable+timestamp.2013.10.16.08.55.58
Version 2.7.4-stable+timestamp.2013.10.16.08.59.54

View File

@@ -490,7 +490,7 @@ class UploadWidget(FormWidget):
DEFAULT_WIDTH = '150px'
ID_DELETE_SUFFIX = '__delete'
GENERIC_DESCRIPTION = 'file'
GENERIC_DESCRIPTION = 'file ## download'
DELETE_FILE = 'delete'
@classmethod
@@ -540,7 +540,7 @@ class UploadWidget(FormWidget):
else:
inp = DIV(inp,
SPAN('[',
A(cls.GENERIC_DESCRIPTION, _href=url),
A(current.T(cls.GENERIC_DESCRIPTION),_href=url),
']', _style='white-space:nowrap'),
br, image)
return inp
@@ -559,7 +559,7 @@ class UploadWidget(FormWidget):
:param download_url: url for the file download (default = None)
"""
inp = cls.GENERIC_DESCRIPTION
inp = current.T(cls.GENERIC_DESCRIPTION)
if download_url and value:
if callable(download_url):