updating copyright
[gitmo/moose-website.git] / lib / Moose / Website / I18N.pm
CommitLineData
7476895d 1package Moose::Website::I18N;
2use Moose;
3
4use Path::Class;
5
6our $VERSION = '0.01';
7our $AUTHORITY = 'cpan:STEVAN';
8
9BEGIN { extends 'Locale::Maketext' };
10
11use Locale::Maketext::Lexicon {
12 '*' => [ Gettext => file(__FILE__)->parent->file("I18N", "po", "*.po")->stringify ],
13 _auto => 1,
14 _decode => 1,
15};
16
17sub loc {
18 my ( $self, $item, @args ) = @_;
19
20 if ( @args == 0 and ref($item) eq 'ARRAY') {
21 ( $item, @args ) = @$item;
22 }
23
24 return $self->maketext( $item, @args );
25}
26
27__PACKAGE__->meta->make_immutable( inline_constructor => 0 );
28
29no Moose; 1;
30
31__END__
32
33=pod
34
35=head1 NAME
36
37Moose::Website::I18N - A Moosey solution to this problem
38
39=head1 SYNOPSIS
40
41 use Moose::Website::I18N;
42
43=head1 DESCRIPTION
44
45=head1 METHODS
46
47=over 4
48
49=item B<>
50
51=back
52
53=head1 BUGS
54
55All complex software has bugs lurking in it, and this module is no
56exception. If you find a bug please either email me, or add the bug
57to cpan-RT.
58
59=head1 AUTHOR
60
61Stevan Little E<lt>stevan.little@iinteractive.comE<gt>
62
63=head1 COPYRIGHT AND LICENSE
64
65Copyright 2010 Infinity Interactive, Inc.
66
67L<http://www.iinteractive.com>
68
69This library is free software; you can redistribute it and/or modify
70it under the same terms as Perl itself.
71
72=cut