NAME
Data::Localize::Namespace - Acquire Lexicons From Module %Lexicon Hash
SYNOPSIS
package MyApp::I18N::ja;
use strict;
our %Lexicon = (
"Hello, %1!" => "%1さん、こんにちは!"
);
1;
use Data::Localize;
my $loc = Data::Localize::Namespace->new(
style => "gettext",
namespace => "MyApp::I18N",
);
my $out = $loc->localize_for(
lang => 'ja',
id => 'Hello, %1!',
args => [ 'John Doe' ]
);
METHODS
register
Registeres this localizer to the Data::Localize object
lexicon_get
Looks up lexicon data from given namespaces. Packages must be discoverable via Module::Pluggable::Object, with a package name like YourNamespace::lang
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 119:
Non-ASCII character seen before =encoding in '"%1さん、こんにちは!"'. Assuming UTF-8