aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ManaTools/Module/Clock.pm24
-rw-r--r--lib/ManaTools/Module/DisplayManager.pm14
-rw-r--r--lib/ManaTools/Module/Firewall.pm14
-rw-r--r--lib/ManaTools/Module/Hosts.pm14
-rw-r--r--lib/ManaTools/Module/LogViewer.pm14
-rw-r--r--lib/ManaTools/Module/Proxy.pm14
-rw-r--r--lib/ManaTools/Module/Services.pm14
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