mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
universal: internationalization initial release
This commit is contained in:
@@ -40,6 +40,7 @@ if [[ "${LSIO_BASE}" == "alpine" ]] && [[ ! -f /usr/share/fonts/noto/NotoSansCJK
|
|||||||
font-noto-emoji \
|
font-noto-emoji \
|
||||||
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
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
fonts-noto \
|
fonts-noto \
|
||||||
@@ -128,6 +129,7 @@ elif [[ "${LSIO_BASE}" == "ubuntu" ]] && [[ ! -f /usr/share/fonts/opentype/noto/
|
|||||||
language-pack-zh-hans \
|
language-pack-zh-hans \
|
||||||
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
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
fonts-noto \
|
fonts-noto \
|
||||||
@@ -138,6 +140,7 @@ elif [[ "${LSIO_BASE}" == "debian" ]] && [[ ! -f /usr/share/fonts/opentype/noto/
|
|||||||
localedef -i ${LOCALE} -f UTF-8 ${LOCALE}.UTF-8
|
localedef -i ${LOCALE} -f UTF-8 ${LOCALE}.UTF-8
|
||||||
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
|
||||||
dnf install -y \
|
dnf install -y \
|
||||||
glibc-langpack-aa \
|
glibc-langpack-aa \
|
||||||
glibc-langpack-af \
|
glibc-langpack-af \
|
||||||
@@ -712,16 +715,11 @@ elif [[ "${LSIO_BASE}" == "fedora" ]] && [[ ! -d /usr/share/licenses/google-noto
|
|||||||
localedef -i ${LOCALE} -f UTF-8 ${LOCALE}.UTF-8
|
localedef -i ${LOCALE} -f UTF-8 ${LOCALE}.UTF-8
|
||||||
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
|
||||||
pacman -Sy --noconfirm \
|
pacman -Sy --noconfirm \
|
||||||
noto-fonts-cjk \
|
noto-fonts-cjk \
|
||||||
noto-fonts-emoji \
|
noto-fonts-emoji \
|
||||||
noto-fonts-extra
|
noto-fonts-extra
|
||||||
# Remove pacman lang stripping
|
|
||||||
sed -i '/locale/d' /etc/pacman.conf
|
|
||||||
sed -i '/lang/d' /etc/pacman.conf
|
|
||||||
# Re-install glibc
|
|
||||||
pacman -Sy --noconfirm \
|
|
||||||
glibc
|
|
||||||
# Generate locales
|
# Generate locales
|
||||||
for LOCALE in ${LOCALES}; do
|
for LOCALE in ${LOCALES}; do
|
||||||
echo "Generating Locale for ${LOCALE}"
|
echo "Generating Locale for ${LOCALE}"
|
||||||
|
|||||||
Reference in New Issue
Block a user