Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other Language Support #12

Open
joneschoi opened this issue Jan 17, 2019 · 8 comments
Open

Other Language Support #12

joneschoi opened this issue Jan 17, 2019 · 8 comments

Comments

@joneschoi
Copy link

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

@jlesage
Copy link
Owner

jlesage commented Jan 18, 2019

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

@qgymib
Copy link

qgymib commented Jan 28, 2020

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.

@2015xli
Copy link

2015xli commented Jul 17, 2020

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

@jlesage
Copy link
Owner

jlesage commented Jul 17, 2020

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

@2015xli
Copy link

2015xli commented Jul 18, 2020

This is cool!

@ddd-zero
Copy link

ddd-zero commented Jan 15, 2022

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.

@jlesage
Copy link
Owner

jlesage commented Jan 17, 2022

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

@wchan-ranelagh
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants