mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 09:53:02 -04:00
universal: internationalization initial release
This commit is contained in:
@@ -41,6 +41,9 @@ if [[ "${LSIO_BASE}" == "alpine" ]] && [[ ! -f /usr/share/fonts/noto/NotoSansCJK
|
|||||||
lang
|
lang
|
||||||
elif [[ "${LSIO_BASE}" == "ubuntu" ]] && [[ ! -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]]; then
|
elif [[ "${LSIO_BASE}" == "ubuntu" ]] && [[ ! -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]]; then
|
||||||
# Install fonts and locales
|
# Install fonts and locales
|
||||||
|
sed -i \
|
||||||
|
'/locale/d' \
|
||||||
|
/etc/dpkg/dpkg.cfg.d/excludes
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
fonts-noto \
|
fonts-noto \
|
||||||
@@ -130,6 +133,9 @@ elif [[ "${LSIO_BASE}" == "ubuntu" ]] && [[ ! -f /usr/share/fonts/opentype/noto/
|
|||||||
language-pack-zh-hant
|
language-pack-zh-hant
|
||||||
elif [[ "${LSIO_BASE}" == "debian" ]] && [[ ! -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]]; then
|
elif [[ "${LSIO_BASE}" == "debian" ]] && [[ ! -f /usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc ]]; then
|
||||||
# Install fonts and locales
|
# Install fonts and locales
|
||||||
|
sed -i \
|
||||||
|
'/locale/d' \
|
||||||
|
/etc/dpkg/dpkg.cfg.d/docker
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
fonts-noto \
|
fonts-noto \
|
||||||
@@ -141,6 +147,7 @@ elif [[ "${LSIO_BASE}" == "debian" ]] && [[ ! -f /usr/share/fonts/opentype/noto/
|
|||||||
done
|
done
|
||||||
elif [[ "${LSIO_BASE}" == "fedora" ]] && [[ ! -d /usr/share/licenses/google-noto-cjk-fonts-common ]]; then
|
elif [[ "${LSIO_BASE}" == "fedora" ]] && [[ ! -d /usr/share/licenses/google-noto-cjk-fonts-common ]]; then
|
||||||
# Install fonts and locales
|
# Install fonts and locales
|
||||||
|
rm -f /etc/rpm/macros.image-language-conf
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
glibc-langpack-aa \
|
glibc-langpack-aa \
|
||||||
glibc-langpack-af \
|
glibc-langpack-af \
|
||||||
@@ -716,6 +723,9 @@ elif [[ "${LSIO_BASE}" == "fedora" ]] && [[ ! -d /usr/share/licenses/google-noto
|
|||||||
done
|
done
|
||||||
elif [[ "${LSIO_BASE}" == "arch" ]] && [[ ! -f /usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc ]]; then
|
elif [[ "${LSIO_BASE}" == "arch" ]] && [[ ! -f /usr/share/fonts/noto-cjk/NotoSansCJK-Regular.ttc ]]; then
|
||||||
# Install fonts
|
# Install fonts
|
||||||
|
sed -i \
|
||||||
|
'/locale/d' \
|
||||||
|
/etc/pacman.conf
|
||||||
pacman -Sy --noconfirm \
|
pacman -Sy --noconfirm \
|
||||||
glibc \
|
glibc \
|
||||||
noto-fonts-cjk \
|
noto-fonts-cjk \
|
||||||
|
|||||||
Reference in New Issue
Block a user