| 1 | package SVN::Web::I18N; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | ▶ | use base qw(Locale::Maketext); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use Locale::Maketext::Lexicon; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | our $VERSION = 0.53; | |
| 10 | |||
| 11 | 1 | my $lh; | |
| 12 | |||
| 13 | 0 | ▶ | sub loc { |
|
Subroutine
loc: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 14 | 0 | return $lh->maketext(@_); | |
| 15 | } | ||
| 16 | |||
| 17 | 0 | ▶ | sub loc_lang { |
|
Subroutine
loc_lang: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 18 | 0 | $lh = __PACKAGE__->get_handle(@_); | |
| 19 | |||
| 20 | 0 | return; | |
| 21 | } | ||
| 22 | |||
| 23 | 0 | ▶ | sub add_directory { |
|
Subroutine
add_directory: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 24 | 0 | my $directory = shift; | |
| 25 | |||
| 26 | 0 | my $pattern = File::Spec->catfile( $directory, '*.[pm]o' ); | |
| 27 | 0 | $pattern =~ s{\\}{/}g; # Deal with Windows paths | |
| 28 | |||
| 29 | 0 | Locale::Maketext::Lexicon->import( | |
| 30 | { | ||
| 31 | '*' => [ Gettext => $pattern ], | ||
| 32 | _auto => 1, | ||
| 33 | _style => 'gettext', | ||
| 34 | _decode => 0, | ||
| 35 | } | ||
| 36 | ); | ||
| 37 | |||
| 38 | 0 | return; | |
| 39 | } | ||
| 40 | |||
| 41 | 1 | 1; | |
| 42 | |||
| 43 | __END__ | ||