Fix translation issues
[koha.git] / misc / translator / xgettext-tt2
1 #!/usr/bin/perl
2
3 # This file is part of Koha.
4 #
5 # Koha is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # Koha is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with Koha; if not, see <http://www.gnu.org/licenses>.
17
18 use Modern::Perl;
19
20 my $xgettext = Locale::XGettext::TT2::Koha->newFromArgv(\@ARGV);
21 $xgettext->setOption('plug_in', '');
22 $xgettext->run;
23 $xgettext->output;
24
25 package Locale::XGettext::TT2::Koha;
26
27 use parent 'Locale::XGettext::TT2';
28
29 sub defaultKeywords {
30     return [
31         't:1',
32         'tx:1',
33         'tn:1,2',
34         'tnx:1,2',
35         'txn:1,2',
36         'tp:1c,2',
37         'tpx:1c,2',
38         'tnp:1c,2,3',
39         'tnpx:1c,2,3',
40     ];
41 }
42
43 sub defaultFlags {
44     return [
45         'tx:1:perl-brace-format',
46         'tnx:1:perl-brace-format',
47         'tnx:2:perl-brace-format',
48         'txn:1:perl-brace-format',
49         'txn:2:perl-brace-format',
50         'tpx:2:perl-brace-format',
51         'tnpx:2:perl-brace-format',
52         'tnpx:3:perl-brace-format',
53     ],
54 }
55
56 1;