diff options
Diffstat (limited to 'tpl/blog')
-rw-r--r-- | tpl/blog/drafts.php | 24 | ||||
-rw-r--r-- | tpl/blog/index.php | 17 | ||||
-rw-r--r-- | tpl/blog/view.php | 26 |
3 files changed, 35 insertions, 32 deletions
diff --git a/tpl/blog/drafts.php b/tpl/blog/drafts.php index 510f428..6e18a6c 100644 --- a/tpl/blog/drafts.php +++ b/tpl/blog/drafts.php @@ -1,11 +1,13 @@ <?php +$title = "Mes articles"; + require("tpl/general/top.php"); echo '<div class="small_right">'; -echo '<a href="post-blog">post a message</a></div>'; +echo '<a href="post-blog">écrire un article</a></div>'; -echo '<h2>My drafts</h2>'; +echo '<h2>Mes brouillons</h2>'; if (count($drafts) > 0) { echo '<table><tr><th>Title</th><th>Actions</th></tr>'; @@ -20,27 +22,27 @@ if (count($drafts) > 0) { echo $post['text_html']; echo '</div>';*/ echo '<tr><td><a href="view-blog-' . $post['id'] . '">' . $post['title'] . '</a></td>'; - echo '<td><a href="edit-blog-' . $post['id'] . '">edit</a>'; - echo ' | <a href="delete-blog-' . $post['id'] . '">delete</a>'; - echo ' | <a href="publish-blog-' . $post['id'] . '">publish</a></td></tr>'; + echo '<td><a href="edit-blog-' . $post['id'] . '">modifier</a>'; + echo ' | <a href="delete-blog-' . $post['id'] . '">supprimer</a>'; + echo ' | <a href="publish-blog-' . $post['id'] . '">publier</a></td></tr>'; } echo '</table>'; } else { - echo '<p>No drafts</p>'; + echo '<p>Aucun brouillon</p>'; } -echo '<h2>My published posts</h2>'; +echo '<h2>Mes articles publiés</h2>'; if (count($pub) > 0) { - echo '<table><tr><th>Title</th><th>Actions</th></tr>'; + echo '<table><tr><th>Titre</th><th>Actions</th></tr>'; foreach ($pub as $post) { echo '<tr><td><a href="view-blog-' . $post['id'] . '">' . $post['title'] . '</a></td>'; - echo '<td><a href="edit-blog-' . $post['id'] . '">edit</a>'; - echo ' | <a href="delete-blog-' . $post['id'] . '">delete</a></td></tr>'; + echo '<td><a href="edit-blog-' . $post['id'] . '">modifier</a>'; + echo ' | <a href="delete-blog-' . $post['id'] . '">supprimer</a></td></tr>'; } echo '</table>'; } else { - echo '<p>No published posts</p>'; + echo '<p>Aucun article publié</p>'; } diff --git a/tpl/blog/index.php b/tpl/blog/index.php index cd458c1..712b205 100644 --- a/tpl/blog/index.php +++ b/tpl/blog/index.php @@ -3,8 +3,8 @@ require("tpl/general/top.php"); if ($can_post) { echo '<div class="small_right">'; - echo '<a href="post-blog">post a message</a>'; - echo ' | <a href="drafts-blog">my drafts</a>'; + echo '<a href="post-blog">écrire un article</a>'; + echo ' | <a href="drafts-blog">brouillons</a>'; echo '</div>'; } @@ -12,12 +12,12 @@ echo '<div class="ordering_links">' . filters_html_full() . '</div>'; foreach ($posts as $post) { echo '<div class="blog_post">'; - echo '<div class="small_right">by ' . $post['owner']; + echo '<div class="small_right">écrit par ' . $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="view-blog-' . $post['id'] . '">read & comment (' . $post['comments'] . ')</a>'; + echo ' | <a href="delete-blog-' . $post['id'] . '">supprimer</a>'; + echo ' | <a href="view-blog-' . $post['id'] . '">lire & commenter (' . $post['comments'] . ')</a>'; echo '</div>'; echo '<div class="small_right">published ' . $post['date'] . '</div>'; if ($post['tags'] != '') { @@ -31,7 +31,8 @@ foreach ($posts as $post) { echo '</div><div class="contents-left">'; foreach ($fa as $kname => $kdata) { - echo '<h1>Filter by ' . $kname . '</h1>'; + if ($kname == "author") continue; + echo '<h1>Filtrer par ' . $kname . '</h1>'; if (isset($fvalues[$kname])) { echo '<p>Filtering ' . $kname . ' : ' . $kdata[$fvalues[$kname]]['name'] . '.<br />'; $n = array(); @@ -61,7 +62,7 @@ if (count($fvalues) > 0) { echo '<li><a href="index.php?p=index-blog-' . $zd . '">Atom feed for this selection</a></li>'; echo '<li><a href="index.php?p=index-blog-feed-atom">Homepage Atom feed</a></li>'; } else { - echo '<li><a href="index.php?p=index-blog-feed-atom">Atom feed</a></li>'; + echo '<li><a href="index.php?p=index-blog-feed-atom">Flux Atom</a></li>'; } echo '</ul>'; 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.'; } } |