File Coverage

blib/lib/Locale/Framework/Dumb.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 3 4 75.0
total 20 21 95.2


line stmt bran cond sub pod time code
1             package Locale::Framework::Dumb;
2              
3 1     1   5 use strict;
  1         1  
  1         137  
4              
5             sub new {
6 1     1 1 1 my $class=shift;
7 1         2 my $self;
8 1         2 $self->{"dumb"}=1;
9 1         2 bless $self,$class;
10 1         4 return $self;
11             }
12              
13             sub translate {
14 3     3 1 8 my ($self,$lang,$text)=@_;
15 3         19 return $text;
16             }
17              
18 1     1 1 3 sub clear_cache {
19             }
20              
21             sub set_translation {
22 1     1 0 6 return 0;
23             }
24              
25              
26              
27             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 --E Locale::Framework::Dumb
51              
52             Instantiates a new Locale::Framework::Dumb backend.
53              
54             =head2 C --E string
55              
56             Returns 'text'.
57              
58             =head2 C --E void
59              
60             Does nothing.
61              
62              
63             =head1 SEE ALSO
64              
65             L.
66              
67             =head1 AUTHOR
68              
69             Hans Oesterholt-Dijkema
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