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

How to change display language to english? #821

Closed
Just1n opened this issue May 17, 2017 · 18 comments
Closed

How to change display language to english? #821

Just1n opened this issue May 17, 2017 · 18 comments
Assignees

Comments

@Just1n
Copy link

Just1n commented May 17, 2017

I once used Win10&VS2017 in chinese, so I got display language in CMD was chinese, it looked like:

Microsoft (R) 测试执行命令行工具版本 15.0.0.0 版权所有 (C) Microsoft
Corporation。保留所有权利。

正在启动测试执行,请稍候...
ConsoleApp.Sqlite.Test.PrimeServiceIsPrimeShould.ReturnFalseGivenValueOf1
个失败 错误消息: Unable to get default constructor for class
ConsoleApp.Sqlite.Test.PrimeServiceIsPrimeShould.

总测试: 1。已通过: 0。失败: 1。已跳过: 0。 测试运行失败。 测试执行时间: 0.5729 秒

Then I changed my Win10's & VS2017's language to english, everything was fine (display in english) except the VSTest tools, it still displayed in chinese.

So my question is, how chould I change the language of VSTest tools to english?

Cache related? or language package of .Net Framework?

@Faizan2304
Copy link
Contributor

Faizan2304 commented May 18, 2017

@Just1n : Are you using dotnet.exe or vstest.console.exe from command line to run the test?
If the answer is dotnet.exe then can you check the output of command dotnet.exe -h. Is the output is coming in English?

@Faizan2304 Faizan2304 self-assigned this May 18, 2017
@Just1n
Copy link
Author

Just1n commented May 18, 2017

@Faizan2304 I'm using dotnet.exe, command is dotnet test.
dotnet -h results in english.
But dotnet test results in chinese.

PS. test result is chinese, but build output is english, see entire output:

PS D:\VS2017\Test\ConsoleApp.Sqlite.Test> dotnet test
Build started, please wait...
Build completed.

Test run for D:\VS2017\Test\ConsoleApp.Sqlite.Test\bin\Debug\netcoreapp1.1\ConsoleApp.Sqlite.Test.dll(.NETCoreApp,Version=v1.1)
Microsoft (R) 测试执行命令行工具版本 15.0.0.0
版权所有 (C) Microsoft Corporation。保留所有权利。

正在启动测试执行,请稍候...
ConsoleApp.Sqlite.Test.PrimeServiceIsPrimeShould.ReturnFalseGivenValueOf1 个失败
错误消息:
Unable to get default constructor for class ConsoleApp.Sqlite.Test.PrimeServiceIsPrimeShould.

总测试: 1。已通过: 0。失败: 1。已跳过: 0。
测试运行失败。
测试执行时间: 0.5889 秒

@Faizan2304
Copy link
Contributor

Thanks @Just1n.. I am looking into it and will update you soon.

@Just1n
Copy link
Author

Just1n commented May 26, 2017

Hi @Faizan2304 ,sorry for pushing.
Any updates for this?

@Faizan2304
Copy link
Contributor

@Just1n: I am working on it. I tried to create a local repro but no luck. I was doing with Japanese language.
Meanwhile I am in touch with .NET core team regarding this issue. I will update you once I will have something.

@Faizan2304
Copy link
Contributor

@Just1n : If you are block on this then you can use below workaround to get string in English

  1. Go to location where dotnet is installed
  2. Go to "dotnet-install-directory\sdk\sdk-version"
  3. Delete folder "zh-Hans" and "zh-Hant"

@codito
Copy link
Contributor

codito commented Jul 7, 2017

@Faizan2304 can you create a tracking issue for this in dotnet-cli?

@codito codito added this to the 15.5 milestone Jul 7, 2017
@staticdev
Copy link

staticdev commented Sep 11, 2017

I had the same problem with portuguese output. I tried @Just1n and @Faizan2304 solution deleting the folder /usr/share/dotnet/sdk/2.0.0/pt-BR, but it continues to output in portuguese!

@pvlakshm pvlakshm removed this from the 15.5 milestone Oct 30, 2017
@singhsarab
Copy link
Contributor

@Just1n with the latest dotnet, this should be fixed. Are we still hitting this issue ?

@quetzalcoatl
Copy link

Fixed in what way? I'm pretty sure we use most recent VS and net-framework update, but we still get messages in native language.

Is there any new commandline switch for changing language to english or something like that? If so, please tell us the details!

On the other hand, if you have just unified/corrected the os-language-detection, and the dotnet and dotnet-build and dotnet-test now speak the samel language as OS, then than this is not enough. We often use OSes with language chosen for native users (application testers), but then most people from the dev team are not native-speakers. It's still latin alphabet, not as impeding as seeing chinese or arabic glyphs, but still seeing all the test output spam in native language isn't really helping them in any way.

@cltshivash
Copy link
Contributor

@quetzalcoatl The output of dotnet test will be similar to dotnet build with respect to the language. There are no plans to add a switch to output in English.

@quetzalcoatl
Copy link

quetzalcoatl commented Dec 21, 2017

Therefore, if there's an issue of having it similar or unified, and if dotnet/build doesn't have it either, then instead of closing, you should rather move that issue (as 'enhancement' etc) to outer whole dotnet/build suite as opposed to having it limited to vstest..

@ghost
Copy link

ghost commented May 29, 2018

There are no plans to add a switch to output in English

It would be so much easier than actually trying to fix encoding issues

default

@nguerrera
Copy link

nguerrera commented Jul 31, 2018

CLI supports this from environment variable set DOTNET_CLI_UI_LANGUAGE=en. It will also respect VSLANG=<LCID>. If either override is in place, it will export both forms down to child processes, so vstest could respect that.

@smadala smadala reopened this Aug 1, 2018
@smadala smadala assigned mayankbansal018 and unassigned Faizan2304 Aug 1, 2018
@smadala
Copy link
Contributor

smadala commented Aug 1, 2018

@mayankbansal018 Can you take a look into this?

@smadala
Copy link
Contributor

smadala commented Aug 1, 2018

@mayankbansal018
Copy link
Contributor

The issue will be fixed, once we update test sdk in dotnet, which will be part of our next insertion

@yunusemreyazici
Copy link

@Just1n : If you are block on this then you can use below workaround to get string in English

  1. Go to location where dotnet is installed
  2. Go to "dotnet-install-directory\sdk\sdk-version"
  3. Delete folder "zh-Hans" and "zh-Hant"

It's worked Turkish language thanks for contrubute.

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

No branches or pull requests