scottyhardy / docker-remote-desktop

Docker image for Remote Desktop server with audio support
MIT License
242 stars 123 forks source link

Add more language support #9

Open carmineyiu opened 3 years ago

carmineyiu commented 3 years ago

I want to add more language/locale support to Firefox or the Ubuntu. Should I build an image myself and add the 2nd run statement. or Should I add it later to Container, which mean I need to run locale command each time I restart container?

scottyhardy commented 2 years ago

I'm pretty sure if you start the container with the option --env=LANG=en_US.UTF-8 and substitute the language you want then that should work. If there's more work required for language support such as installing a package then you'd be better off modifying the Dockerfile, but I'm not sure if that's something ever required...?

scottyhardy commented 2 years ago

Ok, so it looks like you actually need to install the locales package to allow using the LANG environment var, so I’ll add that to the Dockerfile

scottyhardy commented 2 years ago

I've just added the locales package, so you'll need to add the --env=LANG=en_US.UTF-8 option to your run command, plus run locales-gen en_US.UTF-8 with your language code substituted for en_US.UTF-8.

huapox commented 2 years ago

try this: https://github.com/infrastlabs/docker-headless/blob/dev/_doc/mannual/b1-locale.md

docker run -it --rm -e L=zh_CN --net=host infrastlabs/docker-headless