diff --git a/xt/author/tt_valid.t b/xt/author/tt_valid.t index eafb30e29c..6feff26874 100755 --- a/xt/author/tt_valid.t +++ b/xt/author/tt_valid.t @@ -106,12 +106,17 @@ This test validates .tt files. For the time being, two validations are done: -[1] Test if TT files contain TT directive within HTML tag. For example: +[1] Test if TT files contain TT tags that contain a translatable string. For example: - This kind of construction MUST be avoided because it breaks Koha translation -process. +process. Use a TT variable instead to store the translatable string: + + [% IF warning %] + [% SET tr_warning = I18N.t("hello"); + [% END %] + [2] Test tag tags have both attributes 'id' and 'class'