更改谷歌浏览器语言?

joe*_*ptg 4 google-chrome language

今天我安装了新的 Ubuntu 12.10(全新安装),我注意到 Google Chrome 使用了错误的语言。我是葡萄牙人,来自葡萄牙,Google Chrome 现在支持巴西葡萄牙语(这有点烦人)。

我以前遇到过这个问题,但下载操作系统的 DVD 版本可以解决这个问题(谷歌浏览器将在 DVD 安装的 PT-PT 中)。

问题是 Ubuntu 12.10 没有 DVD 特定版本......那么,我如何手动更改 Google Chrome 的语言?

deF*_*tas 6

在您/usr/share/applications/google-chrome-stable.desktop将“exec”命令更改为以下内容时:

Exec=sh -c "export LANGUAGE=pt_BR.UTF-8 && /usr/bin/google-chrome-stable %U &"
Run Code Online (Sandbox Code Playgroud)

  • 谢谢你。你的回答工作得很好。顺便说一句,实际上只提供 LANGUAGE 作为局部变量就足够了,例如`sh -c "LANGUAGE=en /opt/google/chrome/google-chrome %U"` (2认同)