diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-01-16 22:56:16 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-01-16 22:56:16 +0100 |
commit | ce5290dcdbba11a8ea5c80fb8ba9f221c6863f85 (patch) | |
tree | f65b8e09b1d611f9b2581875ca15873b24a48d2d /AdminPanel/Users/GUsers.pm | |
parent | fed16eef71eacf5e06b7efb633e6cbf1e55f38f0 (diff) | |
download | colin-keep-ce5290dcdbba11a8ea5c80fb8ba9f221c6863f85.tar colin-keep-ce5290dcdbba11a8ea5c80fb8ba9f221c6863f85.tar.gz colin-keep-ce5290dcdbba11a8ea5c80fb8ba9f221c6863f85.tar.bz2 colin-keep-ce5290dcdbba11a8ea5c80fb8ba9f221c6863f85.tar.xz colin-keep-ce5290dcdbba11a8ea5c80fb8ba9f221c6863f85.zip |
Added License into Shared to be used by admin panel modules easily
set back dependency from /usr/lib/libDrakX to use apanel without -I
Diffstat (limited to 'AdminPanel/Users/GUsers.pm')
-rw-r--r-- | AdminPanel/Users/GUsers.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/AdminPanel/Users/GUsers.pm b/AdminPanel/Users/GUsers.pm index 97f3558..fe95a0b 100644 --- a/AdminPanel/Users/GUsers.pm +++ b/AdminPanel/Users/GUsers.pm @@ -33,6 +33,12 @@ use strict; # instead use POSIX qw(ceil); # use Time::localtime; + +# TODO same translation atm +use lib qw(/usr/lib/libDrakX); +# i18n: IMPORTANT: to get correct namespace (userdrake instead of libDrakX) +BEGIN { unshift @::textdomains, 'userdrake', 'libuser', 'drakconf' } + use common qw(N translate); use security::level; @@ -2398,7 +2404,7 @@ sub manageUsersDialog { last; } elsif ($menuLabel eq $helpMenu{about}->label()) { - my $license = translate($::license); + my $license = translate($AdminPanel::Shared::License); AboutDialog({ name => N("AdminUser"), version => $self->VERSION, copyright => N("Copyright (C) %s Mageia community", '2013-2014'), @@ -2556,7 +2562,7 @@ sub TimeOfArray { $cm and $h->{month} = $mth{$2}; $h; } -sub member { my $e = shift; foreach (@_) { $e eq $_ and return 1 } 0 } + no Moose; __PACKAGE__->meta->make_immutable; |