jesseduffield / lazygit

simple terminal UI for git commands
MIT License
50.85k stars 1.79k forks source link

Can't manually switch the language to English on Windows #1511

Open HTD opened 2 years ago

HTD commented 2 years ago

Describe the bug Well, that's it. I'm Polish, SOME of my Windows locale (like time, date and number formats) are set to Polish, but the display language is set to English. Why? Because I'm bilingual and I don't quite understand some poor translations.

In LazyGit - the Polish translation is horrible. I can't find an option to switch it to English.

To Reproduce Use Windows. Set system locale except display language to Polish. Enjoy random funny words on the screen ;)

Expected behavior The program should be displayed in English because:

Desktop (please complete the following information):

Ryooooooga commented 2 years ago

https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md

gui:
  language: 'en' # only available in master

Or you can improve the translation yourself.

https://github.com/jesseduffield/lazygit/blob/master/pkg/i18n/polish.go

HTD commented 2 years ago

I got the config directory with lazygit -cd. I found an empty config.yml there. I added the setting, but it didn't work. Then I tried to change other options from default configuration, but it also didn't work. It seems like lazygit doesn't load that configuration at all. What am I doing wrong?

Ryooooooga commented 2 years ago

What happens when you press the o key in the status panel?

HTD commented 2 years ago

OK, my changed config is opened, and I see the changes work. Just not the language option.

HTD commented 2 years ago

So, I translated all messages. I might have left some minor bugs, but it's... at least now it's in Polish. I still think that some Polish speakers will prefer the English version because our native Git terminology is not very popular here. It was pretty tricky to find the right sources for some translations.

jesseduffield commented 2 years ago

Testing this out on master the config value works for me