line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- encoding: utf-8; indent-tabs-mode: nil -*- |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# Perl DateTime extension for providing localised strings for the French Revolutionary calendar |
4
|
|
|
|
|
|
|
# Copyright (c) 2003, 2004, 2010, 2011, 2014, 2016, 2019 Jean Forget. All rights reserved. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# See the license in the embedded documentation below. |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
package DateTime::Calendar::FrenchRevolutionary::Locale; |
10
|
|
|
|
|
|
|
|
11
|
17
|
|
|
17
|
|
132
|
use utf8; |
|
17
|
|
|
|
|
41
|
|
|
17
|
|
|
|
|
128
|
|
12
|
17
|
|
|
17
|
|
535
|
use strict; |
|
17
|
|
|
|
|
36
|
|
|
17
|
|
|
|
|
326
|
|
13
|
17
|
|
|
17
|
|
81
|
use warnings; |
|
17
|
|
|
|
|
38
|
|
|
17
|
|
|
|
|
503
|
|
14
|
|
|
|
|
|
|
|
15
|
17
|
|
|
17
|
|
83
|
use vars qw($VERSION); |
|
17
|
|
|
|
|
35
|
|
|
17
|
|
|
|
|
2276
|
|
16
|
|
|
|
|
|
|
$VERSION = '0.15'; # same as parent module DT::C::FR |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub load { |
19
|
1359
|
|
|
1359
|
0
|
2729
|
my ($self, $lang) = @_; |
20
|
1359
|
|
|
|
|
2845
|
my $real_class = "DateTime::Calendar::FrenchRevolutionary::Locale::$lang"; |
21
|
1359
|
|
|
|
|
66185
|
eval "require $real_class"; |
22
|
1359
|
100
|
|
|
|
4728
|
die $@ if $@; |
23
|
1358
|
|
|
|
|
4584
|
return $real_class->new(); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
# A module must return a true value. Traditionally, a module returns 1. |
26
|
|
|
|
|
|
|
# But this module is a revolutionary one, so it discards all old traditions. |
27
|
|
|
|
|
|
|
"Amour sacré de la patrie, conduis soutiens nos bras vengeurs."; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=encoding utf8 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 NAME |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
DateTime::Calendar::FrenchRevolutionary::Locale - Dates in the French Revolutionary Calendar |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 DESCRIPTION |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Please refer to parent module: |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
perldoc DateTime::Calendar::FrenchRevolutionary |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SUPPORT |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Support for this module is provided via the datetime@perl.org email |
46
|
|
|
|
|
|
|
list. See L<https://lists.perl.org/> for more details. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Please enter bug reports at L<https://rt.cpan.org/> |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 AUTHOR |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Jean Forget <JFORGET@cpan.org> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 LICENSE STUFF |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Copyright (c) 2003, 2004, 2010, 2012, 2014, 2016, 2019 Jean Forget. |
57
|
|
|
|
|
|
|
All rights reserved. This program is free software. You can |
58
|
|
|
|
|
|
|
distribute, adapt, modify, and otherwise mangle |
59
|
|
|
|
|
|
|
DateTime::Calendar::FrenchRevolutionary under the same terms as perl |
60
|
|
|
|
|
|
|
5.16.3. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
This program is distributed under the same terms as Perl 5.16.3: GNU |
63
|
|
|
|
|
|
|
Public License version 1 or later and Perl Artistic License |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
You can find the text of the licenses in the F<LICENSE> file or at |
66
|
|
|
|
|
|
|
L<https://dev.perl.org/licenses/artistic.html> and |
67
|
|
|
|
|
|
|
L<https://www.gnu.org/licenses/old-licenses/gpl-1.0.html>. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Here is the summary of GPL: |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify |
72
|
|
|
|
|
|
|
it under the terms of the GNU General Public License as published by |
73
|
|
|
|
|
|
|
the Free Software Foundation; either version 1, or (at your option) |
74
|
|
|
|
|
|
|
any later version. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but |
77
|
|
|
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of |
78
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
79
|
|
|
|
|
|
|
General Public License for more details. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License |
82
|
|
|
|
|
|
|
along with this program; if not, see <https://www.gnu.org/licenses/> or |
83
|
|
|
|
|
|
|
write to the Free Software Foundation, Inc., L<https://www.fsf.org>. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |