-
Windows 10 x64. My system's displayed language and preferred language are both Chinese, but git displays in English. Tried googling how to change git language, and every response is based on Linux (add a env variable "LANG=[locale code]"). Somehow I decided to try adding such a variable in my Windows which didn't work. Is it possible to change Git for Windows's display language in the console? If yes, how? edit: if it's relevant, I'm using Windows Command Prompt, not Git Bash. edit: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You definitely want to update.
This is not supported by Git for Windows out of the box. The translations are built, but they are simply not included in the Git for Windows installer. I zipped them up here: git-2.40.0-l18n.zip (watch out, it's ~3MB) If you unpack them into your installation (you need to do that in an elevated session, e.g. by pressing 🪟, typing "Git Bash", then pressing Ctrl+Shift+Enter, then invoking $ LANG=zh_CN git log -h
用法:git log [<选项>] [<版本范围>] [[--] <路径>...]
或:git show [<选项>] <对象>...
-q, --quiet 不显示差异输出
--source 显示源
--use-mailmap 使用邮件映射文件
--mailmap --use-mailmap 的别名
--clear-decorations 清除所有之前定义的修饰过滤器
--decorate-refs <模式>
只修饰与 <模式> 匹配的引用
--decorate-refs-exclude <模式>
不修饰和 <模式> 匹配的引用
--decorate[=...] 修饰选项
-L <range:file> 跟踪 <文件> 中 <开始>,<结束> 范围内的行或函数 :<函数名> 的演变 |
Beta Was this translation helpful? Give feedback.
-
oh, that's the i see that there's no |
Beta Was this translation helpful? Give feedback.
You definitely want to update.
This is not supported by Git for Windows out of the box. The translations are built, but they are simply not included in the Git for Windows installer. I zipped them up here: git-2.40.0-l18n.zip (watch out, it's ~3MB)
If you unpack them into your installation (you need to do that in an elevated session, e.g. by pressing 🪟, typing "Git Bash", then pressing Ctrl+Shift+Enter, then invoking
cd / && unzip ~/Downloads/git-2.40.0-l18n.zip
), you can use them by setting the environment variableLANG
: