Skip to content

Use no periods for partial phrases, like other providers#17

Merged
Fryguy merged 1 commit intoManageIQ:masterfrom
jrafanie:more-consistent-helper-validation-phrases-without-period
Mar 2, 2026
Merged

Use no periods for partial phrases, like other providers#17
Fryguy merged 1 commit intoManageIQ:masterfrom
jrafanie:more-consistent-helper-validation-phrases-without-period

Conversation

@jrafanie
Copy link
Copy Markdown
Member

@jrafanie jrafanie commented Mar 2, 2026

Note, this is fairly inconsistent across providers but when we see inconsistences, we should try to pick which way to go and since most providers have an incomplete sentence in these validation and helper texts, it makes sense to try to keep this non-sentence structure.

I was noticing the english message catalog had the same partial sentence with and without the period:

msgid "Must start with a letter and contain only letters, numbers, and underscores"
msgstr ""

msgid "Must start with a letter and contain only letters, numbers, and underscores."
msgstr ""

See: ManageIQ/manageiq#23665

Note, this is fairly inconsistent across providers but when we see
inconsistences, we should try to pick which way to go and since most providers
have an incomplete sentence in these validation and helper texts, it makes
sense to try to keep this non-sentence structure.

I was noticing the english message catalog had the same partial sentence with
and without the period:

```
msgid "Must start with a letter and contain only letters, numbers, and underscores"
msgstr ""

msgid "Must start with a letter and contain only letters, numbers, and underscores."
msgstr ""
```

See: ManageIQ/manageiq#23665
:label => _('Name'),
:isRequired => true,
:helperText => _('Must start with a letter and contain only letters, numbers, and underscores.'),
:helperText => _('Must start with a letter and contain only letters, numbers, and underscores'),
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See line 20 below... these were duplicated but one had a period.

:offText => _('No'),
:isDisabled => current_state != 'on',
:helperText => _('Snapshotting the memory is only available if the VM is powered on.')
:helperText => _('Snapshotting the memory is only available if the VM is powered on')
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, I removed the period since this is often a phrase, partial sentence, or command.

@miq-bot
Copy link
Copy Markdown
Member

miq-bot commented Mar 2, 2026

Checked commit jrafanie@e292560 with ruby 3.3.10, rubocop 1.56.3, haml-lint 0.69.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@Fryguy Fryguy merged commit 7b83878 into ManageIQ:master Mar 2, 2026
2 checks passed
@Fryguy Fryguy self-assigned this Mar 2, 2026
@jrafanie jrafanie deleted the more-consistent-helper-validation-phrases-without-period branch March 2, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants