File-Gettext
view release on metacpan or search on metacpan
lib/File/Gettext.pm view on Meta::CPAN
coerce $LocaleDir,
from ArrayRef, via { $_build_localedir->( $_ ) },
from Str, via { $_build_localedir->( $_ ) },
from Undef, via { $_build_localedir->( $_ ) };
my $SourceType = enum 'SourceType' => [ 'mo', 'po' ];
# Public attributes
has 'charset' => is => 'ro', isa => Str, default => 'iso-8859-1';
has 'default_po_header' => is => 'ro', isa => HashRef,
default => sub { {
appname => 'Your_Application',
company => 'ExampleCom',
email => '<translators@example.com>',
lang => 'en',
team => 'Translators',
translator => 'Athena', } };
has 'gettext_catagory' => is => 'ro', isa => Str, default => 'LC_MESSAGES';
has 'header_key_table' => is => 'ro', isa => HashRef,
default => sub { {
project_id_version => [ 0, 'Project-Id-Version' ],
report_msgid_bugs_to => [ 1, 'Report-Msgid-Bugs-To' ],
pot_creation_date => [ 2, 'POT-Creation-Date' ],
po_revision_date => [ 3, 'PO-Revision-Date' ],
last_translator => [ 4, 'Last-Translator' ],
language_team => [ 5, 'Language-Team' ],
language => [ 6, 'Language' ],
mime_version => [ 7, 'MIME-Version' ],
content_type => [ 8, 'Content-Type' ],
lib/File/Gettext/ResultSource.pm view on Meta::CPAN
package File::Gettext::ResultSource;
use namespace::autoclean;
use File::DataClass::Types qw( HashRef );
use Moo;
extends q(File::DataClass::ResultSource);
has 'language_dependent' => is => 'ro', isa => HashRef, default => sub { {} };
1;
__END__
=pod
=encoding utf-8
=head1 Name
( run in 0.713 second using v1.01-cache-2.11-cpan-5f2e87ce722 )