On my German Windows, when launching git gui
it occurs in hard-to-understand German. How can I change it to the default English? The Git GUI options menu item does not offer such an option.
问题:
回答1:
Just set the environment variable LANG
to the value en_US
.
回答2:
Just guessing: if it uses localization files, you can either delete German localization file (it most probably will fallback to English) or create duplicate of English and replace German with it.
回答3:
This is a very old question and I am aware that the proper answer has already been given and accepted, but in case someone skips it and decides to go with Petr Abdulin's approach (because the accepted answer didn't work for them, they didn't want to change their LANG
environment variable...), adding an extra extension to the currently used translation (not always common sense) will also work in this specific situation - making your system fallback to English and keep your non-English translation file intact.
When doing things in such a way, you always want to keep a backup of the original files, even if you think you will never ever need them again or assume it will automatically work just because it works in most situations. Don't copy files and blindly replace. Assume this will not work and you may need to retrieve your original file back without major hassle.
The choice for the extension is up to you. For German translations:
de.msg -> de.msg.bak (do not use .bak if it conflicts with auto-backups)
de.msg -> de.msg.original (non-standard, but slightly more intuitive)
To cancel the fallback process, simply remove the additional extension.
de.msg.bak -> de.msg
If you can properly set your configuration, don't touch the files and do that instead.
Only use this quickfix of your issue as a workaround for what you should actually do.