aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/adminUser9
-rwxr-xr-xscripts/mgaAddUser10
2 files changed, 9 insertions, 10 deletions
diff --git a/scripts/adminUser b/scripts/adminUser
index 2e72b5fc..363af4f5 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 093da724..ba884e5b 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;