#!/bin/sh
+#
+## Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+##
+## Squid software is distributed under GPLv2+ license and includes
+## contributions from numerous individuals and organizations.
+## Please see the COPYING and CONTRIBUTORS files for details.
+##
+
#
# Update the core errpages.pot file from the basic templates
# Useful if any template has altered.
# make a temp directory for all our workings...
mkdir pot
-# Generate per-page disctionaries ...
+# Generate per-page dictionaries ...
for f in `ls -1 ./templates/`; do
- if test "${f}" != "generic" ; then
+ case ${f} in
+ error-details.txt)
+ ../scripts/mk-error-details-po.pl ./templates/${f} > ./pot/${f}.pot
+ ;;
+ ERR_*)
html2po -i ./templates/${f} -P --duplicates=merge -o ./pot/${f}.pot
- fi
+ ;;
+ *)
+ echo "SKIP: ${f}"
+ esac
done
# merge and sort the per-page .pot into a single master
# Build the po4a.conf
cat doc/po4a.cnf >po4a.conf
-for f in `ls -1 helpers/*/*/*.8 src/*.8.in tools/*.1 tools/*.8.in` ; do
+for f in `ls -1 helpers/*/*/*.8 src/*.8.in tools/*/*.1 tools/*.8.in` ; do
echo "" >>po4a.conf
manp=`basename ${f}`
echo "[type: man] ${f} \$lang:doc/manuals/\$lang/${manp}" >>po4a.conf