Koha/misc/translator
Frédéric Demians a41100a445 Bug 6458 Template Toolkit files test case
This test validate Template Toolkit (TT) Koha files.

For the time being an unique validation is done: Test if TT files
contain TT directive within HTML tag. For example:

  <li[% IF

This kind of constuction MUST be avoided because it break Koha
translation process.

This patch transform also translation specific modules into C4 modules
in order to be able to use them in test case:

  C4::TTPaser
  C4::TmplToken
  C4::TmplTokenType

This patch is a Perl adaptation of a Haskell script from Frère Sébastien
Marie.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Notes on testing:
- translate install de-DE - worked ok
- translate update de-DE > translate install de-DE - worked ok
- running the test xt/tt_valid.t - worked ok and pointed out lots of problems.
Found no problems.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2011-08-18 21:11:50 +12:00
..
po Move nb-NO-i-staff-prog-v-3002000.po -> nb-NO-i-staff-t-prog-v-3002000.po 2011-04-26 19:58:46 +12:00
LangInstaller.pm Bug 5777 Update and install syspref tab titles 2011-02-20 20:26:50 +13:00
Makefile
stats.pl Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00
text-extract.pl Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00
text-extract2.pl Bug 2505 - Add commented use warnings where missing in the misc/ directory 2010-04-21 20:26:44 +12:00
tmpl_process3.pl Bug 6458 Template Toolkit files test case 2011-08-18 21:11:50 +12:00
TmplTokenizer.pm Bug 6458 Template Toolkit files test case 2011-08-18 21:11:50 +12:00
translate Fix FSF address in directory misc/ 2010-03-16 20:17:54 -04:00
translator_doc.html
translator_doc.txt
update.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
VerboseWarnings.pm Bug 2505 - Add commented use warnings where missing in *.pm 2010-04-21 20:28:51 +12:00
xgettext.pl Bug 6458 Template Toolkit files test case 2011-08-18 21:11:50 +12:00