Fine-Uploader; make missing strings translateable
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 30 Jan 2014 22:08:06 +0000 (23:08 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 30 Jan 2014 22:08:06 +0000 (23:08 +0100)
webcit/static/t/edit/message/attachments_pane.html

index 873a35c31b66b58cfad790186f1599c5ed0b7d5d..334836ebc175eea8ea87481b0349cb659baf56e3 100644 (file)
@@ -29,9 +29,22 @@ function createUploader()
            request: {
                endpoint: 'upload_attachment?nonce=<?NONCE>&template=edit_message_upl_att'
            },
+           text: {
+               formatProgress: "<?_('{percent}% of {total_size}')>",
+               failUpload: "<?_('Upload failed')>",
+               waitingForResponse: "<?_('Processing...')>",
+               paused: "<?_('Paused')>"
+           },
+           messages: {
+               tooManyFilesError: "<?_('You may only drop one file.')>",
+               unsupportedBrowser: "<?_('Unrecoverable error - the browser does not permit uploading of any kind.')>"
+           },
            deleteFile: {
                enabled: true,
                forceConfirm: true,
+               confirmMessage: "<?_('Are you shure you want to delete {filename}?')>",
+               deletingFailedText: "<?_('failed to delete {filename}!')>",
+               deletingStatusText: "<?_('deleting {filename}')>",
                endpoint: 'remove_attachment?nonce=<?NONCE>&template=edit_message_upl_att&which_attachment='
            }
        });