Commit 7073e370 authored by Xavier Guimard's avatar Xavier Guimard

I18n of javascript started. To do later...


git-svn-id: svn://svn.forge.objectweb.org/svnroot/lemonldap/trunk@21 1dbb9719-a921-0410-b57f-c3a383c2c641
parent 7b8ef210
CREATE TABLE lmConfig (
cfgNum int not null primary key,
locationRules text,
exportedHeaders text,
globalStorage text,
globalStorageOptions text,
macros text,
groups text,
portal text,
domain text,
ldapServer text,
ldapPort int,
ldapBase text,
securedCookie int,
cookieName text,
authentication text,
exportedVars text,
managerDn text,
managerPassword text,
whatToTrace text
);
......@@ -100,18 +100,18 @@ EOT
sub help_macros_fr {
print <<EOT;
<h3>Macros</h3>
<p> Les macros permettent d'ajouter des variables calculées à partir des
attributs LDAP (variables exportées). Elles évitent de répéter le même calcul
<p> Les macros permettent d'ajouter des variables calcul&eacute;es &agrave; partir des
attributs LDAP (variables export&eacute;es). Elles &eacute;vitent de r&eacute;p&eacute;ter le m&ecirc;me calcul
plusieurs fois dans la configuration. Exemple&nbsp;:</p>
<pre>
# macros
nom_complet => \$givenname . " " . \$surname
admin => \$uid eq "foo" or \$uid eq "bar"
# test.example.com - En-têtes
# test.example.com - En-t&ecirc;tes
Nom => \$nom_complet
# test.example.com - Règles
# test.example.com - R&egrave;gles
^/admin/ => \$admin
EOT
}
......
......@@ -6,7 +6,7 @@ our $VERSION = '0.11';
sub import {
my ($caller_package) = caller;
my $lang = shift;
my $lang = pop;
$lang = lc($lang);
$lang =~ s/-/_/g;
foreach ( split( /[,;]/, $lang ) ) {
......@@ -54,6 +54,18 @@ sub fr {
managerPassword => 'Mot de passe LDAP',
httpHeaders => 'En-t&ecirc;tes HTTP',
locationRules => 'R&egrave;gles',
newVirtualHost => 'Nouvel h&ocric;te virtuel',
newMacro => 'Nouvelle macro',
newGroup => 'Nouveau groupe',
newVar => 'Nouvelle variable',
newGSOpt => 'Nouvelle option',
saveConf => 'Sauvegarder',
deleteNode => 'Supprimer',
rules => 'R&egrave;gles',
unableToSave => 'Votre navigateur ne supporte pas les objets XMLHTTPRequest: sauvegarde impossible.'
confSaved => 'Configuration sauvegarde sous le num&eacute;ro',
saveFailure => '&Eacute;chec de la sauvegarde',
};
}
......@@ -80,5 +92,17 @@ sub en {
managerPassword => 'LDAP Password',
httpHeaders => 'HTTP Headers',
locationRules => 'Rules',
newVirtualHost => 'New Virtual Host',
newMacro => 'New Macro',
newGroup => 'New Group',
newVar => 'New Variable',
newGSOpt => 'New Option',
saveConf => 'Save',
deleteNode => 'Delete',
rules => 'Rules',
unableToSave => 'Your browser does not support XMLHTTPRequest objects: fail to save.'
confSaved => 'Configuration saved with number',
saveFailure => 'Save failure',
};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment