Lines 4-21
Link Here
|
4 |
# |
4 |
# |
5 |
# This file is part of Koha. |
5 |
# This file is part of Koha. |
6 |
# |
6 |
# |
7 |
# Koha is free software; you can redistribute it and/or modify it under the |
7 |
# Koha is free software; you can redistribute it and/or modify it |
8 |
# terms of the GNU General Public License as published by the Free Software |
8 |
# under the terms of the GNU General Public License as published by |
9 |
# Foundation; either version 2 of the License, or (at your option) any later |
9 |
# the Free Software Foundation; either version 3 of the License, or |
10 |
# version. |
10 |
# (at your option) any later version. |
11 |
# |
11 |
# |
12 |
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY |
12 |
# Koha is distributed in the hope that it will be useful, but |
13 |
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR |
13 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
14 |
# A PARTICULAR PURPOSE. See the GNU General Public License for more details. |
14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
15 |
# GNU General Public License for more details. |
15 |
# |
16 |
# |
16 |
# You should have received a copy of the GNU General Public License along |
17 |
# You should have received a copy of the GNU General Public License |
17 |
# with Koha; if not, write to the Free Software Foundation, Inc., |
18 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
18 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
|
|
19 |
|
19 |
|
20 |
use Modern::Perl; |
20 |
use Modern::Perl; |
21 |
use Test::More qw(no_plan); |
21 |
use Test::More qw(no_plan); |
Lines 35-41
my @trans_notices_files = qw(
Link Here
|
35 |
); |
35 |
); |
36 |
|
36 |
|
37 |
ok( |
37 |
ok( |
38 |
open( my $ref_fh, "<$root_dir/$base_notices_file" ), |
38 |
open( my $ref_fh, "<", "$root_dir/$base_notices_file" ), |
39 |
"Open reference sample notices file $root_dir/$base_notices_file" ); |
39 |
"Open reference sample notices file $root_dir/$base_notices_file" ); |
40 |
my $ref_notice = get_notices_from_file( $ref_fh ); |
40 |
my $ref_notice = get_notices_from_file( $ref_fh ); |
41 |
my @ref_notices = sort { lc $a cmp lc $b } keys %$ref_notice; |
41 |
my @ref_notices = sort { lc $a cmp lc $b } keys %$ref_notice; |
Lines 66-72
sub get_notices_from_file {
Link Here
|
66 |
sub compare_notices { |
66 |
sub compare_notices { |
67 |
my $trans_file = shift; |
67 |
my $trans_file = shift; |
68 |
ok( |
68 |
ok( |
69 |
open( my $trans_fh, "<$root_dir/$trans_file" ), |
69 |
open( my $trans_fh,"<", "$root_dir/$trans_file" ), |
70 |
"Open translated sample notices file $root_dir/$trans_file" ); |
70 |
"Open translated sample notices file $root_dir/$trans_file" ); |
71 |
my $trans_notice = get_notices_from_file( $trans_fh ); |
71 |
my $trans_notice = get_notices_from_file( $trans_fh ); |
72 |
use YAML; |
72 |
use YAML; |
73 |
- |
|
|