问题详情

问题描述: You are not able to choose some of the languages, because locales for them are not installed on the web server.

中文语言无法选择,这是因为docker容器环境中缺少中文语言包,安装中文语言包即可

CentOS:

yum -y install kde-l10n-Chinese
yum -y reinstall glibc-common
localedef -c -f UTF-8 -i zh_CN zh_CN.utf8

修改Dockerfile

FROM zabbix/zabbix-server-mysql 
RUN yum -y install kde-l10n-Chinese && yum -y reinstall glibc-common && localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
ENV LC_ALL zh_CN.utf8 

Ubuntu:

apt-get install language-pack-zh-hant language-pack-zh-hans

zijiangYoung
1 声望0 粉丝