How does git choose its language?


#1

There are two questions on stackoverflow about a brew installed git changing its language (in one case to french, in the other to russian):


In both cases the LANG environment variables are not set. Why is this so? Why isn’t the default language english?


(Sean Molenaar) #2

The default language is the system language. It won’t know to target English until you tell it to.


#3

Well, the system language IS English in my case. As far as I know, there is nothing French or Russian on my system. So the question remains, why does git choose French or Russian?


(Sean Molenaar) #4

That seems more like a question for the git forum. As far as I know it depends on the LANG variable that is set by the system.