Skip to content

Incomplete French (fr) translation: RequiredOptionWasNotProvided not translated #2822

Description

@JPBlanc

Description

The French satellite assembly (fr/System.CommandLine.resources.dll) shipped with System.CommandLine 2.0.9 contains untranslated strings.

Current behavior

When CultureInfo.DefaultThreadCurrentUICulture is set to fr-FR and a required option is missing:

Option '--input' is required.

Expected behavior

The message should be in French:

L'option '--input' est obligatoire.

Analysis

Inspecting the fr/System.CommandLine.resources.dll satellite assembly shows that RequiredOptionWasNotProvided still holds the English text, along with several other untranslated keys (ArgumentConversionCannotParse, HelpOptionDescription, HelpOptionsRequiredLabel, SuggestionsTokenNotMatched, etc.).

Environment

  • System.CommandLine version: 2.0.9
  • .NET version: net10.0

Suggested fix

Update the French resource file to translate all missing keys, at minimum:

  • RequiredOptionWasNotProvided = L'option '{0}' est obligatoire.
  • HelpOptionsRequiredLabel = (OBLIGATOIRE)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions