]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - scripts/update-pot.sh
SourceFormat Enforcement
[thirdparty/squid.git] / scripts / update-pot.sh
index 9d9cdba772509bfa90d229d04b2357179637186e..ef67fc022f27febf7e761130332d54ede852be50 100755 (executable)
@@ -1,4 +1,12 @@
 #!/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.
@@ -17,11 +25,18 @@ rm errpages.pot
 # 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
@@ -51,7 +66,7 @@ cd ..
 
 # 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