1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-27 09:25:10 +03:00

Merge pull request #6989 from nixocio/ui_update_string_cap

Update strings to follow `sentence capitalization` style

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-05-12 20:53:04 +00:00 committed by GitHub
commit 12a04bf42e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 4 deletions

View File

@ -35,6 +35,7 @@ Have questions about this document or anything not covered here? Feel free to re
- functions should adopt camelCase
- constructors/classes should adopt PascalCase
- constants to be exported should adopt UPPERCASE
- For strings, we adopt the `sentence capitalization` since it is a (patternfly style guide)[https://www.patternfly.org/v4/design-guidelines/content/grammar-and-terminology#capitalization].
## Setting up your development environment

View File

@ -64,7 +64,7 @@ function VariablesField({
{promptId && (
<StyledCheckboxField
id="template-ask-variables-on-launch"
label={i18n._(t`Prompt On Launch`)}
label={i18n._(t`Prompt on launch`)}
name="ask_variables_on_launch"
/>
)}

View File

@ -45,7 +45,7 @@ function FieldWithPrompt({
</div>
<StyledCheckboxField
id={promptId}
label={i18n._(t`Prompt On Launch`)}
label={i18n._(t`Prompt on launch`)}
name={promptName}
/>
</FieldHeader>

View File

@ -143,7 +143,7 @@ function JobTemplateDetail({ i18n, template }) {
<Link to={`/inventories/${inventorykind}/${id}/details`}>
{summary_fields.inventory.name}
</Link>
<span> {i18n._(t`(Prompt on Launch)`)}</span>
<span> {i18n._(t`(Prompt on launch)`)}</span>
</Fragment>
) : (
<Link to={`/inventories/${inventorykind}/${id}/details`}>

View File

@ -88,7 +88,7 @@ function WorkflowJobTemplateDetail({ template, i18n }) {
<Link to={`/inventories/${inventorykind}/${inventoryId}/details`}>
<Label>{summary_fields.inventory.name}</Label>
</Link>
<span> {i18n._(t`(Prompt on Launch)`)}</span>
<span> {i18n._(t`(Prompt on launch)`)}</span>
</>
) : (
<Link to={`/inventories/${inventorykind}/${inventoryId}/details`}>