diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 7faf7755..3f633791 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 305a7994..1dccdb6c 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() {