Bug 41216: Fix QA failures

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-12-01 14:56:21 +01:00 committed by Lucas Gass
parent 1f1f89cc0a
commit c7f3976165
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 5 additions and 5 deletions

View File

@ -74,7 +74,7 @@ is( scalar @$pot, 4, 'xgettext.pl generated a POT file' );
my $pot_content = read_file("$tempdir/Koha.pot");
$pot_content =~
s|msgid "Don't use TT directives if another attribute is translatable"\nmsgstr ""|msgid "Don't use TT directives if another attribute is translatable"\nmsgstr "Ne pas utiliser TT si un autre attribut est traduisible"|gms;
s|msgid "Don't use TT directives if another attribute is translatable"\nmsgstr ""|msgid "Don't use TT directives if another attribute is translatable"\nmsgstr "Ne pas utiliser TT si un autre 'attribute' est traduisible"|gms;
$pot_content =~ s|msgid "Will be translated"\nmsgstr ""|msgid "Will be translated"\nmsgstr "Ceci sera traduit"|gms;
write_file( "$tempdir/Koha.pot", $pot_content );
@ -84,7 +84,7 @@ my $install_cmd =
system($install_cmd);
my $content = read_file("$tempdir_fr/tt/en/sample-not-working-2.tt");
like( $content, qr{Ne pas utiliser TT si un autre attribut est traduisible} );
like( $content, qr{Ne pas utiliser TT si un autre 'attribute' est traduisible} );
like( $content, qr{Ceci sera traduit} );
# So far so good, but #FIXME:

6
xt/author/tt_valid.t Normal file → Executable file
View File

@ -12,8 +12,8 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Koha; if not, see <http://www.gnu.org/licenses>.
# You should have received a copy of the GNU General Public License along
# with Koha; if not, see <https://www.gnu.org/licenses>.
use Modern::Perl;
use Test::NoWarnings;
@ -110,6 +110,6 @@ For the time being, two validations are done:
This kind of construction MUST be avoided because it breaks Koha translation
process.
[2] Test tag <body> tags have both attibutes 'id' and 'class'
[2] Test tag <body> tags have both attributes 'id' and 'class'
=cut