From 52a1d1bbe80422ca7a8c79dde6fd92db542b9b2d Mon Sep 17 00:00:00 2001
From: Dries Buytaert
Date: Sat, 17 Feb 2001 12:59:24 +0000
Subject: - More updates on the translation support
---
includes/comment.inc | 78 +++++++++++++++++++---------------------------------
1 file changed, 29 insertions(+), 49 deletions(-)
(limited to 'includes/comment.inc')
diff --git a/includes/comment.inc b/includes/comment.inc
index dcd4557eb..c64a3e4dd 100644
--- a/includes/comment.inc
+++ b/includes/comment.inc
@@ -56,7 +56,6 @@ function comment_settings($mode, $order, $threshold) {
function comment_reply($pid, $id) {
global $allowed_html, $link, $REQUEST_URI, $theme, $user;
- // Extract parent-information/data:
if ($pid) {
$item = db_fetch_object(db_query("SELECT comments.*, users.userid FROM comments LEFT JOIN users ON comments.author = users.id WHERE comments.cid = $pid"));
$theme->comment(new Comment($item->userid, $item->subject, $item->comment, $item->timestamp, $item->url, $item->fake_email, comment_score($comment), $comment->votes, $item->cid, $item->lid), "reply to this comment");
@@ -73,31 +72,23 @@ function comment_reply($pid, $id) {
$output .= "\n";
@@ -114,42 +105,32 @@ function comment_preview($pid, $id, $subject, $comment) {
$output .= "\n";
- $output .= "
\n";
+ $output .= "\n";
+ $output .= "\n";
+ $output .= "\n";
- $theme->box("Reply", $output);
+ $theme->box(t("Reply"), $output);
}
function comment_post($pid, $id, $subject, $comment) {
@@ -205,7 +186,7 @@ function comment_moderation($comment) {
$output .= "\n";
}
else {
- $output .= "score: | ". check_output($comment->score) ." |
votes: | ". check_output($comment->votes) ." |
\n";
+ $output .= "". t("score") .": | ". check_output($comment->score) ." |
". t("votes") .": | ". check_output($comment->votes) ." |
\n";
}
return $output;
@@ -218,8 +199,8 @@ function comment_controls($threshold = 1, $mode = 3, $order = 1) {
$output .= comment_mode(($user->id ? $user->mode : $mode));
$output .= comment_order(($user->id ? $user->sort : $order));
$output .= comment_threshold(($user->id ? $user->threshold : $threshold));
- $output .= "\n";
- $output .= "\n";
+ $output .= "\n";
+ $output .= "\n";
$output .= "\n";
$output .= "\n";
return $output;
@@ -228,7 +209,7 @@ function comment_controls($threshold = 1, $mode = 3, $order = 1) {
function comment_threshold($threshold) {
$output .= "\n";
return $output;
@@ -313,9 +294,8 @@ function comment_thread_max($cid, $mode, $threshold, $level = 0, $dummy = 0) {
$theme->comment($comment, comment_link($comment, 0));
}
else {
- print "";
comment_comment($comment);
- print "
";
+ print "";
}
comment_thread_max($comment->cid, $mode, $threshold, $level + 1, $dummy + 1);
}
@@ -385,7 +365,7 @@ function comment_render($lid, $cid) {
if ($user->id) {
// Print moderation form:
print " \n";
- print " \n";
+ print " \n";
print "\n";
}
}
--
cgit v1.2.3