From a379d7020ebd9ad59de2563578e68bb0cdfb2e02 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 16 Oct 2013 09:00:42 -0500 Subject: [PATCH] fixed issue 1723:Missing translation for the word file in the upload widget, thanks mweissen --- VERSION | 2 +- gluon/sqlhtml.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 5c4e24e6..b9cc12be 100644 --- a/VERSION +++ b/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 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 60aec2ad..c961135e 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -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):