From a2e815afd926d982ae78e08f9b29a0aebd176d7c Mon Sep 17 00:00:00 2001 From: dandds Date: Wed, 10 Apr 2019 16:51:01 -0400 Subject: [PATCH] move application deletion alert content into translations file --- atst/utils/flash.py | 7 +++---- translations.yaml | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/atst/utils/flash.py b/atst/utils/flash.py index dd32f5cc..7970cc03 100644 --- a/atst/utils/flash.py +++ b/atst/utils/flash.py @@ -149,11 +149,10 @@ MESSAGES = { "category": "success", }, "application_deleted": { - "title_template": "Success!", + "title_template": translate("flash.success"), "message_template": """ - You have successfully deleted the {{ application_name }} application. - To view the retained activity log, visit the portfolio administration - page. Undo this action. + {{ "flash.application.deleted" | translate({"application_name": application_name}) }} + Undo. """, "category": "success", }, diff --git a/translations.yaml b/translations.yaml index c1e5de97..cf3a3fdb 100644 --- a/translations.yaml +++ b/translations.yaml @@ -28,6 +28,8 @@ flash: delete_member_success: You have successfully deleted {member_name} from the portfolio. new_ppoc_title: Primary point of contact updated new_ppoc_message: You have successfully added {ppoc_name} as the primary point of contact. You are no longer the PPoC. + application: + deleted: You have successfully deleted the {application_name} application. To view the retained activity log, visit the portfolio administration page. common: back: Back cancel: Cancel