summaryrefslogtreecommitdiffstats
path: root/web/react/components/post_deleted_modal.jsx
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2016-02-02 19:39:56 -0300
committerElias Nahum <nahumhbl@gmail.com>2016-02-02 19:39:56 -0300
commitd424c9eaf12653332f15afa2cb9dfc6684fa95d8 (patch)
treecbec268ebd8df0f5ddeb1e9d7e177bcfc1644b65 /web/react/components/post_deleted_modal.jsx
parent320fe1c39240644ce15fa2a436ac4a5591b95083 (diff)
downloadchat-d424c9eaf12653332f15afa2cb9dfc6684fa95d8.tar.gz
chat-d424c9eaf12653332f15afa2cb9dfc6684fa95d8.tar.bz2
chat-d424c9eaf12653332f15afa2cb9dfc6684fa95d8.zip
PLT-7: Refactoring frontend (chunk 10)
- Modals - Fix bug on msg_typing - Add missing translations in es.json for EE
Diffstat (limited to 'web/react/components/post_deleted_modal.jsx')
-rw-r--r--web/react/components/post_deleted_modal.jsx20
1 files changed, 17 insertions, 3 deletions
diff --git a/web/react/components/post_deleted_modal.jsx b/web/react/components/post_deleted_modal.jsx
index 3723bcaba..218f57eb5 100644
--- a/web/react/components/post_deleted_modal.jsx
+++ b/web/react/components/post_deleted_modal.jsx
@@ -4,6 +4,9 @@
import UserStore from '../stores/user_store.jsx';
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
import Constants from '../utils/constants.jsx';
+
+import {FormattedMessage} from 'mm-intl';
+
var ActionTypes = Constants.ActionTypes;
export default class PostDeletedModal extends React.Component {
@@ -65,11 +68,19 @@ export default class PostDeletedModal extends React.Component {
className='modal-title'
id='myModalLabel'
>
- {'Comment could not be posted'}
+ <FormattedMessage
+ id='post_delete.notPosted'
+ defaultMessage='Comment could not be posted'
+ />
</h4>
</div>
<div className='modal-body'>
- <p>{'Someone deleted the message on which you tried to post a comment.'}</p>
+ <p>
+ <FormattedMessage
+ id='post_delete.someone'
+ defaultMessage='Someone deleted the message on which you tried to post a comment.'
+ />
+ </p>
</div>
<div className='modal-footer'>
<button
@@ -77,7 +88,10 @@ export default class PostDeletedModal extends React.Component {
className='btn btn-primary'
data-dismiss='modal'
>
- {'Okay'}
+ <FormattedMessage
+ id='post_delete.okay'
+ defaultMessage='Okay'
+ />
</button>
</div>
</div>