dnl Squid now has .po translation capability, given the right toolkit
AX_WITH_PROG([PO2HTML],[po2html])
-AC_SUBST(PO2HTML)
dnl Squid now has limited locale handling ...
dnl on error pages
else
echo "Disabling Multi-Language Support"
AC_DEFINE(USE_ERR_LOCALES,0,[Use multi-language support on error pages])
+ dnl So we don't want to even attempt translation if its forcibly disabled.
+ PO2HTML="off"
fi
+AC_SUBST(PO2HTML)
dnl Need the debugging version of malloc if available
XTRA_OBJS=''
cp -p $(srcdir)/errorpage.css $(distdir)/errorpage.css
translate:
- @ if test "$(PO2HTML)" != "" && test "$(PO2HTML)" != "no"; then \
+ @ if test "$(PO2HTML)" != "" && test "$(PO2HTML)" != "no" && test "$(PO2HTML)" != "off"; then \
for lang in $(TRANSLATIONS); do \
test -d $$lang && rm -r $$lang; \
mkdir $$lang; \
cd ..; \
done; \
else \
- echo "WARNING: Translation toolkit was not detected."; \
+ if test "$(PO2HTML)" = "off" ; then \
+ echo "WARNING: Translation is disabled."; \
+ else \
+ echo "WARNING: Translation toolkit was not detected."; \
+ fi; \
echo "A drop-in bundle of pre-translated files is available from"; \
echo "http://www.squid-cache.org/Versions/langpack/"; \
fi