Coder Social home page Coder Social logo

Other Language Support about docker-firefox HOT 8 OPEN

jlesage avatar jlesage commented on May 22, 2024
Other Language Support

from docker-firefox.

Comments (8)

qgymib avatar qgymib commented on May 22, 2024 3

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.

from docker-firefox.

jlesage avatar jlesage commented on May 22, 2024

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

from docker-firefox.

2015xli avatar 2015xli commented on May 22, 2024

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

from docker-firefox.

jlesage avatar jlesage commented on May 22, 2024

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

from docker-firefox.

2015xli avatar 2015xli commented on May 22, 2024

This is cool!

from docker-firefox.

ddd-zero avatar ddd-zero commented on May 22, 2024

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.

from docker-firefox.

jlesage avatar jlesage commented on May 22, 2024

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

from docker-firefox.

wchan-ranelagh avatar wchan-ranelagh commented on May 22, 2024

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.

from docker-firefox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.