diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-06-22 06:30:03 -0400 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-06-22 11:30:03 +0100 |
commit | ac4e9909fa4f3f6c6a0d1e537d6039115d07a5e0 (patch) | |
tree | 240f17fc31ec65e9967f36f907b0a9a30ec2e6ae /webapp/components/file_upload.jsx | |
parent | 42f28ab8e374137fe3f5d25424489d879d4724f8 (diff) | |
download | chat-ac4e9909fa4f3f6c6a0d1e537d6039115d07a5e0.tar.gz chat-ac4e9909fa4f3f6c6a0d1e537d6039115d07a5e0.tar.bz2 chat-ac4e9909fa4f3f6c6a0d1e537d6039115d07a5e0.zip |
Fixed incorrect formatting of numbers and plural words (#6696)
* Fixed incorrect formatting of numbers and plural words
* Removed unused i18n strings
* Fixed eslint errors
Diffstat (limited to 'webapp/components/file_upload.jsx')
-rw-r--r-- | webapp/components/file_upload.jsx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/webapp/components/file_upload.jsx b/webapp/components/file_upload.jsx index 07aa43a99..6b36e83fb 100644 --- a/webapp/components/file_upload.jsx +++ b/webapp/components/file_upload.jsx @@ -17,7 +17,7 @@ import {uploadFile} from 'actions/file_actions.jsx'; const holders = defineMessages({ limited: { id: 'file_upload.limited', - defaultMessage: 'Uploads limited to {count} files maximum. Please use additional posts for more files.' + defaultMessage: 'Uploads limited to {count, number} files maximum. Please use additional posts for more files.' }, filesAbove: { id: 'file_upload.filesAbove', @@ -94,13 +94,13 @@ class FileUpload extends React.Component { const clientId = Utils.generateId(); const request = uploadFile( - files[i], - files[i].name, - channelId, - clientId, - this.fileUploadSuccess.bind(this, channelId), - this.fileUploadFail.bind(this, clientId) - ); + files[i], + files[i].name, + channelId, + clientId, + this.fileUploadSuccess.bind(this, channelId), + this.fileUploadFail.bind(this, clientId) + ); const requests = this.state.requests; requests[clientId] = request; |