command-line-api icon indicating copy to clipboard operation
command-line-api copied to clipboard

[NETSDKE2E][Loc]With .NET8 preview RC2 installed on Loc OS, the string "description" is not localized in help text in CLI.

Open vdanche opened this issue 2 years ago • 2 comments

  1. install NET8 RC2 SDK: 8.0.100-rc.2.23456.6(runtime- 8.0.0-rc.2.23431.9)
    2.Run “dotnet build --help” in CLI. 3.Check if output contents are localized well.

All strings are localized well.

The string "description" are not localized.

German: image

Chinese: image

English: image

Note: in all help text, the string "description" is unlocalized. e.g: dotnet workload clean --help image

dotnet --info:

vdanche avatar Sep 11 '23 07:09 vdanche

The "Description:" text comes from the https://github.com/dotnet/command-line-api/ repository. The translations of many string resources are missing:

$ git grep --count '<target state="new">' 02fe27cd6a9b001c8feb7938e6ef4b3799745759 -- '*.xlf'
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.cs.xlf:19
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.de.xlf:19
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.es.xlf:2
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.fr.xlf:19
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.it.xlf:19
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.ja.xlf:19
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.ko.xlf:19
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.pl.xlf:19
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.pt-BR.xlf:19
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.ru.xlf:19
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.tr.xlf:19
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.zh-Hans.xlf:19
02fe27cd6a9b001c8feb7938e6ef4b3799745759:src/System.CommandLine/Properties/xlf/Resources.zh-Hant.xlf:19

KalleOlaviNiemitalo avatar Sep 11 '23 10:09 KalleOlaviNiemitalo

Thanks @KalleOlaviNiemitalo. CC @dotnet/system-commandline @jonsequitur @baronfel @jeffhandley

marcpopMSFT avatar Sep 11 '23 16:09 marcpopMSFT