diff --git a/package/base/sysfiles/sysfiles.conf b/package/base/sysfiles/sysfiles.conf index 97948ac95..a978f0ad8 100644 --- a/package/base/sysfiles/sysfiles.conf +++ b/package/base/sysfiles/sysfiles.conf @@ -137,9 +137,11 @@ EOT echo "Exporting LINGUAS environment variable ..." if [ "$ROCKCFG_LINGUAS" == "all" ] ; then - echo "# LINGUAS=" > $root/etc/profile.d/linguas + echo "# export LINGUAS=" > $root/etc/profile.d/linguas + elif [ "$ROCKCFG_LINGUAS" == "none" ] ; then + echo "export LINGUAS=" > $root/etc/profile.d/linguas else - echo "LINGUAS=\"$ROCKCFG_LINGUAS\"" > $root/etc/profile.d/linguas + echo "export LINGUAS=\"$ROCKCFG_LINGUAS\"" > $root/etc/profile.d/linguas fi if [ $stagelevel -gt 1 ] ; then diff --git a/scripts/config.hlp b/scripts/config.hlp index b495763d8..fa830d351 100644 --- a/scripts/config.hlp +++ b/scripts/config.hlp @@ -76,6 +76,15 @@ ROCKCFG_TARGET This target is intended to build a not blown up server distribution to install web-, mail-, fileserver or similar. +ROCKCFG_LINGUAS + Here you can choose the languages for which message translation + catalogs should be installed. + + Note that not all programs provide translations for each language. + + If set to 'all', all available translations will be installed, and + none if set to 'none'. + ROCKCFG_PARALLEL Select this option if you want to perform a parallel build on several machines or if you build on a multiprocessor machine. diff --git a/scripts/parse-config b/scripts/parse-config index eefd87829..0cf5423a3 100644 --- a/scripts/parse-config +++ b/scripts/parse-config @@ -97,6 +97,8 @@ export BUILDCXX="c++" BUILD_CXX="c++" HOSTCXX="c++" HOST_CXX="c++" if [ "$ROCKCFG_LINGUAS" == "all" ] ; then unset LINGUAS +elif [ "$ROCKCFG_LINGUAS" == "none" ] ; then + export LINGUAS= else export LINGUAS="$ROCKCFG_LINGUAS" fi