From 4cd48ac048e70c51b83710a368d8110de517da13 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 14 Aug 2019 08:28:57 +0200 Subject: [PATCH] Tweak translation keys, always use full keys Makes them easier to grep when editing / removing. Refs #1750, #1788. --- framework/core/js/src/forum/utils/UserControls.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/core/js/src/forum/utils/UserControls.js b/framework/core/js/src/forum/utils/UserControls.js index 0e59ce834..1f190db2d 100644 --- a/framework/core/js/src/forum/utils/UserControls.js +++ b/framework/core/js/src/forum/utils/UserControls.js @@ -112,11 +112,15 @@ export default { showDeletionAlert(type) { const { username, email } = this.data.attributes; + const message = { + success: 'core.forum.user_controls.delete_success_message', + error: 'core.forum.user_controls.delete_error_message', + }[type]; app.alerts.show(new Alert({ type, children: app.translator.trans( - `core.forum.user.delete_alert_${type}`, { username, email } + message, { username, email } ) })); },