Using the UploadWigdet the word 'file' cannot be translated. I think this
looks unprofessional.

I found


(1) Change line 2423, sqlhtml.py to

                elif field.type == 'upload':
                    if upload and r:
                        r = A(*current.T('file'*), _href='%s/%s' % (upload,
r))
                     elif r:
                        r = *current.T('file')*
                    else:
                        r = ''

solves one problem.

(2() Line 446, sqlhtml.py  contains 'file' again and 'delete':

class UploadWidget(FormWidget):
     _class = 'upload'

    DEFAULT_WIDTH = '150px'
    ID_DELETE_SUFFIX = '__delete'
    GENERIC_DESCRIPTION =* 'file'*
    DELETE_FILE = *'delete'*

Using current.T throws

AttributeError:  'thread._local' object has no attribute 'T'

Soory, I have no proposal.

Regards, Martin

-- 



Reply via email to