]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove tidyHtml from the template generation tools.
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 12 Feb 2010 12:31:01 +0000 (01:31 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 12 Feb 2010 12:31:01 +0000 (01:31 +1300)
While nice, It introduces several problems:

* any syntax errors at all in the translation text causes a blank
  translated text file to be produced. Without any error code.

* automatically downgrades the HTML content-type meta to "us-ascii"
  despite the input and output both actually being UTF-8

* added dependency for building.

It's now used automatically by the translate toolkit from 1.5.0 so
needs to be expicitly disabled when present.

errors/Makefile.am

index 9795aa05f0661a3ff2658b54179717db37a56301..8277e34c82e8cec45440e57d4828623e69cd10c9 100644 (file)
@@ -111,6 +111,8 @@ translate-warn:
 
 $(TRANSLATE_LANGUAGES): $(ERROR_TEMPLATES)
 
+NOTIDY=`$(PO2HTML) --help | grep -o "\-\-notidy"`
+
 .po.lang:
        if test "$(PO2HTML)" != "" && test "$(PO2HTML)" != "no" && test "$(PO2HTML)" != "off" && test -f $(top_srcdir)/errors/en.po; then \
            lang=`basename $@ .lang`; \
@@ -118,7 +120,7 @@ $(TRANSLATE_LANGUAGES): $(ERROR_TEMPLATES)
            echo -n "Translate '$$lang' ..."; \
            for f in $(ERROR_TEMPLATES); do \
                        page=`basename $$f`; \
-                       $(PO2HTML) --progress=none -i $(top_srcdir)/errors/$$lang.po -t $(top_srcdir)/errors/$$f >$(top_builddir)/errors/$$lang/$$page || exit 1; \
+                       $(PO2HTML) $(NOTIDY) --progress=none -i $(top_srcdir)/errors/$$lang.po -t $(top_srcdir)/errors/$$f >$(top_builddir)/errors/$$lang/$$page || exit 1; \
                done; \
                echo "done."; \
        fi; \