Commit ce3bbf0f authored by peupleLà's avatar peupleLà
Browse files

Trad : include/staff/email.inc.php

parent ebf13e66
<?php
if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Access Denied');
if(!defined('OSTADMININC') || !$thisstaff || !$thisstaff->isAdmin()) die('Accès refusé');
$info=array();
$qstr='';
if($email && $_REQUEST['a']!='add'){
$title='Update Email';
$action='update';
$submit_text='Save Changes';
$title='Mettre à jour les adresses courriel';
$action='update'; /*=> donc ici on ne traduit pas, si je comprends bien ?*/
  • C'est bien ça : on retrouve $action dans un champ hidden, donc non affiché. Ça donne au backend l'action à effectuer.

Please register or sign in to reply
$submit_text='Sauvegarder les modifications';
$info=$email->getInfo();
$info['id']=$email->getId();
if($info['mail_delete'])
......@@ -15,7 +15,7 @@ if($email && $_REQUEST['a']!='add'){
else
$info['postfetch']=''; //nothing.
if($info['userpass'])
$passwdtxt='To change password enter new password above.';
$passwdtxt='Pour changer le mot de passe, entrer un nouveau mot de passe ci-dessous.';
$qstr.='&id='.$email->getId();
}else {
......@@ -46,14 +46,14 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<tr>
<th colspan="2">
<h4><?php echo $title; ?></h4>
<em><strong>Email Information &amp; Settings</strong></em>
<em><strong>Information &amp; paramètres de courriels</strong></em>
</th>
</tr>
</thead>
<tbody>
<tr>
<td width="180" class="required">
Email Address
Adresse courriel
</td>
<td>
<input type="text" size="35" name="email" value="<?php echo $info['email']; ?>">
......@@ -62,7 +62,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180" class="required">
Email Name
Nom du courriel
</td>
<td>
<input type="text" size="35" name="name" value="<?php echo $info['name']; ?>">
......@@ -71,17 +71,17 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<th colspan="2">
<em><strong>New Ticket Settings</strong></em>
<em><strong>Paramètres du nouveau ticket</strong></em>
</th>
</tr>
<tr>
<td width="180">
Department
Département
</td>
<td>
<span>
<select name="dept_id">
<option value="0" selected="selected">&mdash; System Default &mdash;</option>
<option value="0" selected="selected">&mdash; Valeurs par défaut du système &mdash;</option>
<?php
$sql='SELECT dept_id, dept_name FROM '.DEPT_TABLE.' dept ORDER by dept_name';
if(($res=db_query($sql)) && db_num_rows($res)){
......@@ -99,12 +99,12 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180">
Priority
Priorité
</td>
<td>
<span>
<select name="priority_id">
<option value="0" selected="selected">&mdash; System Default &mdash;</option>
<option value="0" selected="selected">&mdash; Valeurs par défaut du système &mdash;</option>
<?php
$sql='SELECT priority_id, priority_desc FROM '.PRIORITY_TABLE.' pri ORDER by priority_urgency DESC';
if(($res=db_query($sql)) && db_num_rows($res)){
......@@ -122,12 +122,12 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180">
Help Topic
Rubrique d’aide
</td>
<td>
<span>
<select name="topic_id">
<option value="0" selected="selected">&mdash; System Default &mdash;</option>
<option value="0" selected="selected">&mdash; Valeurs par défaut du système &mdash;</option>
<?php
$topics = Topic::getHelpTopics();
while (list($id,$topic) = each($topics)) { ?>
......@@ -144,23 +144,23 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180">
Auto-Response
Réponse automatique
</td>
<td>
<label><input type="checkbox" name="noautoresp" value="1" <?php echo $info['noautoresp']?'checked="checked"':''; ?> >
<strong>Disable</strong> for this Email Address
<strong>Désactivée</strong> pour cette adresse courriel
</label>
<i class="help-tip icon-question-sign" href="#auto_response"></i>
</td>
</tr>
<tr>
<th colspan="2">
<em><strong>Email Login Information</strong>&nbsp;<i class="help-tip icon-question-sign" href="#login_information"></i></em>
<em><strong>Informations de connexion au courriel</strong>&nbsp;<i class="help-tip icon-question-sign" href="#login_information"></i></em>
</th>
</tr>
<tr>
<td width="180">
Username
Nom d’utilisateur
</td>
<td>
<input type="text" size="35" name="userid" value="<?php echo $info['userid']; ?>"
......@@ -170,7 +170,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<td width="180">
Password
Mot de passe
</td>
<td>
<input type="password" size="35" name="passwd" value="<?php echo $info['passwd']; ?>"
......@@ -181,19 +181,19 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<th colspan="2">
<em><strong>Fetching Email via IMAP or POP</strong>&nbsp;<i class="help-tip icon-question-sign" href="#mail_account"></i>&nbsp;<font class="error">&nbsp;<?php echo $errors['mail']; ?></font></em>
<em><strong>Récupération des courriels par IMAP ou POP</strong>&nbsp;<i class="help-tip icon-question-sign" href="#mail_account"></i>&nbsp;<font class="error">&nbsp;<?php echo $errors['mail']; ?></font></em>
</th>
</tr>
<tr>
<td>Status</td>
<td>Statut</td>
<td>
<label><input type="radio" name="mail_active" value="1" <?php echo $info['mail_active']?'checked="checked"':''; ?> />&nbsp;Enable</label>
<label><input type="radio" name="mail_active" value="1" <?php echo $info['mail_active']?'checked="checked"':''; ?> />&nbsp;Activé</label>
&nbsp;&nbsp;
<label><input type="radio" name="mail_active" value="0" <?php echo !$info['mail_active']?'checked="checked"':''; ?> />&nbsp;Disable</label>
<label><input type="radio" name="mail_active" value="0" <?php echo !$info['mail_active']?'checked="checked"':''; ?> />&nbsp;Désactivé</label>
&nbsp;<font class="error">&nbsp;<?php echo $errors['mail_active']; ?></font>
</td>
</tr>
<tr><td>Hostname</td>
<tr><td>Nom d’hôte</td>
<td>
<span>
<input type="text" name="mail_host" size=35 value="<?php echo $info['mail_host']; ?>">
......@@ -202,7 +202,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</span>
</td>
</tr>
<tr><td>Port Number</td>
<tr><td>Numéro de port</td>
<td><input type="text" name="mail_port" size=6 value="<?php echo $info['mail_port']?$info['mail_port']:''; ?>">
<span>
&nbsp;<font class="error">&nbsp;<?php echo $errors['mail_port']; ?></font>
......@@ -210,11 +210,11 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</span>
</td>
</tr>
<tr><td>Mail Box Protocol</td>
<tr><td>Protocole de messagerie</td>
<td>
<span>
<select name="mail_proto">
<option value=''>&mdash; Select Protocol &mdash;</option>
<option value=''>&mdash; Sélectionner un protocole &mdash;</option>
<?php
foreach (MailFetcher::getSupportedProtos() as $proto=>$desc) { ?>
<option value="<?php echo $proto; ?>" <?php
......@@ -228,7 +228,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</td>
</tr>
<tr><td>Fetch Frequency</td>
<tr><td>Fréquence de récupération</td>
<td>
<span>
<input type="text" name="mail_fetchfreq" size=4 value="<?php echo $info['mail_fetchfreq']?$info['mail_fetchfreq']:''; ?>"> minutes
......@@ -237,78 +237,78 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</span>
</td>
</tr>
<tr><td>Emails Per Fetch</td>
<tr><td>Nombre de courriels par récupération</td>
<td>
<span>
<input type="text" name="mail_fetchmax" size=4 value="<?php echo $info['mail_fetchmax']?$info['mail_fetchmax']:''; ?>"> emails
<input type="text" name="mail_fetchmax" size=4 value="<?php echo $info['mail_fetchmax']?$info['mail_fetchmax']:''; ?>"> courriels
<i class="help-tip icon-question-sign" href="#emails_per_fetch"></i>
&nbsp;<font class="error">&nbsp;<?php echo $errors['mail_fetchmax']; ?></font>
</span>
</td>
</tr>
<tr><td valign="top">Fetched Emails</td>
<tr><td valign="top">Courriels récupérés</td>
<td>
<label><input type="radio" name="postfetch" value="archive" <?php echo ($info['postfetch']=='archive')? 'checked="checked"': ''; ?> >
Move to folder: <input type="text" name="mail_archivefolder" size="20" value="<?php echo $info['mail_archivefolder']; ?>"/></label>
&nbsp;<font class="error"><?php echo $errors['mail_folder']; ?></font>
<i class="help-tip icon-question-sign" href="#fetched_emails"></i>
<br/>
<label><input type="radio" name="postfetch" value="delete" <?php echo ($info['postfetch']=='delete')? 'checked="checked"': ''; ?> >
Delete emails</label>
<label><input type="radio" name="postfetch" value="supprimer" <?php echo ($info['postfetch']=='delete')? 'checked="checked"': ''; ?> >
Supprimer les courriels</label>
<br/>
<label><input type="radio" name="postfetch" value="" <?php echo (isset($info['postfetch']) && !$info['postfetch'])? 'checked="checked"': ''; ?> >
Do nothing <em>(not recommended)</em></label>
Ne rien faire <em>(non recommandé)</em></label>
<br /><font class="error"><?php echo $errors['postfetch']; ?></font>
</td>
</tr>
<tr>
<th colspan="2">
<em><strong>Sending Email via SMTP</strong>&nbsp;<i class="help-tip icon-question-sign" href="#smtp_settings"></i>&nbsp;<font class="error">&nbsp;<?php echo $errors['smtp']; ?></font></em>
<em><strong>Envoi des courriels par SMTP</strong>&nbsp;<i class="help-tip icon-question-sign" href="#smtp_settings"></i>&nbsp;<font class="error">&nbsp;<?php echo $errors['smtp']; ?></font></em>
</th>
</tr>
<tr><td>Status</td>
<tr><td>Statut</td>
<td>
<label><input type="radio" name="smtp_active" value="1" <?php echo $info['smtp_active']?'checked':''; ?> />&nbsp;Enable</label>
<label><input type="radio" name="smtp_active" value="1" <?php echo $info['smtp_active']?'checked':''; ?> />&nbsp;Activé</label>
&nbsp;
<label><input type="radio" name="smtp_active" value="0" <?php echo !$info['smtp_active']?'checked':''; ?> />&nbsp;Disable</label>
<label><input type="radio" name="smtp_active" value="0" <?php echo !$info['smtp_active']?'checked':''; ?> />&nbsp;Désactivé/label>
&nbsp;<font class="error">&nbsp;<?php echo $errors['smtp_active']; ?></font>
</td>
</tr>
<tr><td>Hostname</td>
<tr><td>Nom d’hôte</td>
<td><input type="text" name="smtp_host" size=35 value="<?php echo $info['smtp_host']; ?>">
&nbsp;<font class="error"><?php echo $errors['smtp_host']; ?></font>
<i class="help-tip icon-question-sign" href="#host_and_port"></i>
</td>
</tr>
<tr><td>Port Number</td>
<tr><td>Numéro de port</td>
<td><input type="text" name="smtp_port" size=6 value="<?php echo $info['smtp_port']?$info['smtp_port']:''; ?>">
&nbsp;<font class="error"><?php echo $errors['smtp_port']; ?></font>
<i class="help-tip icon-question-sign" href="#host_and_port"></i>
</td>
</tr>
<tr><td>Authentication Required</td>
<tr><td>Authentication requise</td>
<td>
<label><input type="radio" name="smtp_auth" value="1"
<?php echo $info['smtp_auth']?'checked':''; ?> /> Yes</label>
<?php echo $info['smtp_auth']?'checked':''; ?> /> Oui</label>
&nbsp;
<label><input type="radio" name="smtp_auth" value="0"
<?php echo !$info['smtp_auth']?'checked':''; ?> /> No</label>
<?php echo !$info['smtp_auth']?'checked':''; ?> /> Non</label>
<font class="error">&nbsp;<?php echo $errors['smtp_auth']; ?></font>
</td>
</tr>
<tr>
<td>Header Spoofing</td>
<td>Pseudo en-tête</td> <!-- pour 'Header Spoofin' ? à vrai dire, je ne sais pas ce que c’est !-->
<td>
<label><input type="checkbox" name="smtp_spoofing" value="1" <?php echo $info['smtp_spoofing'] ?'checked="checked"':''; ?>>
Allow for this Email Address</label>
Autoriser pour cette adresse courriel</label>
<i class="help-tip icon-question-sign" href="#header_spoofing"></i>
</td>
</tr>
<tr>
<th colspan="2">
<em><strong>Internal Notes</strong>: Admin's notes. &nbsp;<span class="error">&nbsp;<?php echo $errors['notes']; ?></span></em>
<em><strong>Notes internes</strong>&nbsp;: remarques de l’admin &nbsp;<span class="error">&nbsp;<?php echo $errors['notes']; ?></span></em>
</th>
</tr>
<tr>
......@@ -321,7 +321,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</table>
<p style="padding-left:225px;">
<input type="submit" name="submit" value="<?php echo $submit_text; ?>">
<input type="reset" name="reset" value="Reset">
<input type="button" name="cancel" value="Cancel" onclick='window.location.href="emails.php"'>
<input type="reset" name="reset" value="Réinitialiser">
<input type="button" name="cancel" value="Annuler" onclick='window.location.href="emails.php"'>
</p>
</form>
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