Git cli in Russian after brew upgrade

git change language mac
git config language
git bash lang
git language

My git cli switched to russian after brew upgrade. I've tried to find why, or how, but no clue.

$ git --version
git version 2.19.0

How do I fix this!?

My locale doesn't mention russian at all

$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

It happened because of removing "NO_GETTEXT=1" line here: https://github.com/Homebrew/homebrew-core/commit/2049390786eff5dd50862ee63ddca822dc138c64.

I think setting LC_* is not an option that's why I recommend either remove /usr/local/Cellar/git/{version}/share/locale/es directory or rebuild git from sources.

If you want to rebuild git from sources you need to edit homebrew git formula:

$ brew uninstall git
$ brew edit git

<<<
- depends_on "gettext"
+ depends_on "gettext" => :optional
<<<
- args = %W[
+ ENV["NO_GETTEXT"] = "1" if build.without? "gettext"
+
+ args = %W[
<<<
:wq

$ brew install -s git

then your git will be built with NO_GETTEXT=1 flag that disables translations.

Hope it will help.

I have commented corresponding thread with that issue: https://github.com/Homebrew/homebrew-core/issues/31980#issuecomment-425894125. Voting may help to fix it.

How does git choose its language?, Recently, I've started to observe the same behavior, particularly with git (and after updating to MacOS Mojave). At first, I thought it's an issue with git itself. So, I've  GitHub CLI. gh is GitHub on the command line, and it's now available in beta. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code. Availability. While in beta, GitHub CLI is available for repos hosted on GitHub.com only.

A simple workaround is to add the following line to your ~/.bashrc or ~/.zshrc file:

alias git="LANG=\"en_US.UTF-8\" git"

Then execute source ~/.bashrc (or source ~/.zshrc) and voila :)

Homebrew and Git - Wrong language on the command line, My git cli switched to russian after brew upgrade. I've tried to find why, or how, but no clue.How do I fix this!?My locale doesn't mention russian … Ok, now I’ll explain it, line after each line: brew update. Brew is the mainstream package manager for macOS, it provides all GNU softwares (many macOS tools like sed are outdated, GPL 2VS3 apple…), and many other CLI tools (I use it for mongoDB, redis, php, git, elixir…).

I added to ~/.bash_profile:

alias git="LANG=\"en_US.UTF-8\" git"

Then execute source ~/.bash_profile and git is in English at Terminal.

Git cli in Russian after brew upgrade, GitHub is home to over 50 million developers working together to host have a problem with brew install (or upgrade , reinstall ) a single, For example, I have en_RU locale and my git output became Russian. gettext will look for following files: share/locale/{en_RU,en,ru_RU,ru}/LC_MESSAGES/git.mo. Behaviour for brew cask upgrade: Same steps 1–5. For the ones that differ, run the uninstall and install steps. Uninstalling is necessary to avoid leaving old traces of it when uninstallation procedures change. If install fails (after uninstall), revert to previous version.

Homebrew/homebrew-core, Japanese; Mongolian; Dutch; Polish; Portuguese, Brazilian; Russian; Serbian (​Cyrillic) The extension can be downloaded and compiled from this GitHub repository. NOTE: You should always try and use the latest version of Phalcon and PHP as If you're using PHPBrew, you can install Phalcon using the following:. My git cli switched to russian after brew upgrade. I've tried to find why, or how, but no clue. $ git --version git version 2.19.0 How do I fix this!? My locale doesn't mention russian at all $

Installation, Language Settings · msysgit/msysgit Wiki · GitHub - Git-GUI does not allow you to Git cli in Russian after brew upgrade In both cases the LANG environment  After running brew update, you receive a Git error warning about untracked files or local changes that would be overwritten by a checkout or merge, followed by a list of files inside your Homebrew installation. This is caused by an old bug in in the update code that has long since been fixed.

how to set desired language in git-gui?, git change language, git has , Русский Russian If you just need the files you can download them as a zip from GitHub. After installing homebrew. brew install node. Option 2: Git. git clone git​://github.com/nodejs/node.git cd node . Semantic's NPM install script will automatically update Semantic UI to the latest version while preserving your site and  ran brew update and can still reproduce the problem? ran brew doctor, fixed all issues and can still reproduce the problem? ran brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link? if brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?

Comments
  • I don't have an answer, but on the bright side, if you ever land a software job in Moscow, you'll be ahead of the game :-)
  • What does echo $LANG print? Does running export LANG="en_US.UTF-8" (or some other English locale) fix your issue?
  • Related/dupe: stackoverflow.com/questions/11540815/…
  • @jujobs $LANG was empty, but setting it helped. Strange that it somehow changed with upgrading to a new version...
  • Great, thanks. Because secondary translations were moving me crazy. Living with a temp solution of export LANG="en_US.UTF-8
  • In my case I had to modify depends_on "gettext" :optional by depends_on "gettext" => :optional
  • This really helped me. Great, thanks!