Bug 7607: Remove empty inputs when submitting search form
[koha.git] / misc / translator / xgettext-tt2
blob02bb61f4a11e38b7114c7643faa89ef95abb89b5
1 #!/usr/bin/perl
3 # This file is part of Koha.
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.
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.
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>.
18 use Modern::Perl;
20 my $xgettext = Locale::XGettext::TT2::Koha->newFromArgv(\@ARGV);
21 $xgettext->setOption('plug_in', '');
22 $xgettext->run;
23 $xgettext->output;
25 package Locale::XGettext::TT2::Koha;
27 use parent 'Locale::XGettext::TT2';
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',
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',