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 --- modules/diary.module | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/diary.module') diff --git a/modules/diary.module b/modules/diary.module index c4939bdca..381afc887 100644 --- a/modules/diary.module +++ b/modules/diary.module @@ -35,7 +35,7 @@ function diary_page_overview($num = 20) { while ($diary = db_fetch_object($result)) { if ($time != date("F jS", $diary->timestamp)) { - $output .= "". date("l, F jS", $diary->timestamp) ."\n"; + $output .= "". $date = t(date("l", $timestamp)) .", ". t(date("F", $timestamp)) ." ". date("j", $diary->timestamp) ."\n"; $time = date("F jS", $diary->timestamp); } $output .= "
\n"; @@ -55,13 +55,13 @@ function diary_page_overview($num = 20) { function diary_page_entry($timestamp, $text, $id = 0) { if ($id) { $output .= "
\n"; - $output .= "
". date("l, F jS", $timestamp) .":
\n"; + $output .= "
". format_date($timestamp, "large") .":
\n"; $output .= "

[ ". t("edit") ." ]

". check_output($text, 1) ."

\n"; $output .= "
\n"; } else { $output .= "
\n"; - $output .= "
". date("l, F jS", $timestamp) .":
\n"; + $output .= "
". format_date($timestamp, "large") .":
\n"; $output .= "

". check_output($text, 1) ."

\n"; $output .= "
\n"; } @@ -215,7 +215,7 @@ function diary_user($username, $section, $operation) { if ($section == "user" && $operation == "view") { $result = db_query("SELECT d.* FROM diaries d LEFT JOIN users u ON u.id = d.author WHERE u.userid = '$username' AND d.timestamp > ". (time() - 1209600) ." ORDER BY id DESC LIMIT 2"); while ($diary = db_fetch_object($result)) { - $content .= "
". date("l, F jS", $diary->timestamp) .":

". check_output($diary->text) ."

[ more ]

\n"; + $content .= "
". format_date($diary->timestamp, "large") .":

". check_output($diary->text) ."

[ more ]

\n"; $diaries++; } @@ -236,7 +236,7 @@ function diary_block() { while ($diary = db_fetch_object($result)) { if ($time != date("F jS", $diary->timestamp)) { - $content .= "

". date("l, M jS", $diary->timestamp) ."

\n"; + $content .= "

". t(date("l", $diary->timestamp)) ." (". date("m/d/Y", $diary->timestamp) .")

\n"; $time = date("F jS", $diary->timestamp); } $content .= "
  • userid\">$diary->userid
  • \n"; -- cgit v1.2.3