r-lib / rig

The R Installation Manager
MIT License
588 stars 23 forks source link

Local Language instead of english #216

Open John15321 opened 3 months ago

John15321 commented 3 months ago

Hi, I installed R using rig and for some reason, all of the R tool are now speaking to me in Polish...?

Don't get me wrong I appreciate the availability of local languages in software however I would like to be able to choose the language (aka switch to English, as I have everything on my development machine in English). Is there a way to do that?

gaborcsardi commented 3 months ago

What is your OS and OS version? What are the R versions you installed? What is the version of rig?

mbstadler commented 3 months ago

That would indeed be useful (I prefer the English version because of easier-to-google error messages). I am using rig version 0.6.0 on macOS 14.4 and R versions 4.3-arm64/4.4-arm64.

gaborcsardi commented 3 months ago

@mbstadler We can probably add an option for that on macOS, installers default to the system language.

In the meanwhile you can probably work around it by putting this in .Renviron:

LC_ALL=en_US.UTF-8
mbstadler commented 3 months ago

@gaborcsardi Setting LC_ALL=en_US.UTF-8 in ~/.Renviron does the trick for me - thanks for the tipp!

John15321 commented 3 months ago

Also setting the LANGUAGE in /Library/Frameworks/R.framework/Resources/etc/Renviron as 'en' also works for me

LANGUAGE=en
gaborcsardi commented 3 months ago

I'll still add an option for this at some point.