fixed issue 1723:Missing translation for the word file in the upload widget, thanks mweissen
This commit is contained in:
@@ -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
|
||||||
|
|||||||
+3
-3
@@ -490,7 +490,7 @@ class UploadWidget(FormWidget):
|
|||||||
|
|
||||||
DEFAULT_WIDTH = '150px'
|
DEFAULT_WIDTH = '150px'
|
||||||
ID_DELETE_SUFFIX = '__delete'
|
ID_DELETE_SUFFIX = '__delete'
|
||||||
GENERIC_DESCRIPTION = 'file'
|
GENERIC_DESCRIPTION = 'file ## download'
|
||||||
DELETE_FILE = 'delete'
|
DELETE_FILE = 'delete'
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -540,7 +540,7 @@ class UploadWidget(FormWidget):
|
|||||||
else:
|
else:
|
||||||
inp = DIV(inp,
|
inp = DIV(inp,
|
||||||
SPAN('[',
|
SPAN('[',
|
||||||
A(cls.GENERIC_DESCRIPTION, _href=url),
|
A(current.T(cls.GENERIC_DESCRIPTION),_href=url),
|
||||||
']', _style='white-space:nowrap'),
|
']', _style='white-space:nowrap'),
|
||||||
br, image)
|
br, image)
|
||||||
return inp
|
return inp
|
||||||
@@ -559,7 +559,7 @@ class UploadWidget(FormWidget):
|
|||||||
:param download_url: url for the file download (default = None)
|
: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 download_url and value:
|
||||||
if callable(download_url):
|
if callable(download_url):
|
||||||
|
|||||||
Reference in New Issue
Block a user