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
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 - functions should adopt camelCase
- constructors/classes should adopt PascalCase - constructors/classes should adopt PascalCase
- constants to be exported should adopt UPPERCASE - 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 ## Setting up your development environment

View File

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

View File

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

View File

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

View File

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