Skip to content
Snippets Groups Projects
Commit c9ede918 authored by Laurent's avatar Laurent
Browse files

hotline #66051 : translations

parent f2698065
Branches
Tags
2 merge requests!2471Master,!2466hotline #66051 : translations
Pipeline #3269 failed with stage
in 24 minutes and 32 seconds
- ticket #66051 : Administration : Mise en cohérence des libellés des écrans de gestion des domaines
\ No newline at end of file
......@@ -9,11 +9,11 @@ $editable = $catalog->canBeDeletedOrModifyByUser($user);
<div class="actions">
<?php
$actions = [
['action' => 'tester', 'icon' => 'test', 'help' => 'Tester'],
['action' => 'edit', 'icon' => 'edit', 'help' => 'Editer', 'display' => $editable],
['action' => 'duplicate', 'icon' => 'copy', 'help' => 'Dupliquer'],
['action' => 'add', 'icon' => 'add_page', 'help' => 'Ajouter un sous-domaine', 'display' => $editable],
['action' => 'paniers', 'icon' => 'basket', 'help' => 'Paniers', 'display' => $editable]
['action' => 'tester', 'icon' => 'test', 'help' => $this->_('Tester')],
['action' => 'edit', 'icon' => 'edit', 'help' => $this->_('Modifier'), 'display' => $editable],
['action' => 'duplicate', 'icon' => 'copy', 'help' => $this->_('Dupliquer')],
['action' => 'add', 'icon' => 'add_page', 'help' => $this->_('Ajouter un sous-domaine'), 'display' => $editable],
['action' => 'paniers', 'icon' => 'basket', 'help' => $this->_('Paniers'), 'display' => $editable]
];
$current_skin = Class_Admin_Skin::current();
......@@ -38,7 +38,7 @@ $editable = $catalog->canBeDeletedOrModifyByUser($user);
'id_catalogue' => $catalog->getId()],
null, true);
echo $this->tagPreview($catalogue_url, 'Visualisation du catalogue: '.$catalog->getLibelle());
echo $this->tagPreview($catalogue_url, $this->_('Visualiser le domaine : %s', $catalog->getLibelle()));
echo $this->permalink($catalogue_url);
?>
......
<?php
if(Class_Users::isCurrentUserSuperAdmin()) echo '<p style="font-weight:bold; font-size: 0.9em">'.$this->requete.'</p>';
if (Class_Users::isCurrentUserSuperAdmin())
echo '<p style="font-weight:bold; font-size: 0.9em">' . $this->requete . '</p>';
if ($this->error)
echo '<p align="center" class="error">' . $this->error . '.</p>';
if($this->error) echo '<p align="center" class="error">'.$this->error.'.</p>';
if(!$this->notices) echo '<p align="center" class="error">Ce catalogue ne renvoie aucun résultat.</p>';
if (!$this->notices)
echo '<p align="center" class="error">' . $this->_('Ce domaine ne renvoie aucun résultat.') . '</p>';
else {
echo $this->ligneInfos("Notices trouvées",$this->nb_notices);
echo $this->ligneInfos("Avec vignettes en cache",$this->avec_vignettes);
echo $this->ligneInfos("Temps d'éxécution de la requête",$this->temps_execution);
echo $this->ligneInfos($this->_('Notices trouvées'), $this->nb_notices);
echo $this->ligneInfos($this->_('Avec vignettes en cache'), $this->avec_vignettes);
echo $this->ligneInfos($this->_('Temps d\'éxécution de la requête'), $this->temps_execution);
}
if($this->notices)
{
?>
if ($this->notices) { ?>
<br>
<table cellspacing="0" cellpadding="0">
<tr class="soustitre">
<td style="width:2%;">&nbsp;</td>
<td style="width:60%">Titre</td>
<td style="width:38%">Auteur</td>
</tr>
<tr><td colspan="6" class="separ"></td></tr>
<?php
$ligne = 0;
foreach ($this->notices as $notice)
<tr class="soustitre">
<td style="width:2%;">&nbsp;</td>
<td style="width:60%"><?php echo $this->_('Titre'); ?></td>
<td style="width:38%"><?php echo $this->_('Auteur'); ?></td>
</tr>
<tr><td colspan="6" class="separ"></td></tr>
<?php
$ligne = 0;
foreach ($this->notices as $notice)
{
$ligne ++ ; if ($ligne & 1) $class="first"; else $class="second";
$ligne ++;
if ($ligne & 1)
$class="first";
else
$class="second";
echo '<tr class="' . $class . '">' .
'<td align="center" style="padding:3px 5px 3px 0px">'.$this->iconeSupport($notice->getTypeDoc()).'</td>' .
'<td>' . $notice->getTitrePrincipal() . '</td>'.
'<td>' . $notice->getAuteurPrincipal() . '</td>
</tr>';
}
echo '<tr><td colspan="6" class="separ"></td></tr>';
echo '</table>';
echo '<p style="margin-top:1px;"><small>nb : Affichage des 20 premières notices uniquement...</small></p> ';
'<td align="center" style="padding:3px 5px 3px 0px">'.$this->iconeSupport($notice->getTypeDoc()).'</td>' .
'<td>' . $notice->getTitrePrincipal() . '</td>'.
'<td>' . $notice->getAuteurPrincipal() . '</td>
</tr>';
}
?>
<br>
<?php
echo $this->button((new Class_Entity())
->setText($this->_('Modifier le catalogue '))
->setAttribs(['title' => $this->_('Modifier le catalogue : %s',
$this->catalogue->getLibelle())])
->setUrl($this->url(['action' => 'edit',
'id_catalogue' => $this->catalogue->getId()]))
->setImage($this->tagImg(Class_Admin_Skin::current()
->getIconUrl('buttons',
'configuration'))));
?>
echo '<tr><td colspan="6" class="separ"></td></tr>';
echo '</table>';
echo '<p style="margin-top:1px;"><small>' . $this->_('Information : Affichage des 20 premières notices uniquement...') . '</small></p> ';
} ?>
<br>
<?php
echo $this->button((new Class_Entity())
->setText($this->_('Modifier le domaine '))
->setAttribs(['title' => $this->_('Modifier le domaine : %s',
$this->catalogue->getLibelle())])
->setUrl($this->url(['action' => 'edit',
'id_catalogue' => $this->catalogue->getId()]))
->setImage($this->tagImg(Class_Admin_Skin::current()
->getIconUrl('buttons', 'configuration'))));
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