diff options
Diffstat (limited to 'tpl/blog/view.php')
-rw-r--r-- | tpl/blog/view.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tpl/blog/view.php b/tpl/blog/view.php index 32f1073..83c49c0 100644 --- a/tpl/blog/view.php +++ b/tpl/blog/view.php @@ -7,15 +7,15 @@ require("tpl/general/top.php"); echo '<div class="small_right">'; echo 'Written by ' . $post['owner']; if ($can_edit && $post['owner_id'] == $user['id']) - echo ' | <a href="edit-blog-' . $post['id'] . '">edit</a>'; + echo ' | <a href="edit-blog-' . $post['id'] . '">modifier</a>'; if ($can_delete && $post['owner_id'] == $user['id']) - echo ' | <a href="delete-blog-' . $post['id'] . '">delete</a>'; + echo ' | <a href="delete-blog-' . $post['id'] . '">supprimer</a>'; if ($can_comment && !$is_draft) - echo ' | <a href="comment-blog-' . $post['id'] . '">post comment</a>'; + echo ' | <a href="comment-blog-' . $post['id'] . '">commenter</a>'; if ($is_draft) - echo ' | <a href="publish-blog-' . $post['id'] . '">publish</a>'; + echo ' | <a href="publish-blog-' . $post['id'] . '">publier</a>'; echo '</div>'; -echo '<div class="small_right">published ' . $post['date'] . '</div>'; +echo '<div class="small_right">publié le ' . $post['date'] . '</div>'; if ($post['tags'] != '') { echo '<div class="small_right">tags: ' . $post['tags'] . '</div>'; } @@ -23,31 +23,31 @@ echo $post['text_html']; if (!$is_draft) { - echo '<h2>Comments</h2>'; + echo '<h2>Commentaires</h2>'; if (count($comments) == 0) { - echo 'No comments at the moment.'; + echo 'Pas de commentaires pour l\'instant.'; } else { foreach ($comments as $comment) { echo '<div class="blog_post">'; $a = array(); - if ($can_delcom) $a[] = '<a href="delcom-blog-' . $comment['id'] . '">delete</a>'; + if ($can_delcom) $a[] = '<a href="delcom-blog-' . $comment['id'] . '">supprimer</a>'; if ($can_comment && $comment['author_id'] == $user['id']) - $a[] = '<a href="edcom-blog-' . $comment['id'] . '">edit</a>'; + $a[] = '<a href="edcom-blog-' . $comment['id'] . '">modifier</a>'; if (count($a) > 0) echo '<div class="small_right">' . implode(" | ", $a) . '</div>'; - echo '<h3>' . $comment['date'] . ' by ' . $comment['author'] . '</h3>'; + echo '<h3>' . $comment['date'] . ' par ' . $comment['author'] . '</h3>'; echo '<div class="inside">' . $comment['text_html'] . '</div>'; echo '</div>'; } } - echo '<h3>Post a comment</h3>'; + echo '<h3>Écrire un commentaire</h3>'; if ($can_comment) { - echo '<form class="blog_post" method="POST" action="index.php?p=comment-blog-' . $post['id'] . '"><textarea name="comment" style="height: 200px"></textarea><br /><div class="empty_label"> </div><input type="submit" value="Comment" /></form>'; + echo '<form class="blog_post" method="POST" action="index.php?p=comment-blog-' . $post['id'] . '"><textarea name="comment" style="height: 200px"></textarea><br /><div class="empty_label"> </div><input type="submit" value="Enregistrer" /></form>'; } else { - echo 'Please log in or register to post a comment.'; + echo 'Veuillez vous identifier pour poster un commentaire.'; } } |