aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-04-22 17:30:54 +0200
committerAngelo Naselli <anaselli@linux.it>2015-04-22 17:30:54 +0200
commitcf418176c9547cd5e64f55079b892d34c27360e8 (patch)
tree96fc0b5ce4d02d057c624731526c001e5fa364ca
parent3520dca63d26723c61f3426ea4ea32605873cb57 (diff)
downloadmanatools-cf418176c9547cd5e64f55079b892d34c27360e8.tar
manatools-cf418176c9547cd5e64f55079b892d34c27360e8.tar.gz
manatools-cf418176c9547cd5e64f55079b892d34c27360e8.tar.bz2
manatools-cf418176c9547cd5e64f55079b892d34c27360e8.tar.xz
manatools-cf418176c9547cd5e64f55079b892d34c27360e8.zip
manaclock now use manatools catalogue
-rw-r--r--lib/ManaTools/Module/Clock.pm16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/ManaTools/Module/Clock.pm b/lib/ManaTools/Module/Clock.pm
index 1bb110fd..7d0b2012 100644
--- a/lib/ManaTools/Module/Clock.pm
+++ b/lib/ManaTools/Module/Clock.pm
@@ -78,9 +78,19 @@ has 'loc' => (
sub _localeInitialize {
my $self = shift;
- # TODO fix domain binding for translation
- $self->loc(ManaTools::Shared::Locales->new(domain_name => 'libDrakX-standalone') );
- # TODO if we want to give the opportunity to test locally add dir_name => 'path'
+ my $cmdline = new yui::YCommandLine;
+ my $locale_dir = undef;
+ my $pos = $cmdline->find("--locales-dir");
+ if ($pos > 0)
+ {
+ $locale_dir = $cmdline->arg($pos+1);
+ }
+ $self->loc(
+ ManaTools::Shared::Locales->new(
+ domain_name => 'manatools',
+ dir_name => $locale_dir,
+ )
+ );
}
has 'sh_gui' => (