Codebase list liblog-report-perl / cbbd4db
Imported Upstream version 0.997 Nuno Carvalho 10 years ago
63 changed file(s) with 732 addition(s) and 384 deletion(s). Raw diff Collapse all Expand all
00
11 ==== version history of Log::Report
22
3 Connect to Message::Passing
3 TODO:
4 . connect to Message::Passing framework
5 . extract a Log::Report::Optional distribution
6
7 version 0.997: Fri Sep 27 17:37:11 CEST 2013
8 Fixes:
9 - error about double definedness of settings, dependent on the
10 order of inclusion of modules.
11 - setlocale does not return the old locale, but the new.
12
13 Improvements:
14 - xgettext-perl: do not PPI files unless they are Perl
15 - xgettext-perl: do warn when ' are used, needs " with __x
16 - __x() now can have a _domain parameter
17
18 version 0.996: Wed Sep 4 17:23:11 CEST 2013
19 Fixes:
20 - you could not share one ::Translator::POT over two domains.
21 discovered by [Richard Still]
22 - third attempt to fix errors in t/53log4perl.t on Windows
23 [cpantesters]
24 - remove double reporting of errors which exceptions are caught
25 with eval(). But better use try().
26
27 version 0.995: Thu Aug 29 09:19:13 CEST 2013
28 Fixes:
29 - twice path '\' in t/53log4perl.t in Windows [cpantesters]
30
31 version 0.994: Thu Aug 22 16:12:08 CEST 2013
32 Fixes:
33 - link to paper [Richard Still]
34 - chicken-egg problem with error on illegal mode setting.
35
36 Improvements:
37 - try to build new translation table at each 'make'
438
539 version 0.993: Thu Mar 28 10:59:27 CET 2013
640
33 "Mark Overmeer"
44 ],
55 "dynamic_config" : 1,
6 "generated_by" : "ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120630",
6 "generated_by" : "ExtUtils::MakeMaker version 6.64, CPAN::Meta::Converter version 2.120630",
77 "license" : [
88 "perl_5"
99 ],
4040 }
4141 },
4242 "release_status" : "stable",
43 "version" : "0.993"
43 "version" : "0.997"
4444 }
66 configure_requires:
77 ExtUtils::MakeMaker: 0
88 dynamic_config: 1
9 generated_by: 'ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120630'
9 generated_by: 'ExtUtils::MakeMaker version 6.64, CPAN::Meta::Converter version 2.120630'
1010 license: perl
1111 meta-spec:
1212 url: http://module-build.sourceforge.net/META-spec-v1.4.html
2222 Scalar::Util: 0
2323 Sys::Syslog: 0.27
2424 Test::More: 0.86
25 version: 0.993
25 version: 0.997
11
22 use 5.008;
33
4 my $version = '0.993';
4 my $version = '0.997';
55
66 my %prereq =
77 ( Test::More => 0.86
4444 HTML_DOCROOT = /log-report/html
4545 HTML_PACKAGE = ../public_html/log-report/htmlpkg
4646
47 # for Log::Report
48 xgettext: $(TO_INST_PM)
49 PERL5LIB=lib bin/xgettext-perl --mode=DEBUG \
50 -p lib/Log/Report/messages lib bin
5147 __POSTAMBLE
48
49 # for translation tables
50 #linkext::
51 # - PERL5LIB="lib:$PERL5LIB" bin/xgettext-perl --mode=VERBOSE \
52 # -p lib/Log/Report/messages lib bin
0 #!/usr/bin/perl
0 #!/usr/bin/env perl
11 # implements xgettext for Log::Report only, using Log::Report::Extract::PPI
22 # Options like GNU's xgettext
33
101101 , charset => $char_out
102102 );
103103
104 $extr->process($_, charset => $char_in)
105 for @filenames;
104 foreach my $filename (@filenames)
105 { unless($filename =~ m/\.p[lm]$/i)
106 { info __x"skipping (not perl) {fn}", fn => $filename;
107 next;
108 }
109 $extr->process($filename, charset => $char_in);
110 }
106111 }
107112
108113 $extr->showStats;
66
77 package Log::Report::Die;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111 use base 'Exporter';
1212
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Die - compatibility routines with Perl's die/croak/confess
57
68 Log::Report::Die
79 is a Exporter
10
11 =head1 SYNOPSIS
12
13 =head1 DESCRIPTION
14
15 =head1 OVERLOADING
816
917 =head1 Functions
1018
4351
4452 =head1 SEE ALSO
4553
46 This module is part of Log-Report distribution version 0.993,
47 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
54 This module is part of Log-Report distribution version 0.997,
55 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
4856
4957 =head1 LICENSE
5058
66
77 package Log::Report::Dispatcher::Callback;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111 use base 'Log::Report::Dispatcher';
1212
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Dispatcher::Callback - call a code-ref for each log-line
2628 may best make your own extension to L<Log::Report::Dispatcher|Log::Report::Dispatcher>, but
2729 for simple things this will do.
2830
31 See L<documentation in the base class|Log::Report::Dispatcher/"DESCRIPTION">.
32
2933 =head1 METHODS
3034
35 See L<documentation in the base class|Log::Report::Dispatcher/"METHODS">.
36
3137 =head2 Constructors
3238
39 See L<documentation in the base class|Log::Report::Dispatcher/"Constructors">.
40
3341 =over 4
3442
3543 =item $obj-E<gt>B<close>()
7280
7381 =head2 Accessors
7482
83 See L<documentation in the base class|Log::Report::Dispatcher/"Accessors">.
84
7585 =over 4
7686
7787 =item $obj-E<gt>B<callback>()
102112
103113 =head2 Logging
104114
115 See L<documentation in the base class|Log::Report::Dispatcher/"Logging">.
116
105117 =over 4
106118
107119 =item $obj-E<gt>B<collectLocation>()
132144
133145 =back
134146
147 =head1 DETAILS
148
149 See L<documentation in the base class|Log::Report::Dispatcher/"DETAILS">.
150
135151 =head1 SEE ALSO
136152
137 This module is part of Log-Report distribution version 0.993,
138 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
153 This module is part of Log-Report distribution version 0.997,
154 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
139155
140156 =head1 LICENSE
141157
66
77 package Log::Report::Dispatcher::File;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111 use base 'Log::Report::Dispatcher';
1212
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Dispatcher::File - send messages to a file or file-handle
4042
4143 This basic file logger accepts an file-handle or filename as destination.
4244
45 See L<documentation in the base class|Log::Report::Dispatcher/"DESCRIPTION">.
46
4347 =head1 METHODS
4448
49 See L<documentation in the base class|Log::Report::Dispatcher/"METHODS">.
50
4551 =head2 Constructors
4652
53 See L<documentation in the base class|Log::Report::Dispatcher/"Constructors">.
54
4755 =over 4
4856
4957 =item $obj-E<gt>B<close>()
99107
100108 =head2 Accessors
101109
110 See L<documentation in the base class|Log::Report::Dispatcher/"Accessors">.
111
102112 =over 4
103113
104114 =item $obj-E<gt>B<filename>()
130140
131141 =head2 Logging
132142
143 See L<documentation in the base class|Log::Report::Dispatcher/"Logging">.
144
133145 =over 4
134146
135147 =item $obj-E<gt>B<collectLocation>()
160172
161173 =back
162174
175 =head1 DETAILS
176
177 See L<documentation in the base class|Log::Report::Dispatcher/"DETAILS">.
178
163179 =head1 SEE ALSO
164180
165 This module is part of Log-Report distribution version 0.993,
166 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
181 This module is part of Log-Report distribution version 0.997,
182 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
167183
168184 =head1 LICENSE
169185
66
77 package Log::Report::Dispatcher::Log4perl;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111 use base 'Log::Report::Dispatcher';
1212
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Dispatcher::Log4perl - send messages to Log::Log4perl back-end
5254 WARNING => $WARN PANIC => $FATAL
5355 MISTAKE => $WARN
5456
57 See L<documentation in the base class|Log::Report::Dispatcher/"DESCRIPTION">.
58
5559 =head1 METHODS
5660
61 See L<documentation in the base class|Log::Report::Dispatcher/"METHODS">.
62
5763 =head2 Constructors
5864
65 See L<documentation in the base class|Log::Report::Dispatcher/"Constructors">.
66
5967 =over 4
6068
6169 =item $obj-E<gt>B<close>()
103111
104112 =head2 Accessors
105113
114 See L<documentation in the base class|Log::Report::Dispatcher/"Accessors">.
115
106116 =over 4
107117
108118 =item $obj-E<gt>B<appender>()
133143
134144 =head2 Logging
135145
146 See L<documentation in the base class|Log::Report::Dispatcher/"Logging">.
147
136148 =over 4
137149
138150 =item $obj-E<gt>B<collectLocation>()
168180
169181 =back
170182
183 =head1 DETAILS
184
185 See L<documentation in the base class|Log::Report::Dispatcher/"DETAILS">.
186
171187 =head1 SEE ALSO
172188
173 This module is part of Log-Report distribution version 0.993,
174 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
189 This module is part of Log-Report distribution version 0.997,
190 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
175191
176192 =head1 LICENSE
177193
66
77 package Log::Report::Dispatcher::LogDispatch;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111 use base 'Log::Report::Dispatcher';
1212
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Dispatcher::LogDispatch - send messages to Log::Dispatch back-end
3234 The default translation table is list below. You can change the mapping
3335 using L<new(to_level)|Log::Report::Dispatcher::LogDispatch/"Constructors">. See example in SYNOPSIS.
3436
37 See L<documentation in the base class|Log::Report::Dispatcher/"DESCRIPTION">.
38
3539 =head1 METHODS
3640
41 See L<documentation in the base class|Log::Report::Dispatcher/"METHODS">.
42
3743 =head2 Constructors
3844
45 See L<documentation in the base class|Log::Report::Dispatcher/"Constructors">.
46
3947 =over 4
4048
4149 =item $obj-E<gt>B<close>()
100108
101109 =head2 Accessors
102110
111 See L<documentation in the base class|Log::Report::Dispatcher/"Accessors">.
112
103113 =over 4
104114
105115 =item $obj-E<gt>B<backend>()
130140
131141 =head2 Logging
132142
143 See L<documentation in the base class|Log::Report::Dispatcher/"Logging">.
144
133145 =over 4
134146
135147 =item $obj-E<gt>B<collectLocation>()
165177
166178 =back
167179
180 =head1 DETAILS
181
182 See L<documentation in the base class|Log::Report::Dispatcher/"DETAILS">.
183
168184 =head1 SEE ALSO
169185
170 This module is part of Log-Report distribution version 0.993,
171 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
186 This module is part of Log-Report distribution version 0.997,
187 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
172188
173189 =head1 LICENSE
174190
66
77 package Log::Report::Dispatcher::Perl;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111 use base 'Log::Report::Dispatcher';
1212
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Dispatcher::Perl - send messages to die and warn
2426 In the early releases of Log::Report, it tried to simulate the behavior
2527 of warn and die using STDERR and exit; however: that is not possible.
2628
29 See L<documentation in the base class|Log::Report::Dispatcher/"DESCRIPTION">.
30
2731 =head1 METHODS
2832
29 =head2 Constructors
33 See L<documentation in the base class|Log::Report::Dispatcher/"METHODS">.
34
35 =head1 DETAILS
3036
31 =over 4
32
33 =item $obj-E<gt>B<close>()
34
35 See L<Log::Report::Dispatcher/"Constructors">
36
37 =item Log::Report::Dispatcher::Perl-E<gt>B<new>(TYPE, NAME, OPTIONS)
38
39 See L<Log::Report::Dispatcher/"Constructors">
40
41 =back
42
43 =head2 Accessors
44
45 =over 4
46
47 =item $obj-E<gt>B<isDisabled>()
48
49 See L<Log::Report::Dispatcher/"Accessors">
50
51 =item $obj-E<gt>B<mode>()
52
53 See L<Log::Report::Dispatcher/"Accessors">
54
55 =item $obj-E<gt>B<name>()
56
57 See L<Log::Report::Dispatcher/"Accessors">
58
59 =item $obj-E<gt>B<needs>()
60
61 See L<Log::Report::Dispatcher/"Accessors">
62
63 =item $obj-E<gt>B<type>()
64
65 See L<Log::Report::Dispatcher/"Accessors">
66
67 =back
68
69 =head2 Logging
70
71 =over 4
72
73 =item $obj-E<gt>B<collectLocation>()
74
75 =item Log::Report::Dispatcher::Perl-E<gt>B<collectLocation>()
76
77 See L<Log::Report::Dispatcher/"Logging">
78
79 =item $obj-E<gt>B<collectStack>([MAXDEPTH])
80
81 =item Log::Report::Dispatcher::Perl-E<gt>B<collectStack>([MAXDEPTH])
82
83 See L<Log::Report::Dispatcher/"Logging">
84
85 =item $obj-E<gt>B<log>(HASH-of-OPTIONS, REASON, MESSAGE)
86
87 See L<Log::Report::Dispatcher/"Logging">
88
89 =item $obj-E<gt>B<stackTraceLine>(OPTIONS)
90
91 =item Log::Report::Dispatcher::Perl-E<gt>B<stackTraceLine>(OPTIONS)
92
93 See L<Log::Report::Dispatcher/"Logging">
94
95 =item $obj-E<gt>B<translate>(HASH-of-OPTIONS, REASON, MESSAGE)
96
97 See L<Log::Report::Dispatcher/"Logging">
98
99 =back
100
37 See L<documentation in the base class|Log::Report::Dispatcher/"DETAILS">.
38
10139 =head1 SEE ALSO
10240
103 This module is part of Log-Report distribution version 0.993,
104 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
41 This module is part of Log-Report distribution version 0.997,
42 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
10543
10644 =head1 LICENSE
10745
66
77 package Log::Report::Dispatcher::Syslog;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111 use base 'Log::Report::Dispatcher';
1212
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Dispatcher::Syslog - send messages to syslog
4143 WARNING => LOG_WARNING PANIC => LOG_CRIT
4244 MISTAKE => LOG_WARNING
4345
46 See L<documentation in the base class|Log::Report::Dispatcher/"DESCRIPTION">.
47
4448 =head1 METHODS
4549
50 See L<documentation in the base class|Log::Report::Dispatcher/"METHODS">.
51
4652 =head2 Constructors
4753
54 See L<documentation in the base class|Log::Report::Dispatcher/"Constructors">.
55
4856 =over 4
4957
5058 =item $obj-E<gt>B<close>()
108116
109117 =head2 Accessors
110118
119 See L<documentation in the base class|Log::Report::Dispatcher/"Accessors">.
120
111121 =over 4
112122
113123 =item $obj-E<gt>B<isDisabled>()
134144
135145 =head2 Logging
136146
147 See L<documentation in the base class|Log::Report::Dispatcher/"Logging">.
148
137149 =over 4
138150
139151 =item $obj-E<gt>B<collectLocation>()
169181
170182 =back
171183
184 =head1 DETAILS
185
186 See L<documentation in the base class|Log::Report::Dispatcher/"DETAILS">.
187
172188 =head1 SEE ALSO
173189
174 This module is part of Log-Report distribution version 0.993,
175 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
190 This module is part of Log-Report distribution version 0.997,
191 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
176192
177193 =head1 LICENSE
178194
66
77 package Log::Report::Dispatcher::Try;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111 use base 'Log::Report::Dispatcher';
1212
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Dispatcher::Try - capture all reports as exceptions
5456 They can be ignored, or thrown to a higher level try... causing
5557 an exit of the program if there is none.
5658
59 See L<documentation in the base class|Log::Report::Dispatcher/"DESCRIPTION">.
60
5761 =head1 METHODS
5862
63 See L<documentation in the base class|Log::Report::Dispatcher/"METHODS">.
64
5965 =head2 Constructors
6066
67 See L<documentation in the base class|Log::Report::Dispatcher/"Constructors">.
68
6169 =over 4
6270
6371 =item $obj-E<gt>B<close>()
100108
101109 =head2 Accessors
102110
111 See L<documentation in the base class|Log::Report::Dispatcher/"Accessors">.
112
103113 =over 4
104114
105115 =item $obj-E<gt>B<died>([STRING])
136146
137147 =head2 Logging
138148
149 See L<documentation in the base class|Log::Report::Dispatcher/"Logging">.
150
139151 =over 4
140152
141153 =item $obj-E<gt>B<collectLocation>()
226238
227239 =back
228240
241 =head1 DETAILS
242
243 See L<documentation in the base class|Log::Report::Dispatcher/"DETAILS">.
244
229245 =head1 OVERLOADING
230246
231247 =over 4
246262
247263 =head1 SEE ALSO
248264
249 This module is part of Log-Report distribution version 0.993,
250 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
265 This module is part of Log-Report distribution version 0.997,
266 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
251267
252268 =head1 LICENSE
253269
66
77 package Log::Report::Dispatcher;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111
1212 use Log::Report 'log-report', syntax => 'SHORT';
111111 sub _set_mode($)
112112 { my $self = shift;
113113 my $mode = $self->{mode} = $modes{$_[0]};
114 defined $mode
115 or error __x"unknown run mode '{mode}'", mode => $_[0];
116
117 $self->{needs} = [ expand_reasons $default_accept[$mode] ];
114 defined $mode or panic "unknown run mode $_[0]";
115
116 $self->{needs} = [ expand_reasons $default_accept[$mode] ];
118117
119118 info __x"switching to run mode {mode}, accept {accept}"
120119 , mode => $mode, accept => $default_accept[$mode];
139138 }
140139
141140
142 my %always_loc = map {($_ => 1)} qw/ASSERT PANIC/;
141 my %always_loc = map +($_ => 1), qw/ASSERT PANIC/;
143142 sub translate($$$)
144143 { my ($self, $opts, $reason, $msg) = @_;
145144
219218 defined $sub or $nest = 1; # not found
220219
221220 # skip syntax==SHORT routine entries
222 $nest++ if defined $sub && $sub =~ m/^Log\:\:Report\:\:/;
221 # $nest++ if defined $sub && $sub =~ m/^Log\:\:Report\:\:/;
223222
224223 # special trick by Perl for Carp::Heavy: adds @DB::args
225224 { package DB; # non-blank before package to avoid problem with OODoc
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Dispatcher - manage message dispatching, display or logging
340342
341343 =head1 SEE ALSO
342344
343 This module is part of Log-Report distribution version 0.993,
344 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
345 This module is part of Log-Report distribution version 0.997,
346 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
345347
346348 =head1 LICENSE
347349
66
77 package Log::Report::Exception;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111
1212 use Log::Report 'log-report';
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Exception - a collected report
145147
146148 =head1 SEE ALSO
147149
148 This module is part of Log-Report distribution version 0.993,
149 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
150 This module is part of Log-Report distribution version 0.997,
151 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
150152
151153 =head1 LICENSE
152154
77
88 package Log::Report::Extract::PerlPPI;
99 use vars '$VERSION';
10 $VERSION = '0.993';
10 $VERSION = '0.997';
1111
1212 use base 'Log::Report::Extract';
1313
2626 , N__w => [1, 0, 0, 0, 1]
2727 );
2828
29 my $quote_mistake;
30 { my @q = map quotemeta, keys %msgids;
31 local $" = '|';
32 $quote_mistake = qr/^(?:@q)\'/;
33 }
34
2935
3036 sub process($@)
3137 { my ($self, $fn, %opts) = @_;
3642 or error __x"PPI only supports iso-8859-1 (latin-1) on the moment";
3743
3844 my $doc = PPI::Document->new($fn, readonly => 1)
39 or fault __x"cannot read from file {filename}", filename => $fn;
45 or fault __x"cannot read perl from file {filename}", filename => $fn;
4046
4147 my @childs = $doc->schildren;
4248 if(@childs==1 && ref $childs[0] eq 'PPI::Statement')
7581 $self->_reset($domain, $fn);
7682 }
7783
78 $node->find_any
79 ( sub { # look for the special translation markers
80 $_[1]->isa('PPI::Token::Word') or return 0;
84 $node->find_any( sub {
85 # look for the special translation markers
86 $_[1]->isa('PPI::Token::Word') or return 0;
8187
82 my $node = $_[1];
83 my $def = $msgids{$node->content} # get __() description
84 or return 0;
88 my $node = $_[1];
89 my $word = $node->content;
90 if($word =~ $quote_mistake)
91 { warning __x"use double quotes not single, in {string} on {file} line {line}"
92 , string => $word, fn => $fn, line => $node->location->[0];
93 return 0;
94 }
8595
86 my @msgids = $self->_get($node, @$def)
87 or return 0;
96 my $def = $msgids{$word} # get __() description
97 or return 0;
8898
89 my $line = $node->location->[0];
90 unless($domain)
91 { mistake __x
92 "no text-domain for translatable at {fn} line {line}"
93 , fn => $fn, line => $line;
94 return 0;
95 }
99 my @msgids = $self->_get($node, @$def)
100 or return 0;
96101
97 if($def->[4]) # must split? Bulk conversion strings
98 { my @words = map {split} @msgids;
99 $self->store($domain, $fn, $line, $_) for @words;
100 $msgs_found += @words;
101 }
102 else
103 { $self->store($domain, $fn, $line, @msgids);
104 $msgs_found += 1;
105 }
102 my $line = $node->location->[0];
103 unless($domain)
104 { mistake __x
105 "no text-domain for translatable at {fn} line {line}"
106 , fn => $fn, line => $line;
107 return 0;
108 }
106109
107 0; # don't collect
108 }
109 );
110 if($def->[4]) # must split? Bulk conversion strings
111 { my @words = map {split} @msgids;
112 $self->store($domain, $fn, $line, $_) for @words;
113 $msgs_found += @words;
114 }
115 else
116 { $self->store($domain, $fn, $line, @msgids);
117 $msgs_found += 1;
118 }
119
120 0; # don't collect
121 });
110122 }
111123
112124 $msgs_found;
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Extract::PerlPPI - Collect translatable strings from Perl using PPI
2527 and the existing PO files will get updated accordingly. If no translations
2628 exist yet, one C<textdomain/xx.po> file will be created.
2729
30 See L<documentation in the base class|Log::Report::Extract/"DESCRIPTION">.
31
2832 =head1 METHODS
2933
34 See L<documentation in the base class|Log::Report::Extract/"METHODS">.
35
3036 =head2 Constructors
3137
38 See L<documentation in the base class|Log::Report::Extract/"Constructors">.
39
3240 =over 4
3341
3442 =item Log::Report::Extract::PerlPPI-E<gt>B<new>(OPTIONS)
3947
4048 =head2 Accessors
4149
50 See L<documentation in the base class|Log::Report::Extract/"Accessors">.
51
4252 =over 4
4353
4454 =item $obj-E<gt>B<charset>()
6171
6272 =head2 Processors
6373
74 See L<documentation in the base class|Log::Report::Extract/"Processors">.
75
6476 =over 4
6577
6678 =item $obj-E<gt>B<process>(FILENAME, OPTIONS)
94106
95107 =head1 SEE ALSO
96108
97 This module is part of Log-Report distribution version 0.993,
98 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
109 This module is part of Log-Report distribution version 0.997,
110 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
99111
100112 =head1 LICENSE
101113
77
88 package Log::Report::Extract::Template;
99 use vars '$VERSION';
10 $VERSION = '0.993';
10 $VERSION = '0.997';
1111
1212 use base 'Log::Report::Extract';
1313
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Extract::Template - collect translatable strings from template files
3234 If no translations exist yet, one C<$textdomain.po> file will be
3335 created as point to start. Copy that file into C<$textdomain/$lang.po>
3436
37 See L<documentation in the base class|Log::Report::Extract/"DESCRIPTION">.
38
3539 =head1 METHODS
3640
41 See L<documentation in the base class|Log::Report::Extract/"METHODS">.
42
3743 =head2 Constructors
3844
45 See L<documentation in the base class|Log::Report::Extract/"Constructors">.
46
3947 =over 4
4048
4149 =item Log::Report::Extract::Template-E<gt>B<new>(OPTIONS)
6775
6876 =head2 Accessors
6977
78 See L<documentation in the base class|Log::Report::Extract/"Accessors">.
79
7080 =over 4
7181
7282 =item $obj-E<gt>B<charset>()
93103
94104 =head2 Processors
95105
106 See L<documentation in the base class|Log::Report::Extract/"Processors">.
107
96108 =over 4
97109
98110 =item $obj-E<gt>B<process>(FILENAME, OPTIONS)
210222
211223 =head1 SEE ALSO
212224
213 This module is part of Log-Report distribution version 0.993,
214 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
225 This module is part of Log-Report distribution version 0.997,
226 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
215227
216228 =head1 LICENSE
217229
77
88 package Log::Report::Extract;
99 use vars '$VERSION';
10 $VERSION = '0.993';
10 $VERSION = '0.997';
1111
1212
1313 use Log::Report 'log-report';
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Extract - Collect translatable strings
110112
111113 =head1 SEE ALSO
112114
113 This module is part of Log-Report distribution version 0.993,
114 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
115 This module is part of Log-Report distribution version 0.997,
116 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
115117
116118 =head1 LICENSE
117119
44
55 package Log::Report::Lexicon::Index;
66 use vars '$VERSION';
7 $VERSION = '0.993';
7 $VERSION = '0.997';
88
99
1010 use warnings;
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Lexicon::Index - search through available translation files
184186
185187 =head1 SEE ALSO
186188
187 This module is part of Log-Report distribution version 0.993,
188 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
189 This module is part of Log-Report distribution version 0.997,
190 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
189191
190192 =head1 LICENSE
191193
33 # Pod stripped from pm file by OODoc 2.01.
44 package Log::Report::Lexicon::MOTcompact;
55 use vars '$VERSION';
6 $VERSION = '0.993';
6 $VERSION = '0.997';
77
88 use base 'Log::Report::Lexicon::Table';
99
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Lexicon::MOTcompact - use translations from an MO file
2527 speed and low memory foot-print. You will not be able to sub-class
2628 this class cleanly.
2729
30 See L<documentation in the base class|Log::Report::Lexicon::Table/"DESCRIPTION">.
31
2832 =head1 METHODS
2933
34 See L<documentation in the base class|Log::Report::Lexicon::Table/"METHODS">.
35
3036 =head2 Constructors
3137
38 See L<documentation in the base class|Log::Report::Lexicon::Table/"Constructors">.
39
3240 =over 4
3341
3442 =item Log::Report::Lexicon::MOTcompact-E<gt>B<new>(OPTIONS)
6472
6573 =head2 Attributes
6674
75 See L<documentation in the base class|Log::Report::Lexicon::Table/"Attributes">.
76
6777 =over 4
6878
6979 =item $obj-E<gt>B<filename>()
7989
8090 =head2 Managing PO's
8191
92 See L<documentation in the base class|Log::Report::Lexicon::Table/"Managing PO's">.
93
8294 =head3 Translation
8395
96 See L<documentation in the base class|Log::Report::Lexicon::Table/"Translation">.
97
8498 =over 4
8599
86100 =item $obj-E<gt>B<msgid>(STRING)
98112
99113 =head3 Administration
100114
115 See L<documentation in the base class|Log::Report::Lexicon::Table/"Administration">.
116
101117 =over 4
102118
103119 =item $obj-E<gt>B<add>(PO)
136152
137153 =head1 SEE ALSO
138154
139 This module is part of Log-Report distribution version 0.993,
140 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
155 This module is part of Log-Report distribution version 0.997,
156 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
141157
142158 =head1 LICENSE
143159
33 # Pod stripped from pm file by OODoc 2.01.
44 package Log::Report::Lexicon::PO;
55 use vars '$VERSION';
6 $VERSION = '0.993';
6 $VERSION = '0.997';
77
88
99 use warnings;
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Lexicon::PO - one translation definition
5
6 =head1 SYNOPSIS
37
48 =head1 DESCRIPTION
59
199203
200204 =head1 SEE ALSO
201205
202 This module is part of Log-Report distribution version 0.993,
203 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
206 This module is part of Log-Report distribution version 0.997,
207 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
204208
205209 =head1 LICENSE
206210
33 # Pod stripped from pm file by OODoc 2.01.
44 package Log::Report::Lexicon::POT;
55 use vars '$VERSION';
6 $VERSION = '0.993';
6 $VERSION = '0.997';
77
88 use base 'Log::Report::Lexicon::Table';
99
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Lexicon::POT - manage PO files
4143 sincere simplification. Each PO record will be represented by a
4244 L<Log::Report::Lexicon::PO|Log::Report::Lexicon::PO>.
4345
46 See L<documentation in the base class|Log::Report::Lexicon::Table/"DESCRIPTION">.
47
4448 =head1 METHODS
4549
50 See L<documentation in the base class|Log::Report::Lexicon::Table/"METHODS">.
51
4652 =head2 Constructors
4753
54 See L<documentation in the base class|Log::Report::Lexicon::Table/"Constructors">.
55
4856 =over 4
4957
5058 =item Log::Report::Lexicon::POT-E<gt>B<new>(OPTIONS)
133141
134142 =head2 Attributes
135143
144 See L<documentation in the base class|Log::Report::Lexicon::Table/"Attributes">.
145
136146 =over 4
137147
138148 =item $obj-E<gt>B<charset>()
155165
156166 =head2 Managing PO's
157167
168 See L<documentation in the base class|Log::Report::Lexicon::Table/"Managing PO's">.
169
158170 =over 4
159171
160172 =item $obj-E<gt>B<removeReferencesTo>(FILENAME)
175187
176188 =head3 Translation
177189
190 See L<documentation in the base class|Log::Report::Lexicon::Table/"Translation">.
191
178192 =over 4
179193
180194 =item $obj-E<gt>B<msgid>(STRING)
192206
193207 =head3 Administration
194208
209 See L<documentation in the base class|Log::Report::Lexicon::Table/"Administration">.
210
195211 =over 4
196212
197213 =item $obj-E<gt>B<add>(PO)
248264
249265 =head1 SEE ALSO
250266
251 This module is part of Log-Report distribution version 0.993,
252 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
267 This module is part of Log-Report distribution version 0.997,
268 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
253269
254270 =head1 LICENSE
255271
33 # Pod stripped from pm file by OODoc 2.01.
44 package Log::Report::Lexicon::POTcompact;
55 use vars '$VERSION';
6 $VERSION = '0.993';
6 $VERSION = '0.997';
77
88 use base 'Log::Report::Lexicon::Table';
99
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Lexicon::POTcompact - use translations from a POT file
2931 If you like to change the content of PO files, then use
3032 L<Log::Report::Lexicon::POT|Log::Report::Lexicon::POT>.
3133
34 See L<documentation in the base class|Log::Report::Lexicon::Table/"DESCRIPTION">.
35
3236 =head1 METHODS
3337
38 See L<documentation in the base class|Log::Report::Lexicon::Table/"METHODS">.
39
3440 =head2 Constructors
3541
42 See L<documentation in the base class|Log::Report::Lexicon::Table/"Constructors">.
43
3644 =over 4
3745
3846 =item Log::Report::Lexicon::POTcompact-E<gt>B<new>(OPTIONS)
6169
6270 =head2 Attributes
6371
72 See L<documentation in the base class|Log::Report::Lexicon::Table/"Attributes">.
73
6474 =over 4
6575
6676 =item $obj-E<gt>B<filename>()
7686
7787 =head2 Managing PO's
7888
89 See L<documentation in the base class|Log::Report::Lexicon::Table/"Managing PO's">.
90
7991 =head3 Translation
8092
93 See L<documentation in the base class|Log::Report::Lexicon::Table/"Translation">.
94
8195 =over 4
8296
8397 =item $obj-E<gt>B<msgid>(STRING)
95109
96110 =head3 Administration
97111
112 See L<documentation in the base class|Log::Report::Lexicon::Table/"Administration">.
113
98114 =over 4
99115
100116 =item $obj-E<gt>B<add>(PO)
133149
134150 =head1 SEE ALSO
135151
136 This module is part of Log-Report distribution version 0.993,
137 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
152 This module is part of Log-Report distribution version 0.997,
153 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
138154
139155 =head1 LICENSE
140156
33 # Pod stripped from pm file by OODoc 2.01.
44 package Log::Report::Lexicon::Table;
55 use vars '$VERSION';
6 $VERSION = '0.993';
6 $VERSION = '0.997';
77
88
99 use warnings;
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Lexicon::Table - generic interface to translation tables
9597
9698 =head1 SEE ALSO
9799
98 This module is part of Log-Report distribution version 0.993,
99 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
100 This module is part of Log-Report distribution version 0.997,
101 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
100102
101103 =head1 LICENSE
102104
66
77 package Log::Report::Message;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111
1212 use Log::Report 'log-report';
112112
113113 # create a translation
114114 my $text = Log::Report->translator($self->{_domain})
115 ->translate($self, $locale);
115 ->translate($self, $locale);
116
116117 defined $text or return ();
117118
118 my $loc = defined $locale ? setlocale(LC_ALL, $locale) : undef;
119 my $oldloc;
120 if(defined $locale)
121 { $oldloc = setlocale(LC_ALL);
122 setlocale(LC_ALL, $locale);
123 }
119124
120125 if($self->{_expand})
121 { my $re = join '|', map { quotemeta $_ } keys %$self;
126 { my $re = join '|', map quotemeta, keys %$self;
122127 $text =~ s/\{($re)(\%[^}]*)?\}/$self->_expand($1,$2)/ge;
123128 }
124129
128133 $text .= "$self->{_append}"
129134 if defined $self->{_append};
130135
131 setlocale(LC_ALL, $loc) if $loc;
136 setlocale(LC_ALL, $oldloc)
137 if defined $oldloc && $oldloc ne $locale;
132138
133139 $text;
134140 }
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Message - a piece of text to be translated
496498
497499 =head1 SEE ALSO
498500
499 This module is part of Log-Report distribution version 0.993,
500 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
501 This module is part of Log-Report distribution version 0.997,
502 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
501503
502504 =head1 LICENSE
503505
66
77 package Log::Report::Translator::Gettext;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111 use base 'Log::Report::Translator';
1212
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Translator::Gettext - the GNU gettext infrastructure
3941 later you will probably also need bind_textdomain_codeset() which is
4042 also only available on certain systems.
4143
44 See L<documentation in the base class|Log::Report::Translator/"DESCRIPTION">.
45
4246 =head1 METHODS
4347
44 =head2 Constructors
45
46 =over 4
47
48 =item Log::Report::Translator::Gettext-E<gt>B<new>(OPTIONS)
49
50 See L<Log::Report::Translator/"Constructors">
51
52 =back
53
54 =head2 Accessors
55
56 =over 4
57
58 =item $obj-E<gt>B<charset>()
59
60 See L<Log::Report::Translator/"Accessors">
61
62 =item $obj-E<gt>B<lexicons>()
63
64 See L<Log::Report::Translator/"Accessors">
65
66 =back
67
68 =head2 Translating
69
70 =over 4
71
72 =item $obj-E<gt>B<load>(DOMAIN, LOCALE)
73
74 See L<Log::Report::Translator/"Translating">
75
76 =item $obj-E<gt>B<translate>(MESSAGE, [LANGUAGE])
77
78 See L<Log::Report::Translator/"Translating">
79
80 =back
81
48 See L<documentation in the base class|Log::Report::Translator/"METHODS">.
49
8250 =head1 SEE ALSO
8351
84 This module is part of Log-Report distribution version 0.993,
85 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
52 This module is part of Log-Report distribution version 0.997,
53 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
8654
8755 =head1 LICENSE
8856
66
77 package Log::Report::Translator::POT;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111 use base 'Log::Report::Translator';
1212
3333 or return $self->SUPER::translate($msg, $lang);
3434
3535 my $pot
36 = exists $self->{pots}{$locale}
37 ? $self->{pots}{$locale}
36 = exists $self->{pots}{$domain}{$locale}
37 ? $self->{pots}{$domain}{$locale}
3838 : $self->load($domain, $locale);
3939
4040 defined $pot
6969
7070 eval "require $class" or panic $@;
7171
72 return $self->{pots}{$locale}
72 return $self->{pots}{$domain}{$locale}
7373 = $class->read($fn, charset => $self->charset);
7474 }
7575
76 $self->{pots}{$locale} = undef;
76 $self->{pots}{$domain}{$locale} = undef;
7777 }
7878
7979 1;
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Translator::POT - translation based on POT files
3032 using L<Log::Report::Lexicon::POTcompact|Log::Report::Lexicon::POTcompact>, which is much more efficient
3133 than L<Log::Report::Lexicon::PO|Log::Report::Lexicon::PO>.
3234
35 See L<documentation in the base class|Log::Report::Translator/"DESCRIPTION">.
36
3337 =head1 METHODS
3438
39 See L<documentation in the base class|Log::Report::Translator/"METHODS">.
40
3541 =head2 Constructors
3642
43 See L<documentation in the base class|Log::Report::Translator/"Constructors">.
44
3745 =over 4
3846
3947 =item Log::Report::Translator::POT-E<gt>B<new>(OPTIONS)
5462
5563 =head2 Accessors
5664
65 See L<documentation in the base class|Log::Report::Translator/"Accessors">.
66
5767 =over 4
5868
5969 =item $obj-E<gt>B<charset>()
6878
6979 =head2 Translating
7080
81 See L<documentation in the base class|Log::Report::Translator/"Translating">.
82
7183 =over 4
7284
7385 =item $obj-E<gt>B<load>(DOMAIN, LOCALE)
8294
8395 =head1 SEE ALSO
8496
85 This module is part of Log-Report distribution version 0.993,
86 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
97 This module is part of Log-Report distribution version 0.997,
98 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
8799
88100 =head1 LICENSE
89101
33 # Pod stripped from pm file by OODoc 2.01.
44 package Log::Report::Translator;
55 use vars '$VERSION';
6 $VERSION = '0.993';
6 $VERSION = '0.997';
77
88
99 use warnings;
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Translator - base implementation for translating messages
108110
109111 =head1 SEE ALSO
110112
111 This module is part of Log-Report distribution version 0.993,
112 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
113 This module is part of Log-Report distribution version 0.997,
114 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
113115
114116 =head1 LICENSE
115117
77
88 package Log::Report::Util;
99 use vars '$VERSION';
10 $VERSION = '0.993';
10 $VERSION = '0.997';
1111
1212 use base 'Exporter';
1313
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Util - helpful routines to Log::Report
7779
7880 =head1 SEE ALSO
7981
80 This module is part of Log-Report distribution version 0.993,
81 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
82 This module is part of Log-Report distribution version 0.997,
83 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
8284
8385 =head1 LICENSE
8486
66
77 package Log::Report::Win32Locale;
88 use vars '$VERSION';
9 $VERSION = '0.993';
9 $VERSION = '0.997';
1010
1111 use base 'Exporter';
1212
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report::Win32Locale - unix/windows locales
7577
7678 =head1 SEE ALSO
7779
78 This module is part of Log-Report distribution version 0.993,
79 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
80 This module is part of Log-Report distribution version 0.997,
81 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
8082
8183 =head1 LICENSE
8284
33 "Project-Id-Version: log-report 0.01\n"
44 "Report-Msgid-Bugs-To:\n"
55 "POT-Creation-Date: 2007-05-14 17:14+0200\n"
6 "PO-Revision-Date: 2012-08-30 21:52+0200\n"
6 "PO-Revision-Date: 2013-08-22 16:17+0200\n"
77 "Last-Translator: Mark Overmeer <mark@overmeer.net>\n"
88 "Language-Team:\n"
99 "MIME-Version: 1.0\n"
8181 msgid "WARNING"
8282 msgstr "WAARSCHUWING"
8383
84 #: lib/Log/Report.pm:268
84 #: lib/Log/Report.pm:256
8585 msgid "a message object is reported with more parameters"
8686 msgstr "een message object vergezeld van meer parameters"
8787
88 #: lib/Log/Report/Dispatcher.pm:303 lib/Log/Report/Dispatcher.pm:313
88 #: lib/Log/Report/Dispatcher.pm:299 lib/Log/Report/Dispatcher.pm:309
8989 msgid "at {filename} line {line}"
9090 msgstr "in {filename} regel {line}"
9191
9393 msgid "cannot create lexicon directory {dir}"
9494 msgstr "kan lexicon map {dir} niet aanmaken"
9595
96 #: bin/xgettext-perl:60
96 #: bin/xgettext-perl:57
9797 msgid "cannot create output directory {dir}"
9898 msgstr "uitvoer map {dir} kan niet worden aangemaakt"
9999
101101 msgid "cannot find logger '{name}' in configuration {config}"
102102 msgstr "kan logger '{name}' in configuratie {config} niet vinden"
103103
104 #: bin/xgettext-perl:68
104 #: bin/xgettext-perl:65
105105 msgid "cannot read filename list from {fn}"
106106 msgstr "lijst met filenamen {fn} kan niet worden gelezen"
107107
109109 msgid "cannot read from file {filename}"
110110 msgstr "kan bestand {filename} niet lezen"
111111
112 #: lib/Log/Report/Lexicon/POT.pm:146 lib/Log/Report/Lexicon/POTcompact.pm:69
112 #: lib/Log/Report/Lexicon/MOTcompact.pm:70 lib/Log/Report/Lexicon/POT.pm:149
113 #: lib/Log/Report/Lexicon/POTcompact.pm:60
113114 msgid "cannot read in {cs} from file {fn}"
114115 msgstr "kan bestand {fn} niet lezen in {cs}"
115116
116 #: lib/Log/Report/Extract/Template.pm:92
117 #: lib/Log/Report/Lexicon/MOTcompact.pm:77
118 #, fuzzy
119 msgid "cannot read magic from {fn}"
120 msgstr ""
121
122 #: lib/Log/Report/Lexicon/MOTcompact.pm:129
123 #, fuzzy
124 msgid "cannot read msgids from {fn}, need {size} at {loc}"
125 msgstr ""
126
127 #: lib/Log/Report/Lexicon/MOTcompact.pm:101
128 #, fuzzy
129 msgid "cannot read originals from {fn}, need {size} at {loc}"
130 msgstr ""
131
132 #: lib/Log/Report/Lexicon/MOTcompact.pm:87
133 #, fuzzy
134 msgid "cannot read superblock from {fn}"
135 msgstr ""
136
137 #: lib/Log/Report/Extract/Template.pm:98
117138 msgid "cannot read template from {fn}"
118139 msgstr "template {fn} kan niet worden gelezen"
140
141 #: lib/Log/Report/Lexicon/MOTcompact.pm:208
142 #, fuzzy
143 msgid "cannot read transl late from {fn}, need {size} at {loc}"
144 msgstr ""
145
146 #: lib/Log/Report/Lexicon/MOTcompact.pm:112
147 #: lib/Log/Report/Lexicon/MOTcompact.pm:140
148 #, fuzzy
149 msgid "cannot read translations from {fn}, need {size} at {loc}"
150 msgstr ""
151
152 #: lib/Log/Report/Lexicon/MOTcompact.pm:123
153 #, fuzzy
154 msgid "cannot seek to {loc} in {fn} for msgid strings"
155 msgstr ""
156
157 #: lib/Log/Report/Lexicon/MOTcompact.pm:97
158 #, fuzzy
159 msgid "cannot seek to {loc} in {fn} for originals"
160 msgstr ""
161
162 #: lib/Log/Report/Lexicon/MOTcompact.pm:134
163 #, fuzzy
164 msgid "cannot seek to {loc} in {fn} for transl strings"
165 msgstr ""
166
167 #: lib/Log/Report/Lexicon/MOTcompact.pm:108
168 #, fuzzy
169 msgid "cannot seek to {loc} in {fn} for translations"
170 msgstr ""
171
172 #: lib/Log/Report/Lexicon/MOTcompact.pm:203
173 #, fuzzy
174 msgid "cannot seek to {loc} late in {fn} for transl strings"
175 msgstr ""
119176
120177 #: lib/Log/Report/Dispatcher/File.pm:96
121178 msgid "cannot write log into {file} with {binmode}"
122179 msgstr "kan log niet naar bestand {file} schrijven in {binmode}"
123180
124 #: lib/Log/Report/Lexicon/POT.pm:196
181 #: lib/Log/Report/Lexicon/POT.pm:203
125182 msgid "cannot write to file {fn} in {layers}"
126183 msgstr "kan bestand {fn} niet schrijven in {layers}"
127184
128 #: lib/Log/Report/Lexicon/POT.pm:107 lib/Log/Report/Lexicon/POT.pm:143
185 #: lib/Log/Report/Lexicon/POT.pm:106 lib/Log/Report/Lexicon/POT.pm:146
129186 msgid "charset parameter is required for {fn}"
130187 msgstr "charset argument is verplicht voor {fn}"
131188
132 #: lib/Log/Report/Lexicon/POTcompact.pm:66
189 #: lib/Log/Report/Lexicon/MOTcompact.pm:57
190 #: lib/Log/Report/Lexicon/POTcompact.pm:57
133191 msgid "charset parameter required for {fn}"
134192 msgstr ""
135193
141199 msgid "dispatcher {name} needs parameter 'to'"
142200 msgstr "dispatcher {name} verlangt argument 'to'"
143201
144 #: bin/xgettext-perl:65
202 #: bin/xgettext-perl:62
145203 msgid "do not combine command-line filenames with --files-from"
146204 msgstr "combineer filenamen op de commando-regel niet met --files-from"
147205
149207 msgid "do not interpolate in msgid (found '{var}' in line {line})"
150208 msgstr "gebruik geen variabelen in een msgid (vond '{var}' op regel {line'})"
151209
152 #: lib/Log/Report/Lexicon/PO.pm:348
210 #: lib/Log/Report/Lexicon/PO.pm:374
153211 msgid "do not understand command '{cmd}' at {where}"
154212 msgstr "commando '{cmd}' op plaats {where} niet begrepen"
155213
156 #: lib/Log/Report/Lexicon/PO.pm:365
214 #: lib/Log/Report/Lexicon/PO.pm:391
157215 msgid ""
158216 "do not understand line at {where}:\n"
159217 " {line}"
161219 "de regel op {where} wordt niet begrepen:\n"
162220 " {line}"
163221
164 #: lib/Log/Report.pm:654
222 #: lib/Log/Report.pm:656
165223 msgid "even length parameter list for __x at {where}"
166224 msgstr "een even-lengte lijst van parameters bij __x bij {where}"
167225
168 #: bin/xgettext-perl:57
226 #: bin/xgettext-perl:54
169227 msgid "explicit output directory (-p) required"
170228 msgstr "expliciete uitvoer map (met -p) verplicht"
171229
173231 msgid "extractions require an explicit lexicon directory"
174232 msgstr "een expliciete lexicon directory is nodig voor de uittreksels"
175233
176 #: lib/Log/Report/Lexicon/POT.pm:163 lib/Log/Report/Lexicon/POTcompact.pm:106
234 #: lib/Log/Report/Lexicon/MOTcompact.pm:162 lib/Log/Report/Lexicon/POT.pm:169
235 #: lib/Log/Report/Lexicon/POTcompact.pm:100
177236 msgid "failed reading from file {fn}"
178237 msgstr "lezen uit bestand {fn} mislukt"
179238
187246 msgid "illegal format_reason '{format}' for dispatcher"
188247 msgstr "onbekende format_reason '{format}' voor dispatcher"
189248
190 #: lib/Log/Report/Lexicon/POTcompact.pm:182
249 #: lib/Log/Report/Lexicon/Table.pm:98
191250 msgid "invalid plural-form algorithm '{alg}'"
192251 msgstr "incorrect meervoudsvorm algoritme '{alg}'"
193252
195254 msgid "message() of exception expects Log::Report::Message"
196255 msgstr "message() van een exception verwacht een Log::Report::Message"
197256
198 #: lib/Log/Report/Extract/Template.pm:102
257 #: lib/Log/Report/Extract/Template.pm:93
199258 msgid "need pattern to scan for, either via new() or process()"
200259 msgstr "een scan pattern is nodig, via new() of process()"
201260
208267 msgid "no Perl in file {filename}"
209268 msgstr ""
210269
211 #: lib/Log/Report/Lexicon/POT.pm:187
270 #: lib/Log/Report/Lexicon/POT.pm:194
212271 msgid "no filename or file-handle specified for PO"
213272 msgstr "geen bestandsnaam of -handle meegegeven voor PO"
214273
215 #: lib/Log/Report/Lexicon/POT.pm:327
274 #: lib/Log/Report/Lexicon/POT.pm:317
216275 msgid "no header defined in POT for file {fn}"
217276 msgstr "geen kop opgegeven in POT in bestand {fn}"
218277
219 #: lib/Log/Report/Lexicon/PO.pm:370
278 #: lib/Log/Report/Lexicon/PO.pm:397
220279 msgid "no msgid in block {where}"
221280 msgstr "geen msgid in blok {where}"
222281
223 #: lib/Log/Report/Lexicon/PO.pm:446
282 #: lib/Log/Report/Lexicon/PO.pm:476
224283 msgid "no plurals for '{msgid}'"
225284 msgstr "geen meervoudsvormen voor '{msgid}'"
226285
228287 msgid "no text-domain for translatable at {fn} line {line}"
229288 msgstr "geen text-domain voor vertaalbare string in {fn} regel {line}"
230289
231 #: lib/Log/Report.pm:505
290 #: lib/Log/Report.pm:506
232291 msgid "odd length parameter list for try(): forgot the terminating ';'?"
233292 msgstr "oneven lengte van parameterlijst voor try(): afsluitende ';' vergeten?"
234293
235 #: lib/Log/Report.pm:276
294 #: lib/Log/Report.pm:264
236295 msgid "odd length parameter list with '{msg}'"
237296 msgstr "parameter-lijst van oneven lengte bij '{msg}'"
238297
239 #: lib/Log/Report.pm:432
298 #: lib/Log/Report.pm:421
240299 msgid "only one dispatcher name accepted in SCALAR context"
241300 msgstr "dispatcher gebruik in SCALAR context accepteert slechts één naam"
242301
243 #: lib/Log/Report.pm:939
302 #: lib/Log/Report.pm:954
244303 msgid "only one package can contain configuration; for {domain} already in {pkg} in file {fn} line {line}"
245304 msgstr "slechts één package mag configuratie informatie bevatten; voor {domain} is dit al gevonden in {pkg}, bestand {fn} regel {line}"
246305
247 #: lib/Log/Report/Extract/PerlPPI.pm:77 lib/Log/Report/Extract/Template.pm:87
306 #: lib/Log/Report/Extract/PerlPPI.pm:77 lib/Log/Report/Extract/Template.pm:90
248307 msgid "processing file {fn} in {charset}"
249308 msgstr "verwerk bestand {fn} in {charset}"
250309
251 #: bin/xgettext-perl:54
310 #: bin/xgettext-perl:51
252311 msgid "programming language {lang} not supported"
253312 msgstr "programmeertaal {lang} wordt niet ondersteund"
254313
255 #: lib/Log/Report/Lexicon/PO.pm:360
314 #: lib/Log/Report/Lexicon/PO.pm:386
256315 msgid "quoted line is not a continuation at {where}"
257316 msgstr "regel met quotes is geen voortzetting in {where}"
258317
259 #: lib/Log/Report/Translator/POT.pm:85
260 msgid "read pot-file {filename} for {domain} in {locale}"
261 msgstr "lees pot bestand {filename} voor {domain} in {locale}"
318 #~ msgid "read pot-file {filename} for {domain} in {locale}"
319 #~ msgstr "lees pot bestand {filename} voor {domain} in {locale}"
320
321 #: lib/Log/Report/Translator/POT.pm:90
322 #, fuzzy
323 msgid "read table {filename} as {class} for {domain} in {locale}"
324 msgstr ""
262325
263326 #: lib/Log/Report/Util.pm:136
264327 msgid "reason '{begin}' more serious than '{end}' in '{reasons}"
265328 msgstr "reden '{begin}' is serieuzer dan '{end}' in '{reasons}'"
266329
267 #: lib/Log/Report/Extract/Template.pm:186
268 msgid "scan pattern `{pattern}' not recognized"
269 msgstr "scan patroon `{pattern}' wordt niet herkend"
330 #~ msgid "scan pattern `{pattern}' not recognized"
331 #~ msgstr "scan patroon `{pattern}' wordt niet herkend"
332
333 #: bin/xgettext-perl:83
334 #, fuzzy
335 msgid "specify a text-domain (-d) for the templates"
336 msgstr ""
270337
271338 #: lib/Log/Report/Extract.pm:208
272339 msgid "starting new textdomain {domain}, template in {filename}"
273340 msgstr "begin van nieuw textdomain {domain}, sjabloon in {filename}"
274341
275 #: lib/Log/Report/Lexicon/POTcompact.pm:194
342 #: lib/Log/Report/Lexicon/POTcompact.pm:154
276343 msgid "string '{text}' not between quotes at {location}"
277344 msgstr "tekst '{text}' niet tussen quotes in {location}"
278345
280347 msgid "string is incorrect at line {line}: {error}"
281348 msgstr "foutieve string in regel {regel}: {error}"
282349
283 #: lib/Log/Report/Dispatcher.pm:215
350 #: lib/Log/Report/Dispatcher.pm:211
284351 msgid "switching to run mode {mode}, accept {accept}"
285352 msgstr "verwerkingsmode {mode}, accepteert {accept}"
286353
287 #: lib/Log/Report.pm:867
354 #: lib/Log/Report.pm:882
288355 msgid "syntax flag must be either SHORT or REPORT, not `{syntax}'"
289356 msgstr "syntax parameter moet zijn SHORT of REPORT, niet `{syntax}'"
290357
292359 msgid "syslog level '{level}' not understood"
293360 msgstr "syslog level '{level}' niet herkend"
294361
295 #: lib/Log/Report.pm:907
362 #: lib/Log/Report/Extract/Template.pm:145
363 #, fuzzy
364 msgid "template syntax error, no END in {fn} line {line}"
365 msgstr ""
366
367 #: lib/Log/Report.pm:922
296368 msgid "textdomain for translator not defined"
297369 msgstr "tekstdomein voor vertaler niet gedefinieerd"
298370
299 #: lib/Log/Report/Lexicon/POT.pm:112
371 #: lib/Log/Report/Lexicon/POT.pm:111
300372 msgid "textdomain parameter is required"
301373 msgstr "tekstdomain argument is verplicht"
302374
303 #: lib/Log/Report.pm:417
375 #: lib/Log/Report.pm:406
304376 msgid "the 'filter' sub-command needs a CODE reference"
305377 msgstr "het 'filter' sub-commando verwacht een CODE referentie"
306378
307 #: lib/Log/Report.pm:404
379 #: lib/Log/Report.pm:393
308380 msgid "the 'list' sub-command doesn't expect additional parameters"
309381 msgstr "het 'list' sub-commando verwacht geen aanvullende argumenten"
310382
311 #: lib/Log/Report.pm:410
383 #: lib/Log/Report.pm:399
312384 msgid "the 'needs' sub-command parameter '{reason}' is not a reason"
313385 msgstr "het 'needs' sub-commando argument '{reason}' is geen reden"
314386
315 #: lib/Log/Report/Lexicon/POT.pm:286
387 #: lib/Log/Report/Lexicon/POT.pm:296
316388 msgid "the only acceptable parameter is 'ACTIVE', not '{p}'"
317389 msgstr "het enige geaccepteerde argument is 'ACTIVE', niet '{p}'"
318390
319 #: lib/Log/Report.pm:245
391 #: lib/Log/Report/Lexicon/Table.pm:93
392 #, fuzzy
393 msgid "there is no Plural-Forms field in the header"
394 msgstr ""
395
396 #: lib/Log/Report.pm:233
320397 msgid "token '{token}' not recognized as reason"
321398 msgstr "token '{token}' niet herkend als reden"
322399
323 #: lib/Log/Report/Lexicon/PO.pm:435
400 #: lib/Log/Report/Lexicon/PO.pm:465
324401 msgid "too many plurals for '{msgid}'"
325402 msgstr "te veel meervouden voor '{msgid}'"
326403
327 #: lib/Log/Report/Lexicon/POT.pm:269
404 #: lib/Log/Report/Lexicon/POT.pm:279
328405 msgid "translation already exists for '{msgid}'"
329406 msgstr "er bestaat al een vertaling voor '{msgid}'"
330407
331 #: lib/Log/Report.pm:914
408 #: lib/Log/Report.pm:929
332409 msgid "translator must be a Log::Report::Translator object"
333410 msgstr "vertaler moet een Log::Report::Translator object zijn"
334411
336413 msgid "try-block stopped with {reason}: {text}"
337414 msgstr "try-blok gestopt met {reason}: {text}"
338415
339 #: lib/Log/Report/Lexicon/PO.pm:326
416 #: lib/Log/Report/Lexicon/PO.pm:348
340417 msgid "unknown comment type '{cmd}' at {where}"
341418 msgstr "onbekend commentaar type '{cmd}' in {where}"
342419
343 #: lib/Log/Report/Lexicon/PO.pm:294
420 #: lib/Log/Report/Lexicon/PO.pm:316
344421 msgid "unknown flag {flag} ignored"
345422 msgstr "onbekende vlag {flag} wordt genegeerd"
346423
348425 msgid "unknown locale language in locale `{locale}'"
349426 msgstr "onbekende locale taal in locale `{locale}'"
350427
428 #: lib/Log/Report/Extract/Template.pm:114
429 #, fuzzy
430 msgid "unknown pattern {pattern}"
431 msgstr ""
432
351433 #: lib/Log/Report/Util.pm:133 lib/Log/Report/Util.pm:148
352434 msgid "unknown reason {which} in '{reasons}'"
353435 msgstr "onbekende reden {which} is '{reasons}'"
354436
355 #: lib/Log/Report/Dispatcher.pm:211
356 msgid "unknown run mode '{mode}'"
357 msgstr "onbekende verwerkingsmode '{mode}'"
358
359 #: lib/Log/Report/Lexicon/POT.pm:108
437 #~ msgid "unknown run mode '{mode}'"
438 #~ msgstr "onbekende verwerkingsmode '{mode}'"
439
440 #: lib/Log/Report/Translator/POT.pm:87
441 #, fuzzy
442 msgid "unknown translation table extension '{ext}' in {filename}"
443 msgstr ""
444
445 #: lib/Log/Report/Lexicon/POT.pm:107
360446 msgid "unnamed file"
361447 msgstr "naamloze file"
362448
363 #: lib/Log/Report.pm:944
449 #: lib/Log/Report/Lexicon/MOTcompact.pm:82
450 #, fuzzy
451 msgid "unsupported file type (magic number is {magic%x})"
452 msgstr ""
453
454 #: lib/Log/Report.pm:959
364455 msgid "value for {name} specified twice"
365456 msgstr "twee keer een waarde voor {name}"
366457
367 #: lib/Log/Report/Lexicon/POT.pm:212
458 #: lib/Log/Report/Lexicon/POT.pm:219
368459 msgid "write errors for file {fn}"
369460 msgstr "schrijfproblemen bij bestand {fn}"
370461
384475 msgid "{domain}: {fuzzy%3d} fuzzy, {inact%3d} inactive in {filename}"
385476 msgstr "{domain}: {fuzzy%3d} fuzzy, {inact%3d} op non-actief in {filename}"
386477
387 #: lib/Log/Report/Dispatcher.pm:289
478 #: lib/Log/Report/Dispatcher.pm:285
388479 msgid "{message}; {error}"
389480 msgstr "{message}; {error}"
390481
391 #: lib/Log/Report/Dispatcher.pm:288
482 #: lib/Log/Report/Dispatcher.pm:284
392483 msgid "{reason}: {message}"
393484 msgstr "{reason}: {message}"
394485
395 #: lib/Log/Report/Dispatcher.pm:287
486 #: lib/Log/Report/Dispatcher.pm:283
396487 msgid "{reason}: {message}; {error}"
397488 msgstr "{reason}: {message}; {error}"
33 "Project-Id-Version: log-report 0.01\n"
44 "Report-Msgid-Bugs-To:\n"
55 "POT-Creation-Date: 2007-05-14 17:14+0200\n"
6 "PO-Revision-Date: 2012-08-30 21:52+0200\n"
6 "PO-Revision-Date: 2013-08-22 16:17+0200\n"
77 "Last-Translator:\n"
88 "Language-Team:\n"
99 "MIME-Version: 1.0\n"
100100 msgid "WARNING"
101101 msgstr ""
102102
103 #: lib/Log/Report.pm:268
103 #: lib/Log/Report.pm:256
104104 #, fuzzy
105105 msgid "a message object is reported with more parameters"
106106 msgstr ""
107107
108 #: lib/Log/Report/Dispatcher.pm:303 lib/Log/Report/Dispatcher.pm:313
108 #: lib/Log/Report/Dispatcher.pm:299 lib/Log/Report/Dispatcher.pm:309
109109 #, fuzzy
110110 msgid "at {filename} line {line}"
111111 msgstr ""
115115 msgid "cannot create lexicon directory {dir}"
116116 msgstr ""
117117
118 #: bin/xgettext-perl:60
118 #: bin/xgettext-perl:57
119119 #, fuzzy
120120 msgid "cannot create output directory {dir}"
121121 msgstr ""
125125 msgid "cannot find logger '{name}' in configuration {config}"
126126 msgstr ""
127127
128 #: bin/xgettext-perl:68
128 #: bin/xgettext-perl:65
129129 #, fuzzy
130130 msgid "cannot read filename list from {fn}"
131131 msgstr ""
135135 msgid "cannot read from file {filename}"
136136 msgstr ""
137137
138 #: lib/Log/Report/Lexicon/POT.pm:146 lib/Log/Report/Lexicon/POTcompact.pm:69
138 #: lib/Log/Report/Lexicon/MOTcompact.pm:70 lib/Log/Report/Lexicon/POT.pm:149
139 #: lib/Log/Report/Lexicon/POTcompact.pm:60
139140 #, fuzzy
140141 msgid "cannot read in {cs} from file {fn}"
141142 msgstr ""
142143
143 #: lib/Log/Report/Extract/Template.pm:92
144 #: lib/Log/Report/Lexicon/MOTcompact.pm:77
145 #, fuzzy
146 msgid "cannot read magic from {fn}"
147 msgstr ""
148
149 #: lib/Log/Report/Lexicon/MOTcompact.pm:129
150 #, fuzzy
151 msgid "cannot read msgids from {fn}, need {size} at {loc}"
152 msgstr ""
153
154 #: lib/Log/Report/Lexicon/MOTcompact.pm:101
155 #, fuzzy
156 msgid "cannot read originals from {fn}, need {size} at {loc}"
157 msgstr ""
158
159 #: lib/Log/Report/Lexicon/MOTcompact.pm:87
160 #, fuzzy
161 msgid "cannot read superblock from {fn}"
162 msgstr ""
163
164 #: lib/Log/Report/Extract/Template.pm:98
144165 #, fuzzy
145166 msgid "cannot read template from {fn}"
146167 msgstr ""
147168
169 #: lib/Log/Report/Lexicon/MOTcompact.pm:208
170 #, fuzzy
171 msgid "cannot read transl late from {fn}, need {size} at {loc}"
172 msgstr ""
173
174 #: lib/Log/Report/Lexicon/MOTcompact.pm:112
175 #: lib/Log/Report/Lexicon/MOTcompact.pm:140
176 #, fuzzy
177 msgid "cannot read translations from {fn}, need {size} at {loc}"
178 msgstr ""
179
180 #: lib/Log/Report/Lexicon/MOTcompact.pm:123
181 #, fuzzy
182 msgid "cannot seek to {loc} in {fn} for msgid strings"
183 msgstr ""
184
185 #: lib/Log/Report/Lexicon/MOTcompact.pm:97
186 #, fuzzy
187 msgid "cannot seek to {loc} in {fn} for originals"
188 msgstr ""
189
190 #: lib/Log/Report/Lexicon/MOTcompact.pm:134
191 #, fuzzy
192 msgid "cannot seek to {loc} in {fn} for transl strings"
193 msgstr ""
194
195 #: lib/Log/Report/Lexicon/MOTcompact.pm:108
196 #, fuzzy
197 msgid "cannot seek to {loc} in {fn} for translations"
198 msgstr ""
199
200 #: lib/Log/Report/Lexicon/MOTcompact.pm:203
201 #, fuzzy
202 msgid "cannot seek to {loc} late in {fn} for transl strings"
203 msgstr ""
204
148205 #: lib/Log/Report/Dispatcher/File.pm:96
149206 #, fuzzy
150207 msgid "cannot write log into {file} with {binmode}"
151208 msgstr ""
152209
153 #: lib/Log/Report/Lexicon/POT.pm:196
210 #: lib/Log/Report/Lexicon/POT.pm:203
154211 #, fuzzy
155212 msgid "cannot write to file {fn} in {layers}"
156213 msgstr ""
157214
158 #: lib/Log/Report/Lexicon/POT.pm:107 lib/Log/Report/Lexicon/POT.pm:143
215 #: lib/Log/Report/Lexicon/POT.pm:106 lib/Log/Report/Lexicon/POT.pm:146
159216 #, fuzzy
160217 msgid "charset parameter is required for {fn}"
161218 msgstr ""
162219
163 #: lib/Log/Report/Lexicon/POTcompact.pm:66
220 #: lib/Log/Report/Lexicon/MOTcompact.pm:57
221 #: lib/Log/Report/Lexicon/POTcompact.pm:57
164222 #, fuzzy
165223 msgid "charset parameter required for {fn}"
166224 msgstr ""
175233 msgid "dispatcher {name} needs parameter 'to'"
176234 msgstr ""
177235
178 #: bin/xgettext-perl:65
236 #: bin/xgettext-perl:62
179237 #, fuzzy
180238 msgid "do not combine command-line filenames with --files-from"
181239 msgstr ""
185243 msgid "do not interpolate in msgid (found '{var}' in line {line})"
186244 msgstr ""
187245
188 #: lib/Log/Report/Lexicon/PO.pm:348
246 #: lib/Log/Report/Lexicon/PO.pm:374
189247 #, fuzzy
190248 msgid "do not understand command '{cmd}' at {where}"
191249 msgstr ""
192250
193 #: lib/Log/Report/Lexicon/PO.pm:365
251 #: lib/Log/Report/Lexicon/PO.pm:391
194252 #, fuzzy
195253 msgid ""
196254 "do not understand line at {where}:\n"
197255 " {line}"
198256 msgstr ""
199257
200 #: lib/Log/Report.pm:654
258 #: lib/Log/Report.pm:656
201259 #, fuzzy
202260 msgid "even length parameter list for __x at {where}"
203261 msgstr ""
204262
205 #: bin/xgettext-perl:57
263 #: bin/xgettext-perl:54
206264 #, fuzzy
207265 msgid "explicit output directory (-p) required"
208266 msgstr ""
212270 msgid "extractions require an explicit lexicon directory"
213271 msgstr ""
214272
215 #: lib/Log/Report/Lexicon/POT.pm:163 lib/Log/Report/Lexicon/POTcompact.pm:106
273 #: lib/Log/Report/Lexicon/MOTcompact.pm:162 lib/Log/Report/Lexicon/POT.pm:169
274 #: lib/Log/Report/Lexicon/POTcompact.pm:100
216275 #, fuzzy
217276 msgid "failed reading from file {fn}"
218277 msgstr ""
229288 msgid "illegal format_reason '{format}' for dispatcher"
230289 msgstr ""
231290
232 #: lib/Log/Report/Lexicon/POTcompact.pm:182
291 #: lib/Log/Report/Lexicon/Table.pm:98
233292 #, fuzzy
234293 msgid "invalid plural-form algorithm '{alg}'"
235294 msgstr ""
239298 msgid "message() of exception expects Log::Report::Message"
240299 msgstr ""
241300
242 #: lib/Log/Report/Extract/Template.pm:102
301 #: lib/Log/Report/Extract/Template.pm:93
243302 #, fuzzy
244303 msgid "need pattern to scan for, either via new() or process()"
245304 msgstr ""
254313 msgid "no Perl in file {filename}"
255314 msgstr ""
256315
257 #: lib/Log/Report/Lexicon/POT.pm:187
316 #: lib/Log/Report/Lexicon/POT.pm:194
258317 #, fuzzy
259318 msgid "no filename or file-handle specified for PO"
260319 msgstr ""
261320
262 #: lib/Log/Report/Lexicon/POT.pm:327
321 #: lib/Log/Report/Lexicon/POT.pm:317
263322 #, fuzzy
264323 msgid "no header defined in POT for file {fn}"
265324 msgstr ""
266325
267 #: lib/Log/Report/Lexicon/PO.pm:370
326 #: lib/Log/Report/Lexicon/PO.pm:397
268327 #, fuzzy
269328 msgid "no msgid in block {where}"
270329 msgstr ""
271330
272 #: lib/Log/Report/Lexicon/PO.pm:446
331 #: lib/Log/Report/Lexicon/PO.pm:476
273332 #, fuzzy
274333 msgid "no plurals for '{msgid}'"
275334 msgstr ""
279338 msgid "no text-domain for translatable at {fn} line {line}"
280339 msgstr ""
281340
282 #: lib/Log/Report.pm:505
341 #: lib/Log/Report.pm:506
283342 #, fuzzy
284343 msgid "odd length parameter list for try(): forgot the terminating ';'?"
285344 msgstr ""
286345
287 #: lib/Log/Report.pm:276
346 #: lib/Log/Report.pm:264
288347 #, fuzzy
289348 msgid "odd length parameter list with '{msg}'"
290349 msgstr ""
291350
292 #: lib/Log/Report.pm:432
351 #: lib/Log/Report.pm:421
293352 #, fuzzy
294353 msgid "only one dispatcher name accepted in SCALAR context"
295354 msgstr ""
296355
297 #: lib/Log/Report.pm:939
356 #: lib/Log/Report.pm:954
298357 #, fuzzy
299358 msgid "only one package can contain configuration; for {domain} already in {pkg} in file {fn} line {line}"
300359 msgstr ""
301360
302 #: lib/Log/Report/Extract/PerlPPI.pm:77 lib/Log/Report/Extract/Template.pm:87
361 #: lib/Log/Report/Extract/PerlPPI.pm:77 lib/Log/Report/Extract/Template.pm:90
303362 #, fuzzy
304363 msgid "processing file {fn} in {charset}"
305364 msgstr ""
306365
307 #: bin/xgettext-perl:54
366 #: bin/xgettext-perl:51
308367 #, fuzzy
309368 msgid "programming language {lang} not supported"
310369 msgstr ""
311370
312 #: lib/Log/Report/Lexicon/PO.pm:360
371 #: lib/Log/Report/Lexicon/PO.pm:386
313372 #, fuzzy
314373 msgid "quoted line is not a continuation at {where}"
315374 msgstr ""
316375
317 #: lib/Log/Report/Translator/POT.pm:85
318 #, fuzzy
319 msgid "read pot-file {filename} for {domain} in {locale}"
376 #: lib/Log/Report/Translator/POT.pm:90
377 #, fuzzy
378 msgid "read table {filename} as {class} for {domain} in {locale}"
320379 msgstr ""
321380
322381 #: lib/Log/Report/Util.pm:136
324383 msgid "reason '{begin}' more serious than '{end}' in '{reasons}"
325384 msgstr ""
326385
327 #: lib/Log/Report/Extract/Template.pm:186
328 #, fuzzy
329 msgid "scan pattern `{pattern}' not recognized"
386 #: bin/xgettext-perl:83
387 #, fuzzy
388 msgid "specify a text-domain (-d) for the templates"
330389 msgstr ""
331390
332391 #: lib/Log/Report/Extract.pm:208
334393 msgid "starting new textdomain {domain}, template in {filename}"
335394 msgstr ""
336395
337 #: lib/Log/Report/Lexicon/POTcompact.pm:194
396 #: lib/Log/Report/Lexicon/POTcompact.pm:154
338397 #, fuzzy
339398 msgid "string '{text}' not between quotes at {location}"
340399 msgstr ""
344403 msgid "string is incorrect at line {line}: {error}"
345404 msgstr ""
346405
347 #: lib/Log/Report/Dispatcher.pm:215
406 #: lib/Log/Report/Dispatcher.pm:211
348407 #, fuzzy
349408 msgid "switching to run mode {mode}, accept {accept}"
350409 msgstr ""
351410
352 #: lib/Log/Report.pm:867
411 #: lib/Log/Report.pm:882
353412 #, fuzzy
354413 msgid "syntax flag must be either SHORT or REPORT, not `{syntax}'"
355414 msgstr ""
359418 msgid "syslog level '{level}' not understood"
360419 msgstr ""
361420
362 #: lib/Log/Report.pm:907
421 #: lib/Log/Report/Extract/Template.pm:145
422 #, fuzzy
423 msgid "template syntax error, no END in {fn} line {line}"
424 msgstr ""
425
426 #: lib/Log/Report.pm:922
363427 #, fuzzy
364428 msgid "textdomain for translator not defined"
365429 msgstr ""
366430
367 #: lib/Log/Report/Lexicon/POT.pm:112
431 #: lib/Log/Report/Lexicon/POT.pm:111
368432 #, fuzzy
369433 msgid "textdomain parameter is required"
370434 msgstr ""
371435
372 #: lib/Log/Report.pm:417
436 #: lib/Log/Report.pm:406
373437 #, fuzzy
374438 msgid "the 'filter' sub-command needs a CODE reference"
375439 msgstr ""
376440
377 #: lib/Log/Report.pm:404
441 #: lib/Log/Report.pm:393
378442 #, fuzzy
379443 msgid "the 'list' sub-command doesn't expect additional parameters"
380444 msgstr ""
381445
382 #: lib/Log/Report.pm:410
446 #: lib/Log/Report.pm:399
383447 #, fuzzy
384448 msgid "the 'needs' sub-command parameter '{reason}' is not a reason"
385449 msgstr ""
386450
387 #: lib/Log/Report/Lexicon/POT.pm:286
451 #: lib/Log/Report/Lexicon/POT.pm:296
388452 #, fuzzy
389453 msgid "the only acceptable parameter is 'ACTIVE', not '{p}'"
390454 msgstr ""
391455
392 #: lib/Log/Report.pm:245
456 #: lib/Log/Report/Lexicon/Table.pm:93
457 #, fuzzy
458 msgid "there is no Plural-Forms field in the header"
459 msgstr ""
460
461 #: lib/Log/Report.pm:233
393462 #, fuzzy
394463 msgid "token '{token}' not recognized as reason"
395464 msgstr ""
396465
397 #: lib/Log/Report/Lexicon/PO.pm:435
466 #: lib/Log/Report/Lexicon/PO.pm:465
398467 #, fuzzy
399468 msgid "too many plurals for '{msgid}'"
400469 msgstr ""
401470
402 #: lib/Log/Report/Lexicon/POT.pm:269
471 #: lib/Log/Report/Lexicon/POT.pm:279
403472 #, fuzzy
404473 msgid "translation already exists for '{msgid}'"
405474 msgstr ""
406475
407 #: lib/Log/Report.pm:914
476 #: lib/Log/Report.pm:929
408477 #, fuzzy
409478 msgid "translator must be a Log::Report::Translator object"
410479 msgstr ""
414483 msgid "try-block stopped with {reason}: {text}"
415484 msgstr ""
416485
417 #: lib/Log/Report/Lexicon/PO.pm:326
486 #: lib/Log/Report/Lexicon/PO.pm:348
418487 #, fuzzy
419488 msgid "unknown comment type '{cmd}' at {where}"
420489 msgstr ""
421490
422 #: lib/Log/Report/Lexicon/PO.pm:294
491 #: lib/Log/Report/Lexicon/PO.pm:316
423492 #, fuzzy
424493 msgid "unknown flag {flag} ignored"
425494 msgstr ""
429498 msgid "unknown locale language in locale `{locale}'"
430499 msgstr ""
431500
501 #: lib/Log/Report/Extract/Template.pm:114
502 #, fuzzy
503 msgid "unknown pattern {pattern}"
504 msgstr ""
505
432506 #: lib/Log/Report/Util.pm:133 lib/Log/Report/Util.pm:148
433507 #, fuzzy
434508 msgid "unknown reason {which} in '{reasons}'"
435509 msgstr ""
436510
437 #: lib/Log/Report/Dispatcher.pm:211
438 #, fuzzy
439 msgid "unknown run mode '{mode}'"
440 msgstr ""
441
442 #: lib/Log/Report/Lexicon/POT.pm:108
511 #: lib/Log/Report/Translator/POT.pm:87
512 #, fuzzy
513 msgid "unknown translation table extension '{ext}' in {filename}"
514 msgstr ""
515
516 #: lib/Log/Report/Lexicon/POT.pm:107
443517 #, fuzzy
444518 msgid "unnamed file"
445519 msgstr ""
446520
447 #: lib/Log/Report.pm:944
521 #: lib/Log/Report/Lexicon/MOTcompact.pm:82
522 #, fuzzy
523 msgid "unsupported file type (magic number is {magic%x})"
524 msgstr ""
525
526 #: lib/Log/Report.pm:959
448527 #, fuzzy
449528 msgid "value for {name} specified twice"
450529 msgstr ""
451530
452 #: lib/Log/Report/Lexicon/POT.pm:212
531 #: lib/Log/Report/Lexicon/POT.pm:219
453532 #, fuzzy
454533 msgid "write errors for file {fn}"
455534 msgstr ""
473552 msgid "{domain}: {fuzzy%3d} fuzzy, {inact%3d} inactive in {filename}"
474553 msgstr ""
475554
476 #: lib/Log/Report/Dispatcher.pm:289
555 #: lib/Log/Report/Dispatcher.pm:285
477556 #, fuzzy
478557 msgid "{message}; {error}"
479558 msgstr ""
480559
481 #: lib/Log/Report/Dispatcher.pm:288
560 #: lib/Log/Report/Dispatcher.pm:284
482561 #, fuzzy
483562 msgid "{reason}: {message}"
484563 msgstr ""
485564
486 #: lib/Log/Report/Dispatcher.pm:287
565 #: lib/Log/Report/Dispatcher.pm:283
487566 #, fuzzy
488567 msgid "{reason}: {message}; {error}"
489568 msgstr ""
77
88 package Log::Report;
99 use vars '$VERSION';
10 $VERSION = '0.993';
10 $VERSION = '0.997';
1111
1212 use base 'Exporter';
1313
136136 }
137137 }
138138
139 if(@last_call)
139 if(@last_call && !$^S)
140140 { # the PERL dispatcher may terminate the program
141141 shift(@last_call)->log(@last_call);
142142 }
300300 { @_%2 or error __x"even length parameter list for __x at {where}",
301301 where => join(' line ', (caller)[1,2]);
302302
303 my $msgid = shift;
303304 Log::Report::Message->new
304 ( _msgid => @_
305 ( _msgid => $msgid
305306 , _expand => 1
306307 , _domain => _default_domain(caller)
308 , @_
307309 );
308310 }
309311
429431 $domain ||= 'rescue';
430432
431433 defined $value
432 or return $settings{$domain}{$name};
434 or return ($settings{$domain} ? $settings{$domain}{$name} : undef);
433435
434436 # Where is the setting done?
435437 my ($pkg, $fn, $line) = @_;
0 =encoding utf8
1
02 =head1 NAME
13
24 Log::Report - report a problem, with exceptions and translation support
9698
9799 Also, you can study this module swiftly via the article published in
98100 the German Perl $foo-magazine. English version:
99 F<http://perl.overmeer.net/log-report/papers/201308-PerlMagazine-article-en.html>
101 F<http://perl.overmeer.net/log-report/papers/201306-PerlMagazine-article-en.html>
100102
101103 =head1 FUNCTIONS
102104
440442 later. Translating is invoked when the object gets stringified. When
441443 you have no translation tables, the MSGID will be shown untranslated.
442444
443 If you need options for L<Log::Report::Message::new()|Log::Report::Message/"Constructors"> then
444 use L<__x()|Log::Report/"Language Translations">.
445 If you need options for L<Log::Report::Message::new()|Log::Report::Message/"Constructors"> then use L<__x()|Log::Report/"Language Translations">;
446 the prototype of this function does not permit parameters: it is a
447 prefix operator!
445448
446449 example: how to use __()
447450
10561059
10571060 =head1 SEE ALSO
10581061
1059 This module is part of Log-Report distribution version 0.993,
1060 built on March 28, 2013. Website: F<http://perl.overmeer.net/log-report/>
1062 This module is part of Log-Report distribution version 0.997,
1063 built on September 27, 2013. Website: F<http://perl.overmeer.net/log-report/>
10611064
10621065 =head1 LICENSE
10631066
2727 defined $alt_locale
2828 or plan skip_all => "cannot find alternative language for tests";
2929
30 plan tests => 11;
30 plan tests => 10;
3131 }
3232
3333 ok(1, "alt locale: $alt_locale");
4444
4545 my $change = setlocale LC_ALL, $alt_locale;
4646 ok(defined $change, "returned change to alternative locale");
47 if($change eq $alt_locale)
48 { ok(1, "WARNING: setlocale() returns new locale value, not the previous");
49 warn "*** WARNING: setlocale() returns new locale value, not the previous\n";
50 }
51 else
52 { ok(1, "result is old value");
53 }
5447
5548 is(setlocale(LC_ALL), $alt_locale, "set to $alt_locale successful?");
5649 $! = 2;
55 use lib 'lib', '../lib';
66 use utf8;
77
8 use Test::More tests => 43;
8 use Test::More tests => 44;
99 use File::Basename qw/dirname/;
1010 use File::Spec::Functions qw/catfile/;
11 use Encode qw/is_utf8/;
1112
1213 use_ok('Log::Report::Lexicon::PO');
1314 use_ok('Log::Report::Lexicon::POT');
109110
110111 my $po2 = $pot->msgid("This program is running as process number {pid}.multi-line\n");
111112 ok(defined $po2, 'test multi');
112 is($po2->msgstr, "Ta program teče kot proces številka {pid}.multi\tline\n");
113113
114 my $po2t = $po2->msgstr;
115 is($po2t, "Ta program teče kot proces številka {pid}.multi\tline\n");
116 ok(is_utf8($po2t), 'is utf8');
117
4848 my $s1 = -s $outfn;
4949 cmp_ok($s1, '>', 0);
5050 $log_line = <$out>;
51 $expected_msg = " $0 $line_number> notice: this is a test";
52 like($log_line, qr/^$date_qr\Q$expected_msg\E$/);
51 $log_line =~ s!\\!/!g; # windows
52 $expected_msg = "$line_number> notice: this is a test";
53 # do not anchor at the end: $ does not match on Windows
54 like($log_line, qr!^$date_qr t[/\\]53log4perl\.t \Q$expected_msg\E!);
5355
5456 warning "some more"; $line_number = __LINE__;
5557 my $s2 = -s $outfn;
5658 cmp_ok($s2, '>', $s1);
5759 $log_line = do { <$out> };
58 $expected_msg = " $0 $line_number> warning: some more";
59 like($log_line, qr/^$date_qr\Q$expected_msg\E$/);
60 $log_line =~ s!\\!/!g; # windows
61 $expected_msg = "$line_number> warning: some more";
62 like($log_line, qr!^$date_qr t[/\\]53log4perl\.t \Q$expected_msg\E!);
6063
6164 unlink $outfn;
6265
33 # Pod stripped from pm file by OODoc 2.01.
44 package DieTests;
55 use vars '$VERSION';
6 $VERSION = '0.993';
6 $VERSION = '0.997';
77
88 use warnings;
99 use strict;