diff options
author | Angelo Naselli <anaselli@linux.it> | 2015-04-24 11:31:18 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2015-04-24 11:31:18 +0200 |
commit | 3554484d2cd127b63c0919d1cf681bf9ffb6c66c (patch) | |
tree | 02e138a2b1fed6a6f79a12d43aa1511d60262753 /lib/ManaTools/Module | |
parent | dc04b6fa29de3d98bdd8ada034ecb69fda0718ec (diff) | |
download | manatools-3554484d2cd127b63c0919d1cf681bf9ffb6c66c.tar manatools-3554484d2cd127b63c0919d1cf681bf9ffb6c66c.tar.gz manatools-3554484d2cd127b63c0919d1cf681bf9ffb6c66c.tar.bz2 manatools-3554484d2cd127b63c0919d1cf681bf9ffb6c66c.tar.xz manatools-3554484d2cd127b63c0919d1cf681bf9ffb6c66c.zip |
Removed localization object and used the one in base class
Diffstat (limited to 'lib/ManaTools/Module')
-rw-r--r-- | lib/ManaTools/Module/Clock.pm | 24 | ||||
-rw-r--r-- | lib/ManaTools/Module/DisplayManager.pm | 14 | ||||
-rw-r--r-- | lib/ManaTools/Module/Firewall.pm | 14 | ||||
-rw-r--r-- | lib/ManaTools/Module/Hosts.pm | 14 | ||||
-rw-r--r-- | lib/ManaTools/Module/LogViewer.pm | 14 | ||||
-rw-r--r-- | lib/ManaTools/Module/Proxy.pm | 14 | ||||
-rw-r--r-- | lib/ManaTools/Module/Services.pm | 14 |
7 files changed, 0 insertions, 108 deletions
diff --git a/lib/ManaTools/Module/Clock.pm b/lib/ManaTools/Module/Clock.pm index 7d0b2012..30225911 100644 --- a/lib/ManaTools/Module/Clock.pm +++ b/lib/ManaTools/Module/Clock.pm @@ -69,30 +69,6 @@ has '+icon' => ( default => "/usr/share/mcc/themes/default/time-mdk.png", ); -has 'loc' => ( - is => 'rw', - init_arg => undef, - builder => '_localeInitialize' -); - -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); - } - $self->loc( - ManaTools::Shared::Locales->new( - domain_name => 'manatools', - dir_name => $locale_dir, - ) - ); -} - has 'sh_gui' => ( is => 'rw', lazy => 1, diff --git a/lib/ManaTools/Module/DisplayManager.pm b/lib/ManaTools/Module/DisplayManager.pm index 39aa6175..a0687674 100644 --- a/lib/ManaTools/Module/DisplayManager.pm +++ b/lib/ManaTools/Module/DisplayManager.pm @@ -85,12 +85,6 @@ has 'sh_gui' => ( builder => '_SharedUGUIInitialize' ); -has 'loc' => ( - is => 'rw', - init_arg => undef, - builder => '_localeInitialize' -); - sub _build_desc_for_i18n { my $self = shift(); @@ -116,14 +110,6 @@ sub _build_dmlist { return \@list; } -sub _localeInitialize { - my $self = shift(); - - # TODO fix domain binding for translation - $self->loc(ManaTools::Shared::Locales->new(domain_name => 'drakdm') ); - # TODO if we want to give the opportunity to test locally add dir_name => 'path' -} - sub _SharedUGUIInitialize { my $self = shift(); diff --git a/lib/ManaTools/Module/Firewall.pm b/lib/ManaTools/Module/Firewall.pm index 046841c3..e534ca98 100644 --- a/lib/ManaTools/Module/Firewall.pm +++ b/lib/ManaTools/Module/Firewall.pm @@ -73,12 +73,6 @@ has 'sh_gui' => ( builder => '_SharedUGUIInitialize' ); -has 'loc' => ( - is => 'rw', - init_arg => undef, - builder => '_localeInitialize', - required => 1, -); has 'all_servers' => ( is => 'rw', @@ -151,14 +145,6 @@ sub _setupAboutDialog { }; } -sub _localeInitialize { - my $self = shift(); - - # TODO fix domain binding for translation - $self->loc(ManaTools::Shared::Locales->new(domain_name => 'drakx-net') ); - # TODO if we want to give the opportunity to test locally add dir_name => 'path' -} - sub _SharedUGUIInitialize { my $self = shift(); diff --git a/lib/ManaTools/Module/Hosts.pm b/lib/ManaTools/Module/Hosts.pm index faae3f0e..b2576c20 100644 --- a/lib/ManaTools/Module/Hosts.pm +++ b/lib/ManaTools/Module/Hosts.pm @@ -72,20 +72,6 @@ has 'sh_gui' => ( builder => '_SharedUGUIInitialize' ); -has 'loc' => ( - is => 'rw', - init_arg => undef, - builder => '_localeInitialize' -); - -sub _localeInitialize { - my $self = shift(); - - # TODO fix domain binding for translation - $self->loc(ManaTools::Shared::Locales->new(domain_name => 'drakx-net') ); - # TODO if we want to give the opportunity to test locally add dir_name => 'path' -} - sub _SharedUGUIInitialize { my $self = shift(); diff --git a/lib/ManaTools/Module/LogViewer.pm b/lib/ManaTools/Module/LogViewer.pm index e009c1c7..1c7dbe36 100644 --- a/lib/ManaTools/Module/LogViewer.pm +++ b/lib/ManaTools/Module/LogViewer.pm @@ -73,20 +73,6 @@ has '+icon' => ( default => "/usr/share/mcc/themes/default/logdrake-mdk.png", ); -has 'loc' => ( - is => 'rw', - init_arg => undef, - builder => '_localeInitialize' -); - -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' -} - has 'sh_gui' => ( is => 'rw', init_arg => undef, diff --git a/lib/ManaTools/Module/Proxy.pm b/lib/ManaTools/Module/Proxy.pm index ff2af3e5..8320f2bd 100644 --- a/lib/ManaTools/Module/Proxy.pm +++ b/lib/ManaTools/Module/Proxy.pm @@ -78,20 +78,6 @@ has 'sh_gui' => ( builder => '_SharedUGUIInitialize' ); -has 'loc' => ( - is => 'rw', - init_arg => undef, - builder => '_localeInitialize' -); - - -sub _localeInitialize { - my $self = shift(); - - # TODO fix domain binding for translation - $self->loc(ManaTools::Shared::Locales->new(domain_name => 'drakx-net') ); - # TODO if we want to give the opportunity to test locally add dir_name => 'path' -} sub _SharedUGUIInitialize { my $self = shift(); diff --git a/lib/ManaTools/Module/Services.pm b/lib/ManaTools/Module/Services.pm index dca0c0c6..b54bfba1 100644 --- a/lib/ManaTools/Module/Services.pm +++ b/lib/ManaTools/Module/Services.pm @@ -149,20 +149,6 @@ sub _SharedServicesInitialize { } -has 'loc' => ( - is => 'rw', - init_arg => undef, - builder => '_localeInitialize' -); - -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' -} - =head1 VERSION Version 1.0.0 |