Vous n'êtes pas identifié.
Annonce
Annonce 1 : Le Codex en français a besoin de vous pour avancer !
Annonce 2 : Avant de poster, n'oubliez pas de faire une petite Recherche et de lire les règles de ce forum.
Annonce 3 : Lisez notre blog, il regorge de bonnes informations.
Pages: 1
- Index
- » Traduction française
- » Traduction, ça devait être facile... mais j'comprends rien !
#1 05-09-2008 19:00:11
- Didou on line
- Passionné WP

- Lieu: Rouen
- Date d'inscription: 03-09-2008
- Messages: 119
- Site web
Traduction, ça devait être facile... mais j'comprends rien !
Bonjour,
Ma configuration WP actuelle
- Version de WordPress :2.6.1.
- Thème utilisé :Jeans3c 1.0
- Plugins en place : Beaucoup !
- Nom de l'hebergeur : OVH
- Adresse du site :http://www.didouonline.com
Problème(s) rencontré(s) :
D'accord, j'avoue, je suis nulle... J'ai erré sur le forum, et je n'ai rien compris !!
Donc, Didou grosse faignasse aimerait trouvé une bonne âme pour l'aider à traduire son formulaire de commentaires : remplacer "name", "mail", "submit", "url", par des trucs en français !!!
Je change quoi là dedans ??
<div class="comments">
<div id="comments">
<!-- Start CommentsList-->
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">This post is password protected. Enter the password to view comments.<p>
<?php return; }}
/* This variable is for alternating comment background */
$oddcomment = 'alt ';
?>
<!-- You can start editing here. -->
<?php if ($comments) : ?>
<?php /* Count the totals */
$numPingBacks = 0;
$numComments = 0;
foreach ($comments as $comment) {
if (get_comment_type() != "comment") {
$numPingBacks++;
} else {
$numComments++;
}
}
?>
<?php if ($numComments != 0) : ?>
<h4><?php if ($numComments == 1) { echo 'One Response'; } else { echo $numComments; echo ' Responses'; } ?> for "<?php the_title(); ?>"</h4>
<?php foreach ($comments as $comment) : ?>
<?php if (get_comment_type() == 'comment'){ ?>
<div class="<?php if ($comment->comment_author_email == get_the_author_email()) echo 'author_'; else echo $oddcomment; ?>message-box" id="comment-<?php comment_ID() ?>">
<div class="message-lbc"></div><div class="message-ltc"></div>
<div class="message-entry">
<div class="message-by"><?php comment_author_link() ?></div>
<div class="message-time"><span><a href="#comment-<?php comment_ID() ?>"><?php comment_date('F jS, Y') ?> at <?php comment_time() ?></a></span> <?php edit_comment_link('<strong>Edit Comment</strong>',' ',' '); ?></div>
<!-- <div class="comment-num"><? /* php gravatar() */ ?><?php $commentNumber++; echo $commentNumber; ?></div> -->
<?php if (function_exists('get_avatar')) { ?><div class="gravatar-place"><?php echo get_avatar( $comment, 50 ); ?></div> <?php } else
if (function_exists('gravatar')) { ?><div class="gravatar-place"><?php gravatar_image_link(); ?></div> <?php } ?>
<?php if ($comment->comment_approved == '0') : ?><em>Your comment is awaiting moderation.</em><?php endif; ?>
<?php comment_text() ?>
</div>
</div>
<?php /* Changes every other comment to a different class */
if ('alt ' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt ';
?>
<?php } /* End of is_comment statement */ ?>
<?php endforeach; /* end for each comment */ ?>
<?php endif; ?>
<?php if ($numPingBacks != 0) : ?>
<h4 id="trackbacks"><?php if ($numPingBacks == 1) { echo 'One Trackback/Ping'; } else { echo $numPingBacks; echo ' Trackbacks/Pings'; } ?></h4>
<ol class="commentlist">
<?php foreach ($comments as $comment) : ?>
<?php if (get_comment_type() != 'comment'){ ?>
<li class="<?php echo $oddcomment; ?>ping" id="comment-<?php comment_ID() ?>">
<cite>
<span class="author b"><?php comment_author_link() ?> </span>
<span class="date"><?php comment_date('M d Y') ?> / <?php comment_date('ga') ?>:</span>
</cite>
<div class="tb-text">
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?>
<?php comment_text() ?>
</div>
</li>
<?php /* Changes every other comment to a different class */
if ('alt' == $oddcomment) $oddcomment = '';
else $oddcomment = 'alt';
?>
<?php } ?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php endif; ?>
<?php else : /* this is displayed if there are no comments so far */ ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : /* comments are closed */ ?>
<!-- If comments are closed. -->
<p class="nocomments">Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- Ends CommentsList-->
</div>
<!-- Start Comments Form-->
<div id="respond">
<h4>Leave a reply</h4>
<div class="form">
<?php if ( get_option('comment_registration') && !$user_ID ) : ?>
<p>You must be <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">logged in</a> to post a comment.</p>
<?php else : ?>
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<div class="inputs">
<?php if ( $user_ID ) : ?>
<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Logout »</a></p>
<?php else : ?>
Name <?php if ($req) _e('(<b>*</b>)'); ?>
<div class="input"><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" tabindex="1" /></div>
Mail <?php if ($req) _e('(<b>*</b>)'); ?>
<div class="input"><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" /></div>
URI
<div class="input"><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" /></div>
<?php endif; ?>
</div>
<div class="message">
Comment
<div class="input"><textarea name="comment" id="comment" rows="7" cols="25" tabindex="4"></textarea></div>
</div>
<div class="clear"></div>
<div class="submit"><input type="submit" value=" " title="Post Your Comment" /><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></div>
<?php do_action('comment_form', $post->ID); ?>
</form>
<?php endif; /* If registration required and not logged in */ ?>
</div>
</div>
<?php endif; /* if you delete this the sky will fall on your head */ ?>
</div>
Merci pour votre aide !!!
Didou...
Demande de l'aide (souvent), aide à son tour (quand elle peut !)
Hors ligne
#2 05-09-2008 22:16:22
- Lumière de Lune
- Not a plastic girl

- Lieu: Allemagne - Maroc
- Date d'inscription: 15-08-2007
- Messages: 2062
- Site web
Re: Traduction, ça devait être facile... mais j'comprends rien !
Qu'est ce que tu ne comprends pas ?
Dans le code que tu as donné, il y a manifestement des phrases en anglais, qui s'affichent, et qui sont celles que tu veux traduire.
Donc tu les remplaces par des phrases en français, et tout va bien.
Voyage au Maroc
Photos et web au Maroc
... tout ça sous WordPress, bien sûr !
Avez-vous lu les Dix commandements du débuggueur de blog ?
Hors ligne
#3 05-09-2008 22:52:40
- Didou on line
- Passionné WP

- Lieu: Rouen
- Date d'inscription: 03-09-2008
- Messages: 119
- Site web
Re: Traduction, ça devait être facile... mais j'comprends rien !
Bonsoir Lumière de Lune !
Bien... j'ai essayé, mais je n'ai pas dû modifier au bon endroit puisque ça n'a pas fonctionné... Il y a des mots "comme ça" puis 'comme ça', puis *comme ça*... y'en a partout !!! Et je ne sais pas lesquels changer...
Bonne soirée à toi !
Demande de l'aide (souvent), aide à son tour (quand elle peut !)
Hors ligne
#4 05-09-2008 23:44:56
- Didou on line
- Passionné WP

- Lieu: Rouen
- Date d'inscription: 03-09-2008
- Messages: 119
- Site web
Re: Traduction, ça devait être facile... mais j'comprends rien !
J'avais peur de tout casser.... après quelques messages d'erreur, j'ai fini par y arriver !
Merci de t'être penchée sur mon "cas" !!
Demande de l'aide (souvent), aide à son tour (quand elle peut !)
Hors ligne
#5 06-09-2008 00:23:58
- bobmartien
- Habitué WP
- Date d'inscription: 19-08-2008
- Messages: 61
Re: Traduction, ça devait être facile... mais j'comprends rien !
Tiens,
Il est tard et je suis fatigué s'il manque des trucs up le post et dit moi quoi 
Code:
- <div class="comments">
- <div id="comments">
- <!-- Start CommentsList-->
- <?php // Ne pas supprimer ces lignes
- if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
- die ('Ne pas charger cette page directement Merci!');
- if (!empty($post->post_password)) { // S'il y a un mot de pass
- if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
- ?>
- <p class="nocomments">Ce post est protégé. Entrer le mot de passe pour voir les commentaires.<p>
- <?php return; }}
- /* This variable is for alternating comment background */
- $oddcomment = 'alt ';
- ?>
- <!-- Vous pouvez éditer ici -->
- <?php if ($comments) : ?>
- <?php /* Count the totals */
- $numPingBacks = 0;
- $numComments = 0;
- foreach ($comments as $comment) {
- if (get_comment_type() != "comment") {
- $numPingBacks++;
- } else {
- $numComments++;
- }
- }
- ?>
- <?php if ($numComments != 0) : ?>
- <h4><?php if ($numComments == 1) { echo 'Une Réponse'; } else { echo $numComments; echo ' Réponses'; } ?> pour "<?php the_title(); ?>"</h4>
- <?php foreach ($comments as $comment) : ?>
- <?php if (get_comment_type() == 'comment'){ ?>
- <div class="<?php if ($comment->comment_author_email == get_the_author_email()) echo 'author_'; else echo $oddcomment; ?>message-box" id="comment-<?php comment_ID() ?>">
- <div class="message-lbc"></div><div class="message-ltc"></div>
- <div class="message-entry">
- <div class="message-by"><?php comment_author_link() ?></div>
- <div class="message-time"><span><a href="#comment-<?php comment_ID() ?>"><?php comment_date('F jS, Y') ?> à <?php comment_time() ?></a></span> <?php edit_comment_link('<strong>Editer le commentaire</strong>',' ',' '); ?></div>
- <!-- <div class="comment-num"><? /* php gravatar() */ ?><?php $commentNumber++; echo $commentNumber; ?></div> -->
- <?php if (function_exists('get_avatar')) { ?><div class="gravatar-place"><?php echo get_avatar( $comment, 50 ); ?></div> <?php } else
- if (function_exists('gravatar')) { ?><div class="gravatar-place"><?php gravatar_image_link(); ?></div> <?php } ?>
- <?php if ($comment->comment_approved == '0') : ?><em>Votre commentaire est en attente de validation.</em><?php endif; ?>
- <?php comment_text() ?>
- </div>
- </div>
- <?php /* Changes every other comment to a different class */
- if ('alt ' == $oddcomment) $oddcomment = '';
- else $oddcomment = 'alt ';
- ?>
- <?php } /* End of is_comment statement */ ?>
- <?php endforeach; /* end for each comment */ ?>
- <?php endif; ?>
- <?php if ($numPingBacks != 0) : ?>
- <h4 id="trackbacks"><?php if ($numPingBacks == 1) { echo 'One Trackback/Ping'; } else { echo $numPingBacks; echo ' Trackbacks/Pings'; } ?></h4>
- <ol class="commentlist">
- <?php foreach ($comments as $comment) : ?>
- <?php if (get_comment_type() != 'comment'){ ?>
- <li class="<?php echo $oddcomment; ?>ping" id="comment-<?php comment_ID() ?>">
- <cite>
- <span class="author b"><?php comment_author_link() ?> </span>
- <span class="date"><?php comment_date('d M Y') ?> / <?php comment_date('ga') ?>:</span>
- </cite>
- <div class="tb-text">
- <?php if ($comment->comment_approved == '0') : ?>
- <em>Votre commentaire est en attente de validation.</em>
- <?php endif; ?>
- <?php comment_text() ?>
- </div>
- </li>
- <?php /* Changes every other comment to a different class */
- if ('alt' == $oddcomment) $oddcomment = '';
- else $oddcomment = 'alt';
- ?>
- <?php } ?>
- <?php endforeach; /* end for each comment */ ?>
- </ol>
- <?php endif; ?>
- <?php else : /* this is displayed if there are no comments so far */ ?>
- <?php if ('open' == $post->comment_status) : ?>
- <!-- If comments are open, but there are no comments. -->
- <?php else : /* comments are closed */ ?>
- <!-- If comments are closed. -->
- <p class="nocomments">Les commentaires sont fermés.</p>
- <?php endif; ?>
- <?php endif; ?>
- <?php if ('open' == $post->comment_status) : ?>
- <!-- Ends CommentsList-->
- </div>
- <!-- Start Comments Form-->
- <div id="respond">
- <h4>Répondre</h4>
- <div class="form">
- <?php if ( get_option('comment_registration') && !$user_ID ) : ?>
- <p>Vous devez être <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">identifié</a> pour poster un commentaire.</p>
- <?php else : ?>
- <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
- <div class="inputs">
- <?php if ( $user_ID ) : ?>
- <p>Identifié en tant que <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="Log out of this account">Déconnexion »</a></p>
- <?php else : ?>
- Pseudo <?php if ($req) _e('(<b>*</b>)'); ?>
- <div class="input"><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" tabindex="1" /></div>
- E-mail <?php if ($req) _e('(<b>*</b>)'); ?>
- <div class="input"><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" /></div>
- Siteweb
- <div class="input"><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" /></div>
- <?php endif; ?>
- </div>
- <div class="message">
- Message
- <div class="input"><textarea name="comment" id="comment" rows="7" cols="25" tabindex="4"></textarea></div>
- </div>
- <div class="clear"></div>
- <div class="submit"><input type="submit" value="Envoyer" title="Poster le commentaire" /><input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></div>
- <?php do_action('comment_form', $post->ID); ?>
- </form>
- <?php endif; /* If registration required and not logged in */ ?>
- </div>
- </div>
- <?php endif; /* if you delete this the sky will fall on your head */ ?>
- </div>
Hors ligne
Pages: 1
- Index
- » Traduction française
- » Traduction, ça devait être facile... mais j'comprends rien !
