From 29df6b60be4bbf764baf3d6f818f9e91579c9326 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. --- js/src/forum/utils/UserControls.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/src/forum/utils/UserControls.js b/js/src/forum/utils/UserControls.js index 0e59ce834..1f190db2d 100644 --- a/js/src/forum/utils/UserControls.js +++ b/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 } ) })); },