From 7a0412fd255381e8b5035ed38860ffb26b187abe Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 9 Feb 2026 12:59:48 +0100 Subject: [PATCH] Bug 41216: Adjust POD Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Marcel de Rooy Signed-off-by: Lucas Gass (cherry picked from commit e8f473fb8f6dccc5658f497bad790bf8c9a54cea) Signed-off-by: Jacob O'Mara --- xt/author/tt_valid.t | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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'