nerves-web-kiosk / kiosk_system_rpi3

Nerves QtWebEngine Kiosk system for Raspberry Pi 3
Apache License 2.0
67 stars 25 forks source link

Internationalization #56

Open zacky1972 opened 4 years ago

zacky1972 commented 4 years ago

I love this cool kiosk system! I'd like to apply it to Japanese restaurants, but it requires internationalization. So, I'd like to make a PR. Let me know how should I read the code in this repository at first, in order to realize internationalization.

fhunleth commented 4 years ago

It might be possible to add the following to the nerves_defconfig to add Japanese fonts:

BR2_PACKAGE_NOTO_CJK=y

Alternately, you could add the necessary fonts to a rootfs_overlay directory in your project. I don't remember testing the CJK font package, but it installs the fonts to /usr/share/fonts/noto-cjk. See:

https://github.com/LeToteTeam/kiosk_system_rpi3/blob/master/package/noto-cjk/noto-cjk.mk#L13-L14

After you get the appropriate fonts installed, I assume that there are some browser messages that get shown, but I don't remember how many. Those would be found or configured in the webengine_kiosk project.

fhunleth commented 4 years ago

Thinking about it more, I would add the fonts to a test project's rootfs_overlay first. This project takes too long to build.

zacky1972 commented 4 years ago

I watched Scenic presentation at ElixirConf EU Virtual. I guess this issue is related to Scenic, deeply, isn't it? If so, I guess to fix this issue at the level of Scenic is better than your solution, isn't it?