aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-05-03 22:38:12 +0200
committerAngelo Naselli <anaselli@linux.it>2015-05-03 22:38:12 +0200
commit879bcc6102c1df2404b7560860a90a55ec4a630c (patch)
tree9f8f3b764c7fa8b7831078f5bed38c5bc8e80c4c
parentde0b6a5113a3e3f76551c43c08327961976f624e (diff)
downloadcolin-keep-879bcc6102c1df2404b7560860a90a55ec4a630c.tar
colin-keep-879bcc6102c1df2404b7560860a90a55ec4a630c.tar.gz
colin-keep-879bcc6102c1df2404b7560860a90a55ec4a630c.tar.bz2
colin-keep-879bcc6102c1df2404b7560860a90a55ec4a630c.tar.xz
colin-keep-879bcc6102c1df2404b7560860a90a55ec4a630c.zip
Used custom_locale_dir
-rw-r--r--lib/ManaTools/Module.pm10
1 files changed, 3 insertions, 7 deletions
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',