之前从英文改成了中文
export LANG=en_US xdg-user-dirs-gtk-update
弹出的窗口中勾选了 中=>英 和 "Don's ask me again"
然后执行 export LANG=zh_CN.UTF-8
以恢复显示中文内容
现在想恢复回来
~/.config
下有两个文件: ~/.config/user-dirs.dirs
和 ~/.config/user-dirs.locale
我按照 user-dirs.dirs
里的提示把里面的对应项修改成中文后, 重新登陆, 无效。我把那两个文件删除后重新登陆, 它们又自动生成了, 还是无效。
我想写成自动化的脚本,所以想知道, 除了这两个文件外, 还需要修改其他的文件吗? 如何修改呢, 谢谢大家!
怪我咯2017-04-17 11:12:03
English to Chinese
export LC_ALL=zh_CN.UTF-8 xdg-user-dirs-update --force
Chinese to English
export LC_ALL=en_US.UTF-8 xdg-user-dirs-update --force
Re-open a terminal to operate, and then close it when you are done. There is no need to restore the Chinese display or anything else.
---------
If you do not want to be prompted to update the directory after logging in again, execute echo zh_CN > ~/.config/user-dirs.locale
if the current environment is Chinese, and echo en_US > ~/.config/user-dirs.locale
if it is English.
As for why a new folder was created instead of renamed, this design may be intentional, see:
https://bugs.freedesktop.org/show_bug...
https://bugs.freedesktop.org/show_bug...
http://bugs.debian.org/cgi-bin/bugrep...
https://bugs.launchpad.net/ubuntu/ so...
Reference link:
http://freedesktop.org/wiki/Software/...
http://www.unix.com/man-page/opensola...
http://www.unix.com/man-page/opensola...
http://www.unix.com/man-page/OpenSola...
https://wiki.archlinux.org/index.php/...