brunophilipe / Cakebrew

Manage your Homebrew formulas with style using Cakebrew.
http://www.cakebrew.com
GNU General Public License v3.0
4.8k stars 254 forks source link

Can I switch language in application? #189

Closed hsupu closed 7 years ago

hsupu commented 7 years ago

The localization of Chinese is incomplete, so the English version is better for me.

I find nowhere to switch language, Could you add the feature in the future? THANKS!

brunophilipe commented 7 years ago

macOS Applications have standardized localization support, and implementing such feature would violate these standards.

However you can run a command in the terminal to change a setting for Cakebrew only that will tell macOS to launch it in a different language than that installed. You can do that by running the following command in your terminal:

For English:

defaults write com.brunophilipe.Cakebrew AppleLanguages '("en")'

For Portuguese:

defaults write com.brunophilipe.Cakebrew AppleLanguages '("pt")'

For German:

defaults write com.brunophilipe.Cakebrew AppleLanguages '("de")'

For Simplified Chinese:

defaults write com.brunophilipe.Cakebrew AppleLanguages '("zh-Hans")'

And etc...

After you have run this command, you can just launch Cakebrew normally.

To disable the specific language and return to the system default, run the command:

defaults delete com.brunophilipe.Cakebrew AppleLanguages
hsupu commented 7 years ago

Learned, thank you! It does help me a lot!