UX: add the word it's before standard spam names to form a complete sentence

This commit is contained in:
Régis Hanol 2014-11-05 22:46:07 +01:00
parent d104b72aee
commit 3d94808c00
2 changed files with 10 additions and 2 deletions

View File

@ -18,8 +18,12 @@ export default ObjectController.extend({
}.property('name_key'),
formattedName: function(){
return this.get('name').replace("{{username}}", this.get('controllers.flag.username'));
}.property('name'),
if (this.get("is_custom_flag")) {
return this.get('name').replace("{{username}}", this.get('controllers.flag.username'));
} else {
return I18n.t("flagging.formatted_name." + this.get('name_key'));
}
}.property('name', 'name_key', 'is_custom_flag'),
selected: function() {
return this.get('model') === this.get('controllers.flag.selected');

View File

@ -1324,6 +1324,10 @@ en:
submit_tooltip: "Submit the private flag"
take_action_tooltip: "Reach the flag threshold immediately, rather than waiting for more community flags"
cant: "Sorry, you can't flag this post at this time."
formatted_name:
off_topic: "It's Off-Topic"
inappropriate: "It's Inappropriate"
spam: "It's Spam"
custom_placeholder_notify_user: "Why does this post require you to speak to this user directly and privately? Be specific, be constructive, and always be kind."
custom_placeholder_notify_moderators: "Why does this post require moderator attention? Let us know specifically what you are concerned about, and provide relevant links where possible."
custom_message: