]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Disable error page translation by default in builds
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 5 Jan 2014 20:19:06 +0000 (12:19 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 5 Jan 2014 20:19:06 +0000 (12:19 -0800)
There is no need for every build from VCS to have fresh translations.

Enable explicitly for snapshot and release scripts instead so that
translated template files are still available online and pre-translated
in the distributed packages.

configure.ac
mkrelease.sh
mksnapshot.sh
test-suite/buildtests/layer-04-noauth-everything.opts

index dd18fe3662f0c3a03c7d60b6dc65813fba554b59..9ac6dba2b13150e66124219fd227a2fbd446bfd2 100644 (file)
@@ -3322,15 +3322,14 @@ if test "x$ac_cv_header_sys_statvfs_h" = "xyes" ; then
 fi
 
 
-dnl Squid will usually attempt to translate when packaging or building from VCS 
+dnl Squid will not usually attempt to translate templates when building
 AC_ARG_ENABLE(translation,
- AS_HELP_STRING([--disable-translation],[Prevent Squid generating localized error page templates and manuals.
-                Which is usually tried, but may not be needed.]), [ 
-SQUID_YESNO([$enableval],
-     [unrecognized argument to --disable-translation: $enableval])
+ AS_HELP_STRING([--enable-translation],[Generate the localized error page templates and manuals.
+                Which can also be downloaded from http://www.squid-cache.org/Versions/langpack/.]), [ 
+  SQUID_YESNO([$enableval],
+     [unrecognized argument to --enable-translation: $enableval])
 ])
-dnl Squid now has .po translation capability, given the right toolkit
-if test "x${enable_translation:=yes}" = "xyes" ; then
+if test "x${enable_translation:=no}" = "xyes" ; then
   AX_WITH_PROG([PO2HTML],[po2html])
   AX_WITH_PROG([PO2TEXT],[po2txt])
 else
index 210265b806b277bba782faff51059438897c5a2b..7330c39cf1b316f80016ba8f7d506fbec8385875 100755 (executable)
@@ -66,7 +66,7 @@ g/squid_curtime/ s//${RELEASE_TIME}/
 w
 EOS
 
-./configure --silent
+./configure --silent --enable-translation
 make dist-all
 
 cd $startdir
index edf099cb7b95c0309f938b62f915b7a8144a9bca..db9ae3da5404621a4ed2a057d9f2aea3fae63eae 100755 (executable)
@@ -56,7 +56,7 @@ echo "TMPDIR: ${tmpdir}"
 
 ## Ignore extra build layers. General features building is sufficient for snapshot release.
 ./test-builds.sh --cleanup layer-00-default layer-01-minimal layer-02-maximus || exit 1
-./configure --silent --enable-build-info="DATE: ${date} REVISION: ${revision}"
+./configure --silent --enable-build-info="DATE: ${date} REVISION: ${revision}" --enable-translation
 make -s dist-all
 
 webbase=/server/httpd/htdocs/squid-cache.org/content/
index 96ebdca3b59ae9a024d9c53d22c3679383fb7508..a8bebd5d18b6fbbde990d2f319e43d1fed2a41f4 100644 (file)
@@ -94,7 +94,7 @@ DISTCHECK_CONFIGURE_FLAGS=" \
        --enable-x-accelerator-vary \
        --enable-ipv6 \
        --enable-auto-locale \
-       --enable-translation \
+       --disable-translation \
        --enable-zph-qos \
        --enable-esi \
        --with-aio \