better localizaion of sqlhtml, thanks Martin
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-08-19 10:12:29) dev
|
Version 2.00.0 (2012-08-19 10:18:00) dev
|
||||||
|
|||||||
+6
-6
@@ -484,12 +484,12 @@ class UploadWidget(FormWidget):
|
|||||||
requires = attr["requires"]
|
requires = attr["requires"]
|
||||||
if requires == [] or isinstance(requires, IS_EMPTY_OR):
|
if requires == [] or isinstance(requires, IS_EMPTY_OR):
|
||||||
inp = DIV(inp, '[',
|
inp = DIV(inp, '[',
|
||||||
A(UploadWidget.GENERIC_DESCRIPTION, _href = url),
|
A(current.T(UploadWidget.GENERIC_DESCRIPTION), _href = url),
|
||||||
'|',
|
'|',
|
||||||
INPUT(_type='checkbox',
|
INPUT(_type='checkbox',
|
||||||
_name=field.name + cls.ID_DELETE_SUFFIX,
|
_name=field.name + cls.ID_DELETE_SUFFIX,
|
||||||
_id=field.name + cls.ID_DELETE_SUFFIX),
|
_id=field.name + cls.ID_DELETE_SUFFIX),
|
||||||
LABEL(cls.DELETE_FILE,
|
LABEL(current.T(cls.DELETE_FILE),
|
||||||
_for=field.name + cls.ID_DELETE_SUFFIX),
|
_for=field.name + cls.ID_DELETE_SUFFIX),
|
||||||
']', br, image)
|
']', br, image)
|
||||||
else:
|
else:
|
||||||
@@ -2035,9 +2035,9 @@ class SQLFORM(FORM):
|
|||||||
elif field.type=='upload':
|
elif field.type=='upload':
|
||||||
if value:
|
if value:
|
||||||
if callable(upload):
|
if callable(upload):
|
||||||
value = A('File', _href=upload(value))
|
value = A(current.T('file'), _href=upload(value))
|
||||||
elif upload:
|
elif upload:
|
||||||
value = A('File',
|
value = A(current.T('file'),
|
||||||
_href='%s/%s' % (upload, value))
|
_href='%s/%s' % (upload, value))
|
||||||
else:
|
else:
|
||||||
value = ''
|
value = ''
|
||||||
@@ -2455,9 +2455,9 @@ class SQLTABLE(TABLE):
|
|||||||
r = 'DATA'
|
r = 'DATA'
|
||||||
elif field.type == 'upload':
|
elif field.type == 'upload':
|
||||||
if upload and r:
|
if upload and r:
|
||||||
r = A('file', _href='%s/%s' % (upload, r))
|
r = A(current.T('file'), _href='%s/%s' % (upload, r))
|
||||||
elif r:
|
elif r:
|
||||||
r = 'file'
|
r = current.T('file')
|
||||||
else:
|
else:
|
||||||
r = ''
|
r = ''
|
||||||
elif field.type in ['string','text']:
|
elif field.type in ['string','text']:
|
||||||
|
|||||||
Reference in New Issue
Block a user