Update translations
This commit is contained in:
parent
803e4a3b9a
commit
2bb7a202e9
10
translate
10
translate
|
@ -97,7 +97,7 @@ function install_translations {
|
||||||
do
|
do
|
||||||
COMMAND_NAME=$(echo $f | awk -F '/' '{print $2}')
|
COMMAND_NAME=$(echo $f | awk -F '/' '{print $2}')
|
||||||
for lang in "${language[@]}"
|
for lang in "${language[@]}"
|
||||||
do
|
do
|
||||||
# convert json to mo
|
# convert json to mo
|
||||||
if [ -f /usr/bin/i18next-conv ]; then
|
if [ -f /usr/bin/i18next-conv ]; then
|
||||||
if [ ! -f locale/${lang}/${COMMAND_NAME}.mo ]; then
|
if [ ! -f locale/${lang}/${COMMAND_NAME}.mo ]; then
|
||||||
|
@ -109,9 +109,11 @@ function install_translations {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install the mo
|
# install the mo
|
||||||
if [ -f locale/${lang}/${COMMAND_NAME}.mo ]; then
|
if [ -d /usr/share/locale/${lang} ]; then
|
||||||
cp locale/${lang}/${COMMAND_NAME}.mo /usr/share/locale/${lang}/${COMMAND_NAME}.mo
|
if [ -f locale/${lang}/${COMMAND_NAME}.mo ]; then
|
||||||
fi
|
cp locale/${lang}/${COMMAND_NAME}.mo /usr/share/locale/${lang}/${COMMAND_NAME}.mo
|
||||||
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue