From 879bcc6102c1df2404b7560860a90a55ec4a630c Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Sun, 3 May 2015 22:38:12 +0200 Subject: Used custom_locale_dir --- lib/ManaTools/Module.pm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/ManaTools/Module.pm b/lib/ManaTools/Module.pm index 85abd36..4d2b7b5 100644 --- a/lib/ManaTools/Module.pm +++ b/lib/ManaTools/Module.pm @@ -22,11 +22,12 @@ #Class Module package ManaTools::Module; +use ManaTools::Shared; use Moose; =head1 VERSION -Version 0.01 +Version 1.0.1 =cut @@ -121,12 +122,7 @@ sub _localeInitialize { my $self = shift; my $cmdline = new yui::YCommandLine; - my $locale_dir = undef; - my $pos = $cmdline->find("--locales-dir"); - if ($pos > 0) - { - $locale_dir = $cmdline->arg($pos+1); - } + my $locale_dir = ManaTools::Shared::custom_locale_dir(); $self->loc( ManaTools::Shared::Locales->new( domain_name => 'manatools', -- cgit v1.2.1