Commit c19adee8 authored by Paul Kaplan's avatar Paul Kaplan

Fix internationalization

parent 237c6ecb
...@@ -202,5 +202,14 @@ ...@@ -202,5 +202,14 @@
"report.tooShortError": "That's too short. Please describe in detail what's inappropriate or disrespectful about the project.", "report.tooShortError": "That's too short. Please describe in detail what's inappropriate or disrespectful about the project.",
"report.send": "Send", "report.send": "Send",
"report.sending": "Sending...", "report.sending": "Sending...",
"report.textMissing": "Please tell us why you are reporting this project" "report.textMissing": "Please tell us why you are reporting this project",
"comments.report": "Report",
"comments.delete": "Delete",
"comments.reportModal.title": "Report Comment",
"comments.reportModal.reported": "The comment has been reported, and the Scratch Team has been notified.",
"comments.reportModal.prompt": "Are you sure you want to report this comment?",
"comments.deleteModal.title": "Delete Comment",
"comments.deleteModal.body": "Delete this comment? If the comment is mean or disrespectful, please click Report instead to let the Scratch Team know about it.",
"comments.reply": "reply"
} }
...@@ -6,6 +6,7 @@ const classNames = require('classnames'); ...@@ -6,6 +6,7 @@ const classNames = require('classnames');
const FlexRow = require('../../../components/flex-row/flex-row.jsx'); const FlexRow = require('../../../components/flex-row/flex-row.jsx');
const Avatar = require('../../../components/avatar/avatar.jsx'); const Avatar = require('../../../components/avatar/avatar.jsx');
const FormattedRelative = require('react-intl').FormattedRelative; const FormattedRelative = require('react-intl').FormattedRelative;
const FormattedMessage = require('react-intl').FormattedMessage;
const ComposeComment = require('./compose-comment.jsx'); const ComposeComment = require('./compose-comment.jsx');
const DeleteCommentModal = require('../../../components/modal/comments/delete-comment.jsx'); const DeleteCommentModal = require('../../../components/modal/comments/delete-comment.jsx');
const ReportCommentModal = require('../../../components/modal/comments/report-comment.jsx'); const ReportCommentModal = require('../../../components/modal/comments/report-comment.jsx');
...@@ -109,14 +110,14 @@ class Comment extends React.Component { ...@@ -109,14 +110,14 @@ class Comment extends React.Component {
className="comment-delete" className="comment-delete"
onClick={this.handleDelete} onClick={this.handleDelete}
> >
Delete {/* TODO internationalize */} <FormattedMessage id="comments.delete" />
</span> </span>
) : null} ) : null}
<span <span
className="comment-report" className="comment-report"
onClick={this.handleReport} onClick={this.handleReport}
> >
Report {/* TODO internationalize */} <FormattedMessage id="comments.report" />
</span> </span>
</div> </div>
</FlexRow> </FlexRow>
...@@ -142,11 +143,12 @@ class Comment extends React.Component { ...@@ -142,11 +143,12 @@ class Comment extends React.Component {
className="comment-reply" className="comment-reply"
onClick={this.handleToggleReplying} onClick={this.handleToggleReplying}
> >
reply <FormattedMessage id="comments.reply" />
</span> </span>
) : null} ) : null}
</FlexRow> </FlexRow>
</div> </div>
{this.state.replying ? ( {this.state.replying ? (
<FlexRow className="comment-reply-row"> <FlexRow className="comment-reply-row">
<ComposeComment <ComposeComment
......
...@@ -6,13 +6,5 @@ ...@@ -6,13 +6,5 @@
"preview.penExtensionChip": "Pen", "preview.penExtensionChip": "Pen",
"preview.speechExtensionChip": "Google Speech", "preview.speechExtensionChip": "Google Speech",
"preview.translateExtensionChip": "Google Translate", "preview.translateExtensionChip": "Google Translate",
"preview.videoMotionChip": "Video Motion", "preview.videoMotionChip": "Video Motion"
"comments.report": "Report",
"comments.delete": "Delete",
"comments.reportModal.title": "Report Comment",
"comments.reportModal.reported": "The comment has been reported, and the Scratch Team has been notified.",
"comments.reportModal.prompt": "Are you sure you want to report this comment?",
"comments.deleteModal.title": "Delete Comment",
"comments.deleteModal.body": "Delete this comment? If the comment is mean or disrespectful, please click Report instead to let the Scratch Team know about it."
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment