| 1 | package DBIx::dbMan::Lang; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use locale; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 2 | ▶ | use POSIX; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 2 | ▶ | use Locale::gettext; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 2 | our $VERSION = '0.04'; | |
| 10 | |||
| 11 | 2 | 1; | |
| 12 | |||
| 13 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 14 | 0 | my $class = shift; | |
| 15 | 0 | my $obj = bless { @_ }, $class; | |
| 16 | |||
| 17 | 0 | $obj->{ gettext } = Locale::gettext->domain( 'dbman' ); | |
| 18 | 0 | return $obj; | |
| 19 | } | ||
| 20 | |||
| 21 | 0 | ▶ | sub str { |
|
Subroutine
str: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 22 | 0 | my $obj = shift; | |
| 23 | 0 | my $str = join '',@_; | |
| 24 | |||
| 25 | 0 | return $obj->{ gettext }->get( $str ); | |
| 26 | } | ||