View | Details | Raw Unified | Return to bug 41216
Collapse All | Expand All

(-)a/xt/author/tt_valid.t (-4 / +8 lines)
Lines 106-117 This test validates .tt files. Link Here
106
106
107
For the time being, two validations are done:
107
For the time being, two validations are done:
108
108
109
[1] Test if TT files contain TT directive within HTML tag. For example:
109
[1] Test if TT files contain TT tags that contain a translatable string. For example:
110
110
111
  <li[% IF
111
  <tr [% IF warning %]title="hello"[% END %]>
112
112
113
This kind of construction MUST be avoided because it breaks Koha translation
113
This kind of construction MUST be avoided because it breaks Koha translation
114
process.
114
process. Use a TT variable instead to store the translatable string:
115
116
  [% IF warning %]
117
    [% SET tr_warning = I18N.t("hello");
118
  [% END %]
119
  <tr title="[% title | html %]">
115
120
116
[2] Test tag <body> tags have both attributes 'id' and 'class'
121
[2] Test tag <body> tags have both attributes 'id' and 'class'
117
122
118
- 

Return to bug 41216