-
-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
git: add option to enable i18n support #32008
Conversation
I'd rather make it non-optional (i.e. mandatory) so all users can benefit from it. |
👍 on making |
I would also support making |
Fun chicken and egg problem on El Capitan. Host's |
|
I think this change was not fully tested. I use on my Mac multiple languages: English, German, Russian and Greek. The value of LC_CTYPE is en_US.UTF-8. Before this change all messages of GIT were in English. After this change GIT uses now Russian. It is not a big problem for me because I understand Russian. But it is not the right behaviour: Стандартные команды Git используемые в различных ситуациях: |
Please report the output of LANG=en_US.UTF-8 git --version
LANG=ru_RU.UTF-8 git --version |
@dconnolly |
user:~ $ locale user:~ $ LANG=en_US.UTF-8 git --version user:~ $ LANG=en_US.UTF-8 git --help user:~ $ LANG=ru_RU.UTF-8 git --help |
Cool. Looks like it's working as expected. Use |
Not from my point of view. I would expect that the primary language is used, as it is configured in the Mac OS preferences. I my case English is the primary language and Russian is the second language. But I think it is acceptable to set an environment variable. Thanks a lot! |
@sjackman I'm experiencing similar issue. I'm using Mac set to English with German as second locale in Germany. After updating to this version of git, all messages are suddenly in German, while everything else is (as it should be) in English. Also I'm at a loss from where git is taking the locale information.
So why does git use German?! Again, no other tool is using German locale. |
I really can't say where it's getting the language configuration from. You can add to the file export LANG=en_US.UTF-8 |
Same problem here. Git (2.19.0_1) unexpectedly started talking to me in Spanish. In System Preferences > Language & Region I have "Preferred languages" in this order:
|
Rather than switching to an older version of export LANG=en_US.UTF-8 |
Thanks for the suggestion. I understand that specifying To me it looks like an issue with git itself or somewhere someone wrongly interprets preferred languages list in preferences and taking the last option, instead of primary one. |
Possibly it's a bug in either |
Sure. No worries. I can workaround it by setting a git alias which sets LANG for each git invocation. At least temporarily until this gets fixed. I'm afraid I'm not the last person who will complain here. |
I must admit I find this pretty annoying. I switch all my development tools to English, because the German translations tend to be rather horrible. And, you have a much harder time searching for error messages if they're translated. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?Fix for #31980