From e4b01d5a4b1523a7fdf806626ba147e43c8994c8 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Oct 08 2012 01:01:33 +0000 Subject: Update `Functions/Prepare/prepare_updateLocales.sh' file. --- diff --git a/Scripts/Bash/Functions/Prepare/prepare_updateLocales.sh b/Scripts/Bash/Functions/Prepare/prepare_updateLocales.sh index 92b35c8..141275d 100755 --- a/Scripts/Bash/Functions/Prepare/prepare_updateLocales.sh +++ b/Scripts/Bash/Functions/Prepare/prepare_updateLocales.sh @@ -28,6 +28,13 @@ function prepare_updateLocales { - ${CLI_BASEDIR}/${CLI_NAME}.sh locale trunk/Scripts/Bash --update + # Realize localization tasks only when the current locale + # information is different to English language. Otherwise + # centos-art.sh would complain with an `English language cannot be + # localized to itself' message. Avoid this noise in the + # preparation stuff. + if [[ ! ${CLI_LANG_LL} =~ '^en' ]];then + ${CLI_BASEDIR}/${CLI_NAME}.sh locale trunk/Scripts/Bash --update + fi }