Move strings to translations file

This commit is contained in:
Patrick Smith 2019-02-10 13:06:31 -05:00
parent 7862cb9c2c
commit aee6b47cd2
3 changed files with 22 additions and 14 deletions

View File

@ -2,11 +2,11 @@
{% from "components/text_input.html" import TextInput %} {% from "components/text_input.html" import TextInput %}
{% set secondary_breadcrumb = application.name + ' Application Settings' %} {% set secondary_breadcrumb = 'portfolios.applications.existing_application_title' | translate({ "application_name": application.name }) %}
{% block application_content %} {% block application_content %}
<div class='subheading'>Application Settings</div> <div class='subheading'>{{ 'portfolios.applications.settings_heading' | translate }}</div>
<div class="panel"> <div class="panel">
<div class="panel__content"> <div class="panel__content">
@ -15,10 +15,10 @@
{% include "fragments/edit_application_form.html" %} {% include "fragments/edit_application_form.html" %}
<div class="block-list application-list-item"> <div class="block-list application-list-item">
<header class="block-list__header block-list__header--grow"> <header class="block-list__header--grow">
<h2 class="block-list__title">Application Environments</h2> <h2 class="block-list__title">{{ 'portfolios.applications.environments_heading' | translate }}</h2>
<p> <p>
Each environment created within an application is an enclave of cloud resources that is logically separated from each other for increased security. {{ 'portfolios.applications.environments_description' | translate }}
</p> </p>
</header> </header>
@ -35,7 +35,7 @@
</div> </div>
<div class="action-group"> <div class="action-group">
<button class="usa-button usa-button-primary" tabindex="0" type="submit">Update Application</button> <button class="usa-button usa-button-primary" tabindex="0" type="submit">{{ 'portfolios.applications.update_button_text' | translate }}</button>
</div> </div>
</form> </form>
</div> </div>

View File

@ -5,13 +5,15 @@
{% from "components/modal.html" import Modal %} {% from "components/modal.html" import Modal %}
{% from "components/text_input.html" import TextInput %} {% from "components/text_input.html" import TextInput %}
{% set secondary_breadcrumb = 'New Application' %} {% set secondary_breadcrumb = 'portfolios.applications.new_application_title' | translate %}
{% block application_content %} {% block application_content %}
{% set modalName = "newApplicationConfirmation" %} {% set modalName = "newApplicationConfirmation" %}
{% include "fragments/flash.html" %} {% include "fragments/flash.html" %}
<div class='subheading'>{{ 'portfolios.applications.settings_heading' | translate }}</div>
<div class="panel"> <div class="panel">
<div class="panel__content"> <div class="panel__content">
@ -22,7 +24,7 @@
<h1>Create application !{ name }</h1> <h1>Create application !{ name }</h1>
<p> <p>
When you click <em>Create Application</em>, the environments When you click <em>{{ 'portfolios.applications.create_button_text' | translate }}</em>, the environments
<span v-for="(environment, index) in environments"> <span v-for="(environment, index) in environments">
<strong>!{environment.name}</strong><template v-if="index < (environments.length - 1)">, </template> <strong>!{environment.name}</strong><template v-if="index < (environments.length - 1)">, </template>
</span> </span>
@ -30,7 +32,7 @@
</p> </p>
<div class='action-group'> <div class='action-group'>
<button autofocus type='submit' class='action-group__action usa-button' tabindex='0'>Create Application</button> <button autofocus type='submit' class='action-group__action usa-button' tabindex='0'>{{ 'portfolios.applications.create_button_text' | translate }}</button>
<button type='button' v-on:click="handleCancelSubmit" class='icon-link action-group__action' tabindex='0'>Cancel</button> <button type='button' v-on:click="handleCancelSubmit" class='icon-link action-group__action' tabindex='0'>Cancel</button>
</div> </div>
{% endcall %} {% endcall %}
@ -44,10 +46,10 @@
</div> </div>
<div class="block-list application-list-item"> <div class="block-list application-list-item">
<header class="block-list__header block-list__header--grow"> <header class="block-list__header--grow">
<h2 class="block-list__title">Application Environments</h2> <h2 class="block-list__title">{{ 'portfolios.applications.environments_heading' | translate }}</h2>
<p> <p>
Each environment created within an application is an enclave of cloud resources that is logically separated from each other for increased security. {{ 'portfolios.applications.environments_description' | translate }}
</p> </p>
</header> </header>
@ -71,7 +73,7 @@
</div> </div>
<div class="action-group"> <div class="action-group">
<button class="usa-button usa-button-primary" tabindex="0" type="submit">Create Application</button> <button class="usa-button usa-button-primary" tabindex="0" type="submit">{{ 'portfolios.applications.create_button_text' | translate }}</button>
</div> </div>
</form> </form>
</new-application> </new-application>

View File

@ -257,7 +257,6 @@ forms:
name_length_validation_message: Portfolio names must be at least 4 and not more than 100 characters name_length_validation_message: Portfolio names must be at least 4 and not more than 100 characters
fragments: fragments:
edit_application_form: edit_application_form:
existing_application_title: 'Edit {application_name} application'
explain: 'AT-AT allows you to create multiple applications within a portfolio. Each application can then be broken down into its own customizable environments.' explain: 'AT-AT allows you to create multiple applications within a portfolio. Each application can then be broken down into its own customizable environments.'
new_application_title: Add a new application new_application_title: Add a new application
edit_user_form: edit_user_form:
@ -487,6 +486,13 @@ portfolios:
app_settings_text: App Settings app_settings_text: App Settings
team_text: Team team_text: Team
csp_console_text: CSP Console csp_console_text: CSP Console
existing_application_title: '{application_name} Application Settings'
new_application_title: New Application
settings_heading: Application Settings
environments_heading: Environments
environments_description: Each environment created within an application is logically separated from one another for easier management and security.
update_button_text: Save Changes
create_button_text: Create Application
testing: testing:
example_string: Hello World example_string: Hello World
example_with_variables: 'Hello, {name}!' example_with_variables: 'Hello, {name}!'