diff options
Diffstat (limited to 'lib/Travelynx/Helper/Locales.pm')
| -rw-r--r-- | lib/Travelynx/Helper/Locales.pm | 22 | 
1 files changed, 22 insertions, 0 deletions
| diff --git a/lib/Travelynx/Helper/Locales.pm b/lib/Travelynx/Helper/Locales.pm new file mode 100644 index 0000000..12e95d1 --- /dev/null +++ b/lib/Travelynx/Helper/Locales.pm @@ -0,0 +1,22 @@ +package Travelynx::Helper::Locales; + +use strict; +use warnings; + +use base qw(Locale::Maketext); + +our %lexicon = ( +	_AUTO => 1, +); + +use Locale::Maketext::Lexicon { +	_decode => 1, +	'*'     => [ Gettext => 'share/locales/*.po' ], +}; + +sub init { +	my ($self) = @_; +	return $self->SUPER::init( @_[ 1 .. $#_ ] ); +} + +1; | 
