From 6d4cd59e0b75da38d25a97c9a290e5fe798c0b93 Mon Sep 17 00:00:00 2001 From: rachel-dtr Date: Wed, 10 Apr 2019 10:13:47 -0400 Subject: [PATCH] Updating PPoC language --- atst/utils/flash.py | 4 ++-- translations.yaml | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/atst/utils/flash.py b/atst/utils/flash.py index 2b242987..d2b42979 100644 --- a/atst/utils/flash.py +++ b/atst/utils/flash.py @@ -3,8 +3,8 @@ from atst.utils.localization import translate MESSAGES = { "primary_point_of_contact_changed": { - "title_template": "Primary Point of Contact Changed", - "message_template": "You have successfully added {{ ppoc_name }} as Point of Contact. You are no longer the PoC.", + "title_template": translate("flash.new_ppoc_title"), + "message_template": """{{ "flash.new_ppoc_message" | translate({ "ppoc_name": ppoc_name }) }}""", "category": "success", }, "invitation_resent": { diff --git a/translations.yaml b/translations.yaml index bc42fabc..c9cfe378 100644 --- a/translations.yaml +++ b/translations.yaml @@ -26,6 +26,8 @@ flash: next_steps: Review next steps below deleted_member: Portfolio member deleted 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. common: back: Back cancel: Cancel @@ -323,14 +325,14 @@ fragments: title: Primary point of contact (PPoC) subtitle: The PPoC has the ability to edit all aspects of a portfolio and is the only one who can manage the PPoC role. update_btn: Update - assign_user_button_text: Assign User + assign_user_button_text: Assign Member update_ppoc_confirmation_title: Confirmation - update_ppoc_title: Update Primary Point of Contact. + update_ppoc_title: Update primary point of contact confirm_alert: - title: Once you assign a new point of contact, you will no longer be able to request portfolio deactivation or manage the point of contact role. + title: Once you assign a new PPoC, you will no longer be able to request portfolio deactivation or manage the PPoC role. alert: title: Warning! - message: Selecting a new primary contact gives that member full access to the portfolio and removes your PoC rights. Please be sure you want to proceed. + message: Selecting a new PPoC gives that member full access to the portfolio and removes your ability to manage the PPoC role. The rest of your permissions will remain untouched. Please be sure you want to proceed. login: ccpo_logo_alt_text: Cloud Computing Program Office Logo certificate_selection: