From 994869d5f5ee037995d37d70ef9ab79fea4fd6cb Mon Sep 17 00:00:00 2001 From: Jeroen Bensch Date: Wed, 28 Feb 2001 00:29:57 +0000 Subject: OK I wrote a lengthy text with my previous commit, but due to an Up-to-date check failure it got aborted. So here it is in short. I added the translation functionality and fixed a bug that would cause the comment's subjects not to display. Apparantly it's comment->subject instead of just subject. I also wanted to make something in the comment header a bit more clear I already changed some colors but I would want the comment's rating/score to display black. It's grey now and on a grey background it isn't so clear to read (lisible in decent english?). So I added something that I thought would paint it black, but obviously it didn't. It's still grey. I didn't remove the code, it's only two lines, because it also works this way. For the rest I don't think that anything changed. Jeroen. P.S.: Dries, I think we can release it tomorrow, but wait and upload it to http://jeroen.drop.org first so I can check. And at noon we'll let it out. It's yearning to, I can here it growl and make roaring noises in my laptop... --- themes/jeroen/jeroen.theme | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/themes/jeroen/jeroen.theme b/themes/jeroen/jeroen.theme index c08cdfa07..42fbc70fc 100644 --- a/themes/jeroen/jeroen.theme +++ b/themes/jeroen/jeroen.theme @@ -112,7 +112,7 @@ PHP?> case 12: $how = "Forged"; break; default: $how = "Sneaked through"; } - echo "$how by ". format_username($story->userid) ." on $timestamp + echo "". strtr(t("$how by %a on %b"), array("%a" => format_username($story->userid), "%b" => $timestamp, "large")) ."; @@ -129,9 +129,9 @@ PHP?> updates) - echo "

hlc2\">Editor's note:". check_output($story->updates, 1) ."

"; + echo "

hlc2\">". t("Editor's note") .":". check_output($story->updates, 1) ."

"; if ($story->abstract) echo "

". check_output($story->abstract, 1) ."

"; @@ -197,7 +197,8 @@ PHP?> } if ($story->userid) { - echo "$how by ". format_username($story->userid) ." on $timestamp"; ?> + echo "". strtr(t("$how by %a on %b"), array("%a" => format_username($story->userid), "%b" => $timestamp, "large")) ."; + section) ."\">fgc3; ?>\">$story->section"; @@ -224,7 +225,7 @@ PHP?> if ($story->updates) echo "

check_output($story->abstract, 1)

hlc2\">Editor's note by editor\">$story->editor:$story->updates

"; - else + else echo check_output($story->abstract, 1); if ($story->article) echo "

". check_output($story->article, 1) ."

"; @@ -255,7 +256,7 @@ PHP?> } // close article function function controls() { - print comment_controls(); + echo comment_controls(); } function comment($comment, $link = "", $thread = "") { @@ -272,24 +273,26 @@ PHP?> echo " "; echo " "; echo " "; - + // Subject: echo " "; echo " "; - + // Moderation: - echo " "; echo " "; - + // Author: echo " "; - echo " "; echo " "; - + echo "
"; - echo " Subject:"; - echo " ". check_output($subject) .""; + echo " ". t("Subject") .":"; + echo " ". check_output($comment->$subject) .""; echo " "; echo " "; - echo comment_moderation($comment); + echo " "; + echo " "; + echo comment_moderation($comment); + echo " "; echo "
Author:" .format_username($comment->userid) . " "; + echo " ". t("Author") .":" .format_username($comment->userid) . " "; if ($comment->userid != $anonymous) { // Display extra information line: if ($comment->fake_email) $info .= format_email($comment->fake_email); @@ -299,14 +302,14 @@ PHP?> echo " on ". format_date($comment->timestamp) .""; echo "
"; echo " "; echo " "; - + // Print body of comment: if ($comment) echo " " . check_output($comment->comment, 1) .""; - + // Print thread (if any): if ($thread) echo " $thread"; @@ -320,7 +323,7 @@ PHP?> echo " "; echo " "; echo "
"; - + } // close comment function function box($subject, $content, $options = "") { -- cgit v1.2.3