From d3a0213284064deb0e936939caf590bb50890e90 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Wed, 29 Apr 2015 15:27:11 +0200 Subject: Fixed localization and icon --- scripts/manaadduser | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'scripts/manaadduser') diff --git a/scripts/manaadduser b/scripts/manaadduser index d0309b5..19d5e39 100755 --- a/scripts/manaadduser +++ b/scripts/manaadduser @@ -18,11 +18,23 @@ # along with ManaTools. If not, see . use ManaTools::Module::Users; use ManaTools::Shared::Locales; +use yui; -my $loc = ManaTools::Shared::Locales->new(domain_name => 'userdrake'); +my $cmdline = new yui::YCommandLine; +my $locale_dir = undef; +my $pos = $cmdline->find("--locales-dir"); +if ($pos > 0) +{ + $locale_dir = $cmdline->arg($pos+1); +} +my $loc = ManaTools::Shared::Locales->new( + domain_name => 'manatools', + dir_name => $locale_dir, +); -my $userMan = ManaTools::Module::Users->new({icon => "/usr/share/icons/userdrake.png", - name => $loc->N("Mageia Add Users Tool"),}); +my $userMan = ManaTools::Module::Users->new({ + name => $loc->N("Mageia Add Users Tool"), +}); $userMan->addUserDialog(1); -- cgit v1.2.1