fixed issue 1723:Missing translation for the word file in the upload widget, thanks mweissen
This commit is contained in:
2
VERSION
2
VERSION
@@ -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
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user