aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-04-29 15:27:11 +0200
committerAngelo Naselli <anaselli@linux.it>2015-04-29 15:27:11 +0200
commitd3a0213284064deb0e936939caf590bb50890e90 (patch)
treee0eb8e4f68ac80d8d5196dc50cf204bbb97787ee /scripts
parent5cb2eee22a8a9d9acf0208d43047043d7504e1e5 (diff)
downloadmanatools-d3a0213284064deb0e936939caf590bb50890e90.tar
manatools-d3a0213284064deb0e936939caf590bb50890e90.tar.gz
manatools-d3a0213284064deb0e936939caf590bb50890e90.tar.bz2
manatools-d3a0213284064deb0e936939caf590bb50890e90.tar.xz
manatools-d3a0213284064deb0e936939caf590bb50890e90.zip
Fixed localization and icon
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/manaadduser18
1 files changed, 15 insertions, 3 deletions
diff --git a/scripts/manaadduser b/scripts/manaadduser
index d0309b5f..19d5e391 100755
--- a/scripts/manaadduser
+++ b/scripts/manaadduser
@@ -18,11 +18,23 @@
# along with ManaTools. If not, see <http://www.gnu.org/licenses/>.
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);