Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistently use single quotes in actionable commands in user-facing messages. #2887

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

mitchell-as
Copy link
Contributor

@mitchell-as mitchell-as commented Nov 21, 2023

TaskDX-2006 Replace backticks/tildes in locale messages with single quotes

Shells can interpret backticks in special circumstances, so use quotes to be safe.

…messages.

Shells can interpret backticks in special circumstances, so use quotes to be safe.
@mitchell-as mitchell-as reopened this Nov 21, 2023
@mitchell-as mitchell-as reopened this Nov 21, 2023
@mitchell-as mitchell-as requested a review from MDrakos November 21, 2023 18:15
@mitchell-as mitchell-as marked this pull request as ready for review November 21, 2023 18:15
@@ -65,7 +65,7 @@ func (r *Repo) CloneProject(owner, name, path string, out output.Outputer, an an
err = locale.WrapError(err, "err_clone_repo", "Could not clone repository with URL: {{.V0}}, error received: {{.V1}}.", *project.RepoURL, err.Error())
tipMsg := locale.Tl(
"err_tip_git_ssh-add",
"If you are using an SSH key please ensure it's configured by running `[ACTIONABLE]ssh-add <path-to-key>[/RESET]`.",
"If you are using an SSH key please ensure it's configured by running '[ACTIONABLE]ssh-add <path-to-key>[/RESET]'.",
Copy link
Member

Choose a reason for hiding this comment

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

This localization has the quotes before the tag whereas some others have it after the tag and around the command. Normally, I wouldn't be this nitpicky but since this PR is about consistency we should make sure they follow the same pattern. Additionally, is there any difference to the output where the quotes are placed? I assume not, but we should verify just to be sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You are right. I got confused reading my own ticket, thinking that single quotes either inside or outside the tags are okay (i.e. leave them be position-wise, just make sure they're single quotes).

However I agree that we should be consistent. The quotes should be outside the tags so that only the actionable text is highlighted. It makes it more clear what the user should type (no confusion on whether or not to type/include quotes, haha).

It better distinguishes what users should type.
@mitchell-as mitchell-as requested a review from MDrakos November 22, 2023 18:44
@mitchell-as mitchell-as merged commit 548e5cf into version/0-43-0-RC1 Nov 22, 2023
7 checks passed
@mitchell-as mitchell-as deleted the mitchell/dx-2006 branch November 22, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants