Commit a1222d64 authored by Dries's avatar Dries

- Fixed translation bugs (reported by Alexander Schwartz)

parent d264b4fc
......@@ -13,7 +13,7 @@ drupal x.xx, xx/xx/xxxx
- various updates:
* improved the search system by making it context sensitive.
* fixed various HTML/XHTML typos.
drupal 3.00, 15/09/2001
-----------------------
- major overhaul of the entire underlying design:
......
......@@ -2,14 +2,17 @@
function search_form($keys) {
global $REQUEST_URI;
$output .= "<form action=\"$REQUEST_URI\" method=\"POST\">\n";
$output .= " <input size=\"50\" value=\"". check_form($keys) ."\" name=\"keys\">";
$output .= " <input type=\"submit\" value=\"". t("Search") ."\">\n";
$output .= "</form>\n";
return $output;
}
function search_data($keys, $type) {
if ($keys && $type && $result = module_invoke($type, "search", check_query($keys))) {
foreach ($result as $entry) {
$output .= "<p>\n";
......
......@@ -240,7 +240,7 @@ function import_form_bundle($edit = array()) {
$form .= form_submit("Submit");
if ($edit[bid]) {
$form .= form_submit(t("Delete"));
$form .= form_submit("Delete");
$form .= form_hidden("bid", $edit[bid]);
}
......@@ -278,7 +278,7 @@ function import_form_feed($edit = array()) {
$form .= form_submit("Submit");
if ($edit[fid]) {
$form .= form_submit(t("Delete"));
$form .= form_submit("Delete");
$form .= form_hidden("fid", $edit[fid]);
}
......
......@@ -240,7 +240,7 @@ function import_form_bundle($edit = array()) {
$form .= form_submit("Submit");
if ($edit[bid]) {
$form .= form_submit(t("Delete"));
$form .= form_submit("Delete");
$form .= form_hidden("bid", $edit[bid]);
}
......@@ -278,7 +278,7 @@ function import_form_feed($edit = array()) {
$form .= form_submit("Submit");
if ($edit[fid]) {
$form .= form_submit(t("Delete"));
$form .= form_submit("Delete");
$form .= form_hidden("fid", $edit[fid]);
}
......
......@@ -100,7 +100,7 @@ function blog_page_user($uid = 0, $date = 0) {
$output .= "<tr><td colspan=\"2\"><b><a href=\"module.php?mod=blog&id=$blog->uid&date=". mktime(23, 59, 59, date("n", $blog->timestamp), date("d", $blog->timestamp), date("Y", $blog->timestamp)) ."\">". format_date($blog->timestamp, custom, "d M Y") .":</a></b></td></tr>";
}
if ($user->uid && $user->name == $name) {
if ($user->uid && $user->uid == $uid) {
$links[] = "<a href=\"submit.php?mod=blog&op=edit&id=$blog->nid\">". t("edit") ."</a>";
}
......
......@@ -100,7 +100,7 @@ function blog_page_user($uid = 0, $date = 0) {
$output .= "<tr><td colspan=\"2\"><b><a href=\"module.php?mod=blog&id=$blog->uid&date=". mktime(23, 59, 59, date("n", $blog->timestamp), date("d", $blog->timestamp), date("Y", $blog->timestamp)) ."\">". format_date($blog->timestamp, custom, "d M Y") .":</a></b></td></tr>";
}
if ($user->uid && $user->name == $name) {
if ($user->uid && $user->uid == $uid) {
$links[] = "<a href=\"submit.php?mod=blog&op=edit&id=$blog->nid\">". t("edit") ."</a>";
}
......
......@@ -240,7 +240,7 @@ function import_form_bundle($edit = array()) {
$form .= form_submit("Submit");
if ($edit[bid]) {
$form .= form_submit(t("Delete"));
$form .= form_submit("Delete");
$form .= form_hidden("bid", $edit[bid]);
}
......@@ -278,7 +278,7 @@ function import_form_feed($edit = array()) {
$form .= form_submit("Submit");
if ($edit[fid]) {
$form .= form_submit(t("Delete"));
$form .= form_submit("Delete");
$form .= form_hidden("fid", $edit[fid]);
}
......
......@@ -67,7 +67,7 @@ function meta_form_collection($edit = array()) {
$form .= form_submit("Submit");
if ($edit[cid]) {
$form .= form_submit(t("Delete"));
$form .= form_submit("Delete");
$form .= form_hidden("cid", $edit[cid]);
}
......@@ -83,7 +83,7 @@ function meta_form_tag($edit = array()) {
$form .= form_submit("Submit");
if ($edit[tid]) {
$form .= form_submit(t("Delete"));
$form .= form_submit("Delete");
$form .= form_hidden("tid", $edit[tid]);
}
......
......@@ -3,6 +3,10 @@
class Node {
function Node($node) {
global $user;
$this->uid = $node[uid] ? $node[uid] : $user->uid;
$this->nid = $node[nid];
$this->type = $node[type];
$this->comment = $node[comment] ? $node[comment] :
$this->name = $node[name] ? $node[name] : $user->name;
$this->title = $node[title];
$this->attributes = $node[attributes];
......
......@@ -3,6 +3,10 @@
class Node {
function Node($node) {
global $user;
$this->uid = $node[uid] ? $node[uid] : $user->uid;
$this->nid = $node[nid];
$this->type = $node[type];
$this->comment = $node[comment] ? $node[comment] :
$this->name = $node[name] ? $node[name] : $user->name;
$this->title = $node[title];
$this->attributes = $node[attributes];
......
......@@ -17,7 +17,7 @@ function search_item($item, $type) {
$output .= " <b><u><a href=\"". $item["link"] ."\">". $item["title"] ."</a></u></b><br />";
$output .= " <small>$type ". ($item["user"] ? " - ". $item["user"] : "") ."". ($item["date"] ? " - ". format_date($item["date"], "small") : "") ."</small>";
$output .= "</p>";
return $output;
}
......@@ -70,7 +70,7 @@ function search_page() {
/*
** Display form and search results:
*/
$theme->header();
if ($form) {
......
......@@ -17,7 +17,7 @@ function search_item($item, $type) {
$output .= " <b><u><a href=\"". $item["link"] ."\">". $item["title"] ."</a></u></b><br />";
$output .= " <small>$type ". ($item["user"] ? " - ". $item["user"] : "") ."". ($item["date"] ? " - ". format_date($item["date"], "small") : "") ."</small>";
$output .= "</p>";
return $output;
}
......@@ -70,7 +70,7 @@ function search_page() {
/*
** Display form and search results:
*/
$theme->header();
if ($form) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment