Traduction totale des commentaires du fichier

This commit is contained in:
Charles Videau 2009-02-03 00:51:27 +00:00
parent 6f1e2844c2
commit af100aae9c

View file

@ -32,7 +32,7 @@ if(LSsession :: startLSsession()) {
} }
if (isset($LSobject)) { if (isset($LSobject)) {
// Création d'un LSobject // LSObject creation
if (LSsession ::loadLSobject($LSobject)) { if (LSsession ::loadLSobject($LSobject)) {
if ( LSsession :: canCreate($LSobject) ) { if ( LSsession :: canCreate($LSobject) ) {
$object = new $LSobject(); $object = new $LSobject();
@ -44,7 +44,7 @@ if(LSsession :: startLSsession()) {
$form = $object -> getForm('create'); $form = $object -> getForm('create');
} }
if ($form->validate()) { if ($form->validate()) {
// MàJ des données de l'objet LDAP // Data update for LDAP object
if ($object -> updateData('create')) { if ($object -> updateData('create')) {
if (!LSerror::errorsDefined()) { if (!LSerror::errorsDefined()) {
LSsession :: addInfo(_("L'objet a bien été ajouté.")); LSsession :: addInfo(_("L'objet a bien été ajouté."));
@ -80,7 +80,7 @@ if(LSsession :: startLSsession()) {
); );
exit(); exit();
} }
// Définition du Titre de la page // Define page title
$GLOBALS['Smarty'] -> assign('pagetitle',_('Nouveau').' : '.$object -> getLabel()); $GLOBALS['Smarty'] -> assign('pagetitle',_('Nouveau').' : '.$object -> getLabel());
LSsession :: setTemplate('create.tpl'); LSsession :: setTemplate('create.tpl');
$form -> display(); $form -> display();