Framework/Dumb.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 75.0% 3 / 4 totaltotal 95.2% 20 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
new
1.0
translate
1.0
CRAP 1.0
« Framework.pm ↑ Summary
1 package Locale::Framework::Dumb;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
6 1 my $class=shift;
7 1 my $self;
8 1 $self->{"dumb"}=1;
9 1 bless $self,$class;
10 1 return $self;
11 }
12  
13 3 ▶sub translate {
Subroutine translate: called CC=1 SCAR=0.0
Pod documented
14 3 my ($self,$lang,$text)=@_;
15 3 return $text;
16 }
17  
18 1 ▶sub clear_cache {
Subroutine clear_cache: called CC=1 SCAR=0.0
Pod documented
19 }
20  
21 1 ▶sub set_translation {
Subroutine set_translation: called CC=1 SCAR=0.0
Pod undocumented
22 1 return 0;
23 }
24  
25  
26  
27 1 1;
28  
29 =head1 NAME
30  
31 Locale::Framework::Dumb - A backend for Locale::Framework internationalization
32  
33 =head1 SYNOPSIS
34  
35 use Locale::Framework;
36  
37 print _T("This is a test");
38  
39 Locale::Framework::language("nl");
40
41 print _T("This is a test");
42  
43 =head1 ABSTRACT
44  
45 This module provides a Dumb backend for the Locale::Framework internationalization
46 module.
47  
48 =head1 DESCRIPTION
49  
50 =head2 C<new()> --E<gt> Locale::Framework::Dumb
51  
52 Instantiates a new Locale::Framework::Dumb backend.
53  
54 =head2 C<translate(language,text)> --E<gt> string
55  
56 Returns 'text'.
57  
58 =head2 C<clear_cache()> --E<gt> void
59  
60 Does nothing.
61  
62  
63 =head1 SEE ALSO
64  
65 L<Locale::Framework|Locale::Framework>.
66  
67 =head1 AUTHOR
68  
69 Hans Oesterholt-Dijkema <oesterhol@cpan.org>
70  
71 =head1 COPYRIGHT AND LICENSE
72  
73 This library is free software; you can redistribute it and/or modify
74 it under LGPL terms.
75  
76 =cut
« Framework.pm ↑ Summary