From 281e1dc119e6026eb9d6f363abffe44d2022b4a0 Mon Sep 17 00:00:00 2001 From: "ryan.kuba" Date: Thu, 13 Apr 2023 19:47:57 -0700 Subject: [PATCH] universal: internationalization initial release --- .../run | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/root/etc/s6-overlay/s6-rc.d/init-mod-universal-internationalization-install/run b/root/etc/s6-overlay/s6-rc.d/init-mod-universal-internationalization-install/run index 373609c..0fa1024 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-mod-universal-internationalization-install/run +++ b/root/etc/s6-overlay/s6-rc.d/init-mod-universal-internationalization-install/run @@ -41,6 +41,9 @@ if [[ "${LSIO_BASE}" == "alpine" ]] && [[ ! -f /usr/share/fonts/noto/NotoSansCJK lang elif [[ "${LSIO_BASE}" == "ubuntu" ]] && [[ ! -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]]; then # Install fonts and locales + sed -i \ + '/locale/d' \ + /etc/dpkg/dpkg.cfg.d/excludes apt-get update apt-get install -y \ fonts-noto \ @@ -130,6 +133,9 @@ elif [[ "${LSIO_BASE}" == "ubuntu" ]] && [[ ! -f /usr/share/fonts/opentype/noto/ language-pack-zh-hant elif [[ "${LSIO_BASE}" == "debian" ]] && [[ ! -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]]; then # Install fonts and locales + sed -i \ + '/locale/d' \ + /etc/dpkg/dpkg.cfg.d/docker apt-get update apt-get install -y \ fonts-noto \ @@ -141,6 +147,7 @@ elif [[ "${LSIO_BASE}" == "debian" ]] && [[ ! -f /usr/share/fonts/opentype/noto/ done elif [[ "${LSIO_BASE}" == "fedora" ]] && [[ ! -d /usr/share/licenses/google-noto-cjk-fonts-common ]]; then # Install fonts and locales + rm -f /etc/rpm/macros.image-language-conf dnf install -y \ glibc-langpack-aa \ glibc-langpack-af \ @@ -716,6 +723,9 @@ elif [[ "${LSIO_BASE}" == "fedora" ]] && [[ ! -d /usr/share/licenses/google-noto done elif [[ "${LSIO_BASE}" == "arch" ]] && [[ ! -f /usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc ]]; then # Install fonts + sed -i \ + '/locale/d' \ + /etc/pacman.conf pacman -Sy --noconfirm \ glibc \ noto-fonts-cjk \