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

(-)a/t/db_dependent/misc/translator/xgettext.pl.t (-2 / +2 lines)
Lines 74-80 is( scalar @$pot, 4, 'xgettext.pl generated a POT file' ); Link Here
74
74
75
my $pot_content = read_file("$tempdir/Koha.pot");
75
my $pot_content = read_file("$tempdir/Koha.pot");
76
$pot_content =~
76
$pot_content =~
77
    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;
77
    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;
78
$pot_content =~ s|msgid "Will be translated"\nmsgstr ""|msgid "Will be translated"\nmsgstr "Ceci sera traduit"|gms;
78
$pot_content =~ s|msgid "Will be translated"\nmsgstr ""|msgid "Will be translated"\nmsgstr "Ceci sera traduit"|gms;
79
write_file( "$tempdir/Koha.pot", $pot_content );
79
write_file( "$tempdir/Koha.pot", $pot_content );
80
80
Lines 84-90 my $install_cmd = Link Here
84
system($install_cmd);
84
system($install_cmd);
85
85
86
my $content = read_file("$tempdir_fr/tt/en/sample-not-working-2.tt");
86
my $content = read_file("$tempdir_fr/tt/en/sample-not-working-2.tt");
87
like( $content, qr{Ne pas utiliser TT si un autre attribut est traduisible} );
87
like( $content, qr{Ne pas utiliser TT si un autre 'attribute' est traduisible} );
88
like( $content, qr{Ceci sera traduit} );
88
like( $content, qr{Ceci sera traduit} );
89
89
90
# So far so good, but #FIXME:
90
# So far so good, but #FIXME:
(-)a/xt/author/tt_valid.t (-4 / +3 lines)
Lines 12-19 Link Here
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
13
# GNU General Public License for more details.
14
#
14
#
15
# You should have received a copy of the GNU General Public License
15
# You should have received a copy of the GNU General Public License along
16
# along with Koha; if not, see <http://www.gnu.org/licenses>.
16
# with Koha; if not, see <https://www.gnu.org/licenses>.
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
use Test::NoWarnings;
19
use Test::NoWarnings;
Lines 110-115 For the time being, two validations are done: Link Here
110
This kind of construction MUST be avoided because it breaks Koha translation
110
This kind of construction MUST be avoided because it breaks Koha translation
111
process.
111
process.
112
112
113
[2] Test tag <body> tags have both attibutes 'id' and 'class'
113
[2] Test tag <body> tags have both attributes 'id' and 'class'
114
114
115
=cut
115
=cut
116
- 

Return to bug 41216