microsoft / microsoft/winget-cli

Help usage string is missing space in localized resources

Open
#3,412 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Localization In-PR Issue-Bug
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

The resource with ID Usage, "usage: {0} {1}" is missing a space between {0} and {1} in all translations. For example, in Spanish it is uso: {0}{1}. So, instead of uso: winget install [[-q] <query>...] [<opciones>] we get uso: wingetinstall [[-q] <query>...] [<opciones>].

This happens with all languages despite having {Locked="{0} {1}"} in the comment, so we may be doing the comment wrong.

Steps to reproduce

Set language to Spanish or any supported language but English. Run winget install or any other command that shows help

Expected behavior

Outputs uso: winget install [[-q] <query>...] [<opciones>]

Actual behavior

Outputs uso: wingetinstall [[-q] <query>...] [<opciones>]

Environment
-

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the localized resource with ID Usage and its {Locked="{0} {1}"} comment. Reproduce the issue by setting Spanish or another non-English language and running winget install to inspect the help output. Done means supported translations preserve the space between {0} and {1}.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, localization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.