aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-06-01 23:29:31 +0200
committerAngelo Naselli <anaselli@linux.it>2014-06-01 23:29:31 +0200
commitc113abab36e1c3eaec2167017da3aa31e940f269 (patch)
tree755feec55452a80ddc03d0d909b3f7da570703e5
parent121d2c9097e24c99c719fbe012bf03c0b68aa982 (diff)
downloadcolin-keep-c113abab36e1c3eaec2167017da3aa31e940f269.tar
colin-keep-c113abab36e1c3eaec2167017da3aa31e940f269.tar.gz
colin-keep-c113abab36e1c3eaec2167017da3aa31e940f269.tar.bz2
colin-keep-c113abab36e1c3eaec2167017da3aa31e940f269.tar.xz
colin-keep-c113abab36e1c3eaec2167017da3aa31e940f269.zip
Used Shared::Locales
-rwxr-xr-xscripts/adminUser9
-rwxr-xr-xscripts/mgaAddUser10
2 files changed, 9 insertions, 10 deletions
diff --git a/scripts/adminUser b/scripts/adminUser
index 2e72b5f..363af4f 100755
--- a/scripts/adminUser
+++ b/scripts/adminUser
@@ -1,13 +1,12 @@
#!/usr/bin/perl
-use lib qw(/usr/lib/libDrakX);
-
-use common qw(N);
-
use AdminPanel::Module::Users;
+use AdminPanel::Shared::Locales;
+
+my $loc = AdminPanel::Shared::Locales->new(domain_name => 'userdrake');
my $userMan = AdminPanel::Module::Users->new({icon => "/usr/share/icons/userdrake.png",
- name => N("Mageia Users Management Tool"),});
+ name => $loc->N("Mageia Users Management Tool"),});
$userMan->start();
1;
diff --git a/scripts/mgaAddUser b/scripts/mgaAddUser
index 093da72..ba884e5 100755
--- a/scripts/mgaAddUser
+++ b/scripts/mgaAddUser
@@ -1,13 +1,13 @@
#!/usr/bin/perl
-use lib qw(/usr/lib/libDrakX);
-
-use common qw(N);
-
use AdminPanel::Module::Users;
+use AdminPanel::Shared::Locales;
+
+my $loc = AdminPanel::Shared::Locales->new(domain_name => 'userdrake');
my $userMan = AdminPanel::Module::Users->new({icon => "/usr/share/icons/userdrake.png",
- name => N("Mageia Add Users Tool"),});
+ name => $loc->N("Mageia Add Users Tool"),});
+
$userMan->addUserDialog(1);
1;