1.1 --- a/tools/install.sh Fri Apr 22 23:38:31 2016 +0200
1.2 +++ b/tools/install.sh Fri Apr 22 23:57:47 2016 +0200
1.3 @@ -130,11 +130,22 @@
1.4
1.5 # Locale directory.
1.6
1.7 -if [ ! "$NO_LOCALE_DIR" ] && [ -e "locale" ]; then
1.8 - for DIR in "locale/"*"/LC_MESSAGES" ; do
1.9 - mkdir -p "$INSTALL_DIR/$DIR"
1.10 - cp "$DIR/"*.mo "$INSTALL_DIR/$DIR/"
1.11 - done
1.12 +if [ ! "$NO_LOCALE_DIR" ]; then
1.13 +
1.14 + # Make the locale directory if it does not exist.
1.15 +
1.16 + if [ ! -e "locale" ]; then
1.17 + "tools/i18n_format.sh"
1.18 + fi
1.19 +
1.20 + # Only copy the translations if they do now exist.
1.21 +
1.22 + if [ -e "locale" ]; then
1.23 + for DIR in "locale/"*"/LC_MESSAGES" ; do
1.24 + mkdir -p "$INSTALL_DIR/$DIR"
1.25 + cp "$DIR/"*.mo "$INSTALL_DIR/$DIR/"
1.26 + done
1.27 + fi
1.28 fi
1.29
1.30 # Run the scheduling module update tool to regenerate the manifest module.