Updating translation file

This commit is contained in:
rachel-dtr 2019-04-05 11:22:06 -04:00
parent 53a66fdfab
commit 5401fd4769
2 changed files with 17 additions and 10 deletions

View File

@ -29,9 +29,9 @@ MESSAGES = {
"category": "success", "category": "success",
}, },
"new_portfolio_member": { "new_portfolio_member": {
"title_template": "Success!", "title_template": """{{ "flash.success" | translate }}""",
"message_template": """ "message_template": """
<p>You have successfully invited {{ new_member.user_name }} to the portfolio.</p> <p>{{ "flash.new_portfolio_member" | translate({ "user_name": new_member.user_name }) }}</p>
""", """,
"category": "success", "category": "success",
}, },
@ -112,20 +112,18 @@ MESSAGES = {
"category": "success", "category": "success",
}, },
"task_order_congrats": { "task_order_congrats": {
"title_template": "Congrats!", "title_template": """{{ "flash.congrats" | translate }}""",
"message_template": """ "message_template": """{{ "flash.new_portfolio" | translate }}""",
You've created a new JEDI portfolio and jump-started your first task order!
""",
"actions": """ "actions": """
{% from "components/icon.html" import Icon %} {% from "components/icon.html" import Icon %}
<div class='alert__actions'> <div class='alert__actions'>
<a href='{{ url_for("portfolios.show_portfolio", portfolio_id=portfolio.id) }}' class='icon-link'> <a href='{{ url_for("portfolios.show_portfolio", portfolio_id=portfolio.id) }}' class='icon-link'>
{{ Icon('shield') }} {{ Icon('shield') }}
<span>Go to my portfolio home page</span> <span>{{ "flash.portfolio_home" | translate }}</span>
</a> </a>
<a href='#next-steps' class='icon-link'> <a href='#next-steps' class='icon-link'>
{{ Icon('arrow-down') }} {{ Icon('arrow-down') }}
<span>Review next steps below</span> <span>{{ "flash.next_steps" | translate }}</span>
</a> </a>
</div> </div>
""", """,
@ -139,8 +137,8 @@ MESSAGES = {
"category": "error", "category": "error",
}, },
"portfolio_member_removed": { "portfolio_member_removed": {
"title_template": "Portfolio member deleted", "title_template": """{{ "flash.deleted_member" | translate }}""",
"message_template": "You have successfully deleted {{ member_name }} from the portfolio.", "message_template": """{{ "flash.delete_member_success" | translate({ "member_name": member_name }) }}""",
"category": "success", "category": "success",
}, },
} }

View File

@ -17,6 +17,15 @@ base_public:
header_title: JEDI Cloud header_title: JEDI Cloud
login: Log in login: Log in
title_tag: JEDI Cloud title_tag: JEDI Cloud
flash:
new_portfolio_member: You have successfully invited {user_name} to the portfolio.
success: Success!
congrats: Congrats!
new_portfolio: You've created a new JEDI portfolio and jump-started your first task order!
portfolio_home: Go to my portfolio home page
next_steps: Review next steps below
deleted_member: Portfolio member deleted
delete_member_success: You have successfully deleted {member_name} from the portfolio.
common: common:
back: Back back: Back
edit: Edit edit: Edit