osixia / docker-phpLDAPadmin

phpLDAPadmin container image 🐳🌴
MIT License
842 stars 196 forks source link

Locale localization seems unavailable #73

Open YuXiaoCoder opened 4 years ago

YuXiaoCoder commented 4 years ago

I tried to change locales, such as lang = zh_CN http://phpldapadmin.sourceforge.net/wiki/index.php/Config:appearance:language I did a lot of testing, including installing SSH to modify configuration files directly, but it didn't work. I used osixia/phpldapadmin docker run \ -p 80:80 \ --name phpldapadmin-service \ --hostname phpldapadmin-service \ --link ldap-service:ldap-host \ --env PHPLDAPADMIN_LDAP_HOSTS=ldap-host \ --env PHPLDAPADMIN_HTTPS=false \ --detach osixia/phpldapadmin

bronco commented 2 years ago

Try to config locale in docker image, for example: sed -i -e 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/' /etc/locale.gen && dpkg-reconfigure --frontend=noninteractive locales