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 --- submit.php | 120 +++++++++++++++++++++++-------------------------------------- 1 file changed, 44 insertions(+), 76 deletions(-) (limited to 'submit.php') diff --git a/submit.php b/submit.php index 7db513f90..337aa69a2 100644 --- a/submit.php +++ b/submit.php @@ -1,5 +1,7 @@ \n"; - $output .= "

\n"; - $output .= " ". t("Your name") .":
\n"; - $output .= format_username($user->userid); - $output .= "

\n"; - - $output .= "

\n"; - $output .= " ". t("Subject") .":
\n"; - $output .= "
\n"; - $output .= "

\n"; - - $output .= "

\n"; - $output .= " ". t("Section") .":
\n"; - $output .= " \n"; - $output .= "

\n"; - - $output .= "

\n"; - $output .= " ". t("Abstract") .":
\n"; - $output .= "
\n"; - $output .= " ". t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html) .".\n"; - $output .= "

\n"; - - $output .= "

\n"; - $output .= " ". t("Extended story") .":
\n"; - $output .= "
\n"; - $output .= " ". t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html) .".\n"; - $output .= "

\n"; - - $output .= "

\n"; - $output .= " ". t("You must preview at least once before you can submit") .":
\n"; - $output .= " \n"; - $output .= "

\n"; + $output .= "". t("Your name") .":
\n"; + $output .= format_username($user->userid) ."

\n"; + + $output .= "". t("Subject") .":
\n"; + $output .= "

\n"; + + $output .= "". t("Section") .":
\n"; + foreach ($sections = section_get() as $value) $options .= " \n"; + $output .= "

\n"; + + $output .= "". t("Abstract") .":
\n"; + $output .= "
\n"; + $output .= "". t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html) .".

\n"; + + $output .= "". t("Extended story") .":
\n"; + $output .= "
\n"; + $output .= "". t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html) .".

\n"; + + $output .= "". t("You must preview at least once before you can submit") .":
\n"; + $output .= "

\n"; $output .= "\n"; $theme->header(); - $theme->box(t("Submit a story"), $output); + $theme->box(t("New submission"), $output); $theme->footer(); } @@ -59,54 +48,35 @@ function submit_preview($subject, $abstract, $article, $section) { $output .= "

\n"; - $output .= "

\n"; - $output .= " ". t("Your name") .":
\n"; - $output .= format_username($user->userid); - $output .= "

\n"; + $output .= "". t("Your name") .":
\n"; + $output .= format_username($user->userid) ."

"; - $output .= "

\n"; - $output .= " ". t("Subject") .":
\n"; - $output .= "
\n"; - $output .= "

\n"; + $output .= "". t("Subject") .":
\n"; + $output .= "

\n"; - $output .= "

\n"; - $output .= " ". t("Section") .":
\n"; - $output .= " \n"; - $output .= "

\n"; + $output .= "". t("Section") .":
\n"; + foreach ($sections = section_get() as $value) $options .= " \n"; + $output .= "

\n"; - $output .= "

\n"; $output .= "". t("Abstract") .":
\n"; - $output .= "
\n"; - $output .= " Allowed HTML tags: ". htmlspecialchars($allowed_html) .".\n"; - $output .= "

\n"; + $output .= "
\n"; + $output .= "". t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html) .".

\n"; - $output .= "

\n"; - $output .= " ". t("Extended story") .":
\n"; - $output .= "
\n"; - $output .= " Allowed HTML tags: ". htmlspecialchars($allowed_html) .".\n"; - $output .= "

\n"; + $output .= "". t("Extended story") .":
\n"; + $output .= "
\n"; + $output .= "". t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html) .".

\n"; if (empty($subject)) { - $output .= "

". t("Warning: you did not supply a subject.") ."

\n"; - $output .= "

\n"; - $output .= " \n"; - $output .= "

\n"; + $output .= "". t("Warning: you did not supply a subject.") ."

\n"; + $output .= "\n"; } else if (empty($abstract)) { - $output .= "

\n"; - $output .= " ". t("Warning: you did not supply an abstract.") ."\n"; - $outout .= "

\n"; - $output .= "

\n"; - $output .= " \n"; - $output .= "

\n"; + $output .= "". t("Warning: you did not supply an abstract.") ."

\n"; + $output .= "\n"; } else { - $output .= "

\n"; - $output .= " \n"; - $output .= " \n"; - $output .= "

\n"; + $output .= "\n"; + $output .= "\n"; } $output .= "\n"; @@ -127,17 +97,15 @@ function submit_submit($subject, $abstract, $article, $section) { // Display confirmation message: $theme->header(); - $theme->box("Thank you for your submission.", "Thank you for your submission. Your submission has been whisked away to our submission queue where our registered users will frown at it, poke at it and hopefully carry it to the front page for discussion."); + $theme->box(t("Submission completed"), t("Thank you for your submission. Your submission has been whisked away to our submission queue where our registered users will frown at it, poke at it and hopefully carry it to the front page for discussion.")); $theme->footer(); } -include_once "includes/common.inc"; - switch($op) { - case "Preview submission": + case t("Preview submission"): submit_preview($subject, $abstract, $article, $section); break; - case "Submit submission": + case t("Submit submission"): submit_submit($subject, $abstract, $article, $section); break; default: -- cgit v1.2.3