deform icon indicating copy to clipboard operation
deform copied to clipboard

File choosing button not translated

Open dwt opened this issue 6 years ago • 3 comments

Looking at https://github.com/Pylons/deform/blob/010cb72d6b84e5b22321da831d5036b36d49eae0/deform/static/scripts/file_upload.js#L28 and https://github.com/Pylons/deform/blob/010cb72d6b84e5b22321da831d5036b36d49eae0/deform/static/scripts/file_upload.js#L29 it seems those values are not translatable.

Which is sad. Can you do anything about it?

dwt avatar Feb 20 '19 16:02 dwt

It looks like there is a way to do it. Here's a valid link that is referenced in file_upload.js. It appears that we should not use any strings in the JavaScript and put them in Deform's Chameleon template. I would support a PR and any changes needed to tests.

stevepiercy avatar Feb 20 '19 18:02 stevepiercy

Just a note, the implementations for each version of Deform and Bootstrap have subtle differences. I would accept one PR for either version, along with functional tests. A deformdemo example would not be necessary.

stevepiercy avatar Aug 26 '20 10:08 stevepiercy