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

[NETSDKE2E][Loc]With NET 10 preview2 SDK installed in loc OS, messages are not localized when building project in CLI. #11512

Open
v-ivyzuo opened this issue Feb 27, 2025 · 1 comment
Assignees

Comments

@v-ivyzuo
Copy link
Member

v-ivyzuo commented Feb 27, 2025

Issue Description

With NET 10 preview2 SDK installed in loc OS, message are not localized when building project in CLI.

Steps to Reproduce

  1. Install 10.0.100-preview.2.25126.21 in Loc OS(e.g Chinese OS)
  2. Run "dotnet new console" and "dotnet build --no-restore" in CLI.
  3. Check if the messages are localized well.

Expected Behavior

The messages are localized well.

Actual Behavior

messages are not localized.

Chinese(Repro)

Image

German(Repro)

Image

EN:

Image

Analysis

No response

Versions & Configurations

dotnet --info
.NET SDK:
Version: 10.0.100-preview.2.25126.21
Commit: f4f293c695
Workload version: 10.0.100-manifests.849cb335
MSBuild version: 17.14.0-preview-25126-06+e18e7f0af

运行时环境:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-preview.2.25126.21\

已安装 .NET 工作负载:
没有要显示的已安装工作负载。
配置为在安装新清单时使用 workload sets。
工作负载配置为使用工作负载版本进行安装和更新,但未找到任何版本。运行 "dotnet workload restore" 以安装工作负载版本。

Host:
Version: 10.0.0-preview.2.25125.14
Architecture: x64
Commit: 143f7e2ca0

.NET SDKs installed:
10.0.100-preview.2.25126.21 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.0-preview.2.25126.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.0-preview.2.25125.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 10.0.0-preview.2.25126.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

@v-ivyzuo v-ivyzuo changed the title [NETSDKE2E][Loc]With NET 10 preview2 SDK installed in loc OS(Chinese), messages are not localized when building project in CLI. [NETSDKE2E][Loc]With NET 10 preview2 SDK installed in loc OS, messages are not localized when building project in CLI. Feb 27, 2025
@JaynieBai
Copy link
Member

JaynieBai commented Mar 3, 2025

Words are translated in

<trans-unit id="BuildFinished">
<source>Build {0} in {1}s</source>
<target state="translated">在 {1} 秒内生成 {0}</target>
<note>
Overall build summary
{0}: BuildResult_X (below)
{1}: duration in seconds with 1 decimal point
's' should reflect the localized abbreviation for seconds
</note>
</trans-unit>

<trans-unit id="ProjectFinished_NoTF">
<source>{0}{1} {2} ({3}s)</source>
<target state="translated">{0}{1} {2} ({3} 秒)</target>
<note>
Project finished summary.
{0}: indentation - few spaces to visually indent row
{1}: project name
{2}: BuildResult_{X}
{3}: duration in seconds with 1 decimal point
's' should reflect the localized abbreviation for seconds
</note>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants