|
|
|
|
package Lemonldap::NG::Manager::_i18n;
|
|
|
|
|
|
|
|
|
|
use AutoLoader qw(AUTOLOAD);
|
|
|
|
|
use UNIVERSAL qw(can);
|
|
|
|
|
our $VERSION = '0.1';
|
|
|
|
|
|
|
|
|
|
sub import {
|
|
|
|
|
my($caller_package) = caller;
|
|
|
|
|
my $lang = shift;
|
|
|
|
|
$lang = lc($lang);
|
|
|
|
|
$lang =~ s/-/_/g;
|
|
|
|
|
foreach(split(/[,;]/,$lang)) {
|
|
|
|
|
next if /=/;
|
|
|
|
|
if(__PACKAGE__->can($_)) {
|
|
|
|
|
$functions = &$_;
|
|
|
|
|
last;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$functions ||= &en;
|
|
|
|
|
while (my($f,$v) = each(%$functions)) {
|
|
|
|
|
*{"${caller_package}::$f"} = sub{ $v };
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*fr_fr = *fr;
|
|
|
|
|
*en_us = *en;
|
|
|
|
|
|
|
|
|
|
1;
|
|
|
|
|
__END__
|
|
|
|
|
=pod
|
|
|
|
|
=cut
|
|
|
|
|
|
|
|
|
|
sub fr {
|
|
|
|
|
return {
|
|
|
|
|
configuration => 'Configuration',
|
|
|
|
|
exportedVars => 'Attributs LDAP <EFBFBD> exporter',
|
|
|
|
|
generalParameters => 'Param<EFBFBD>tres g<EFBFBD>n<EFBFBD>raux',
|
|
|
|
|
ldapParameters => 'Param<EFBFBD>tres LDAP',
|
|
|
|
|
sessionStorage => 'Stockage des sessions',
|
|
|
|
|
globalStorageOptions => 'Param<EFBFBD>tres du module Apache::Session',
|
|
|
|
|
authParams => "Param<EFBFBD>tres d'authentification",
|
|
|
|
|
userGroups => "Groupes d'utilisateurs",
|
|
|
|
|
virtualHosts => "H<EFBFBD>tes virtuels",
|
|
|
|
|
authenticationType => "Type d'authentification",
|
|
|
|
|
securedCookie => 'Cookie s<EFBFBD>curis<EFBFBD> (SSL)',
|
|
|
|
|
domain => 'Domaine',
|
|
|
|
|
cookieName => 'Nom du cookie',
|
|
|
|
|
apacheSessionModule => 'Module Apache::Session',
|
|
|
|
|
ldapServer => 'Serveur LDAP',
|
|
|
|
|
ldapPort => 'Port du serveur LDAP',
|
|
|
|
|
ldapBase => 'Base de recherche LDAP',
|
|
|
|
|
managerDn => 'Compte de connexion LDAP',
|
|
|
|
|
managerPassword => 'Mot de passe LDAP',
|
|
|
|
|
httpHeaders => 'En-t<EFBFBD>tes HTTP',
|
|
|
|
|
locationRules => 'R<EFBFBD>gles',
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sub en {
|
|
|
|
|
return {
|
|
|
|
|
configuration => 'Configuration',
|
|
|
|
|
exportedVars => 'Exported Variables',
|
|
|
|
|
generalParameters => 'General Parameters',
|
|
|
|
|
ldapParameters => 'LDAP Parameters',
|
|
|
|
|
sessionStorage => 'Session Storage',
|
|
|
|
|
globalStorageOptions => 'Session Storage Parameters',
|
|
|
|
|
authParams => "Authentication Parameters",
|
|
|
|
|
userGroups => "User Groups",
|
|
|
|
|
virtualHosts => "Virtual Hosts",
|
|
|
|
|
authenticationType => "Authentifition Type",
|
|
|
|
|
securedCookie => 'Secured Cookie (SSL)',
|
|
|
|
|
domain => 'Domain',
|
|
|
|
|
cookieName => 'Cookie Name',
|
|
|
|
|
apacheSessionModule => 'Apache::Session module',
|
|
|
|
|
ldapServer => 'LDAP Server',
|
|
|
|
|
ldapPort => 'LDAP Server Port',
|
|
|
|
|
ldapBase => 'LDAP Search Base',
|
|
|
|
|
managerDn => 'LDAP Account',
|
|
|
|
|
managerPassword => 'LDAP Password',
|
|
|
|
|
httpHeaders => 'HTTP Headers',
|
|
|
|
|
locationRules => 'Rules',
|
|
|
|
|
}
|
|
|
|
|
}
|