diff options
author | Angelo Naselli <anaselli@linux.it> | 2015-04-29 15:27:11 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2015-04-29 15:27:11 +0200 |
commit | d3a0213284064deb0e936939caf590bb50890e90 (patch) | |
tree | e0eb8e4f68ac80d8d5196dc50cf204bbb97787ee /scripts | |
parent | 5cb2eee22a8a9d9acf0208d43047043d7504e1e5 (diff) | |
download | colin-keep-d3a0213284064deb0e936939caf590bb50890e90.tar colin-keep-d3a0213284064deb0e936939caf590bb50890e90.tar.gz colin-keep-d3a0213284064deb0e936939caf590bb50890e90.tar.bz2 colin-keep-d3a0213284064deb0e936939caf590bb50890e90.tar.xz colin-keep-d3a0213284064deb0e936939caf590bb50890e90.zip |
Fixed localization and icon
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/manaadduser | 18 |
1 files changed, 15 insertions, 3 deletions
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 <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); |