From 4c89ab8a134a92761845a3ee40ef1a878ef62646 Mon Sep 17 00:00:00 2001
From: Kjartan Mannes <kjartan@2.no-reply.drupal.org>
Date: Tue, 24 Jul 2001 08:49:58 +0000
Subject: [PATCH] account.php - real name is now shown to all users.

page.module
- improved the locale support.

comment.inc
- added a wrapper table for comment_thread_max() as suggested by nick.
---
 modules/page.module      | 8 ++++----
 modules/page/page.module | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/modules/page.module b/modules/page.module
index e6e7045be247..2c4e04cdb39a 100644
--- a/modules/page.module
+++ b/modules/page.module
@@ -44,7 +44,7 @@ function page_status() {
 function page_form($edit = array()) {
   global $REQUEST_URI, $format, $op;
 
-  if ($op != "Preview" && $format[$edit[format]] == "PHP") {
+  if ($op != t("Preview") && $format[$edit[format]] == "PHP") {
     $edit[body] = addslashes($edit[body]);
   }
 
@@ -60,11 +60,11 @@ function page_form($edit = array()) {
   $form .= form_hidden("nid", $edit[nid]);
 
   if ($edit[title]) {
-    $form .= form_submit("Preview");
-    $form .= form_submit("Submit");
+    $form .= form_submit(t("Preview"));
+    $form .= form_submit(t("Submit"));
   }
   else {
-    $form .= form_submit("Preview");
+    $form .= form_submit(t("Preview"));
   }
 
   return form($REQUEST_URI, $form);
diff --git a/modules/page/page.module b/modules/page/page.module
index e6e7045be247..2c4e04cdb39a 100644
--- a/modules/page/page.module
+++ b/modules/page/page.module
@@ -44,7 +44,7 @@ function page_status() {
 function page_form($edit = array()) {
   global $REQUEST_URI, $format, $op;
 
-  if ($op != "Preview" && $format[$edit[format]] == "PHP") {
+  if ($op != t("Preview") && $format[$edit[format]] == "PHP") {
     $edit[body] = addslashes($edit[body]);
   }
 
@@ -60,11 +60,11 @@ function page_form($edit = array()) {
   $form .= form_hidden("nid", $edit[nid]);
 
   if ($edit[title]) {
-    $form .= form_submit("Preview");
-    $form .= form_submit("Submit");
+    $form .= form_submit(t("Preview"));
+    $form .= form_submit(t("Submit"));
   }
   else {
-    $form .= form_submit("Preview");
+    $form .= form_submit(t("Preview"));
   }
 
   return form($REQUEST_URI, $form);
-- 
GitLab