Other Language Support
How can I install the other language support? It seems only support English. Thanks!
Hi, You can change the Firefox interface language using these instructions: https://support.mozilla.org/en-US/kb/use-firefox-interface-other-languages-language-pack
Hi, The docker images missing some fonts so multi-language support is not so good. But add support for all language is too much hard, so here is a easy way to do this:
- add a path
/foo/barmapping to image path/usr/share/fonts/other - put user custom fonts to
/foo/bar - restart container
Then everything is done.
In my case, I simply add the " -v /usr/share/fonts:/usr/share/fonts" bind mount to docker run, as my command given below.
docker run -d -e PULSE_SERVER=tcp:$PULSE_SERVER --name=firefox -p 5800:5800 -v /docker/appdata/firefox:/config:rw -v /dev/shm:/dev/shm --security-opt seccomp=unconfined -v /usr/share/fonts:/usr/share/fonts jlesage/firefox
Setting the ENABLE_CJK_FONT environment variable to 1 could also do the trick.
This is cool!
将
ENABLE_CJK_FONT环境变量设置为1也可以解决问题。
Setting the
ENABLE_CJK_FONTenvironment variable to1could also do the trick.
The ENABLE_CJK_FONT = 1 dosen't seems to work.
Can you provide more details ? The container's log should show that the fonts are installed.
In my case the environment variable will attempt to install the font but will fail because it can't reach the download location at that point in the container startup. I am using this container within a QNAP NAS container station environment and I believe it doesn't bridge the network quick enough on container startup so it fails.
If I go into the container shell afterwards and run the /etc/cont-init.d/10-cjk-font.sh file manually, then it installs the font just fine. It's annoying because every time I have to update the container image or re-create it I have to go in and do it again.
My current solution is I map the directory /usr/share/fonts/wenquanyi to a host location, restarted container, ran the 10-cjk-font.sh script to re-install (into the mapped host volume), and so it will persist. When I re-create the container now, it will see the font already installed and everything works then.