diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 7faf77558..3f6337910 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -139,6 +139,10 @@ "message": "Delete Messages", "description": "Menu item for deleting messages, title case." }, + "deleteConversationConfirmation": { + "message": "Permanently delete this conversation?", + "description": "Confirmation dialog text that asks the user if they really wish to delete the conversation. Answer buttons use the strings 'ok' and 'cancel'. The deletion is permanent, i.e. it cannot be undone." + }, "sessionEnded": { "message": "Secure session reset", "description": "This is a past tense, informational message. In other words, your secure session has been reset." diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 305a79940..1dccdb6c7 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -232,7 +232,7 @@ }, destroyMessages: function(e) { - this.confirm("Permanently delete this conversation?").then(function() { + this.confirm(i18n('deleteConversationConfirmation')).then(function() { this.model.destroyMessages(); this.remove(); }.bind(this)).catch(function() {