Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the simply-static domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6121
树莓派系统语言设置成中文

树莓派系统语言设置成中文

步骤:

1.安装中文字体

sudo apt-get -y install fonts-wqy-zenhei

2.设置显示中文

sudo raspi-config

选择:4 Localisation Options –> I1 Change Locale
操作提示:按空格键在前面打勾或去掉勾(星号=勾),
PageUp 和 PageDown快速翻页,
Tab键跳到OK按钮上

去掉en_GB.UTF-8 UTF-8,
勾上:“en_US.UTF-8 UTF-8”、“zh_CN.UTF-8 UTF-8”、“zh_CN.GBK GBK”(只勾选这三个) >>>>>然后ok
下一屏幕默认语言选 zh_CN.UTF-8>>>>>然后ok

树莓派 系统语言设置成中文 失败,没反应?
也有人是例外:

重启之后没反应?依然是英文?

在根目录下找到 /etc/profile
修改profile文件,添加以下两行.以便重启之后也能生效:

export LANG=zh_CN.utf8
export LC_ALL=zh_CN.utf8

注意: /etc/profile的修改需要root权限才能修改!