docker-firefox icon indicating copy to clipboard operation
docker-firefox copied to clipboard

Other Language Support

Open joneschoi opened this issue 7 years ago • 8 comments

How can I install the other language support? It seems only support English. Thanks!

joneschoi avatar Jan 17 '19 13:01 joneschoi

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

jlesage avatar Jan 18 '19 11:01 jlesage

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/bar mapping to image path /usr/share/fonts/other
  • put user custom fonts to /foo/bar
  • restart container

Then everything is done.

qgymib avatar Jan 28 '20 04:01 qgymib

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

2015xli avatar Jul 17 '20 17:07 2015xli

Setting the ENABLE_CJK_FONT environment variable to 1 could also do the trick.

jlesage avatar Jul 17 '20 21:07 jlesage

This is cool!

2015xli avatar Jul 18 '20 18:07 2015xli

ENABLE_CJK_FONT环境变量设置为1也可以解决问题。

Setting the ENABLE_CJK_FONT environment variable to 1 could also do the trick.

The ENABLE_CJK_FONT = 1 dosen't seems to work.

ddd-zero avatar Jan 15 '22 18:01 ddd-zero

Can you provide more details ? The container's log should show that the fonts are installed.

jlesage avatar Jan 17 '22 13:01 jlesage

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.

wchan-ranelagh avatar Feb 11 '22 03:02 wchan-ranelagh