| 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, 2021 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 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 17 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | 17 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | |||||||||||
| 15 | 17 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 17 | $VERSION = '0.17'; # same as parent module DT::C::FR | |||||||||
| 17 | |||||||||||
| 18 | 1393 | ▶ | sub load { | ||||||||
|
Subroutine
load: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 19 | 1393 | my ($self, $lang) = @_; | |||||||||
| 20 | 1393 | my $real_class = "DateTime::Calendar::FrenchRevolutionary::Locale::$lang"; | |||||||||
| 21 | 1393 | eval "require $real_class"; | |||||||||
| 22 | 1393 | ▶ | die $@ if $@; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | 1392 | 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 | 17 | "Amour sacré de la patrie, conduis soutiens nos bras vengeurs."; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||