From d861797d66542ad653625cf39eec2ebd8f31651b Mon Sep 17 00:00:00 2001 From: 2-4601 Date: Sat, 23 Apr 2016 21:35:04 +0300 Subject: [PATCH] i18n 'Permanently delete this conversation?' // FREEBIE --- _locales/en/messages.json | 4 ++++ js/views/conversation_view.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 7faf7755829..3f63379108b 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 305a799409f..1dccdb6c77f 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() {