Skip to content
Snippets Groups Projects
Commit 2bb7a202 authored by Bob Mottram's avatar Bob Mottram
Browse files

Update translations

parent 803e4a3b
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ function install_translations {
do
COMMAND_NAME=$(echo $f | awk -F '/' '{print $2}')
for lang in "${language[@]}"
do
do
# convert json to mo
if [ -f /usr/bin/i18next-conv ]; then
if [ ! -f locale/${lang}/${COMMAND_NAME}.mo ]; then
......@@ -109,9 +109,11 @@ function install_translations {
fi
# install the mo
if [ -f locale/${lang}/${COMMAND_NAME}.mo ]; then
cp locale/${lang}/${COMMAND_NAME}.mo /usr/share/locale/${lang}/${COMMAND_NAME}.mo
fi
if [ -d /usr/share/locale/${lang} ]; then
if [ -f locale/${lang}/${COMMAND_NAME}.mo ]; then
cp locale/${lang}/${COMMAND_NAME}.mo /usr/share/locale/${lang}/${COMMAND_NAME}.mo
fi
fi
done
done
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment