Looking in the Mono source on Github, it looks like there is a Japanese localization for mcs. In particular, ja.po specifies a translation for error CS2009, which can be generated when mcs is run with no input files specified. (see https://github.com/mono/mono/blob/master/po/mcs/ja.po and search for "No files to compile were specified")
When I install Mono 3.4.0 and run "mcs" on the command line, the error is output in English.
My computer is running with a Japanese locale. In Terminal, my LANG variable is "ja_JP.UTF-8". If I set LANG variable to "ja_JP", or "ja", or "JP", etc nothing seems to affect mcs's output.
Browsing through driver.cs, context.cs, report.cs and settings.cs in the mcs source tree, I can't really find any place where mcs looks at the system local, uses Gettext or Catalog.GetString, etc. It looks like mcs has translations, but doesn't actually use them?
- Steps to reproduce:
1. Run bash in the Japanese locale, LANG=ja_JP.UTF-8
2. run "mcs" on the command line with no arguments.
- Expected results:
"error CS2008: コンパイルするファイルが指定されていません"
- Actual results:
"error CS2008: No files to compile were specified"
Just bumping this up since its status isn't changing. I have reproduced the bug on Mono for Windows, as well. Both LANG and LANGUAGE were set to ja, and ja_JP, but the CS2008 error output is still in English.
Windows 7, Japanese edition, on a 2013 MacBook Pro.