From 36fca09232ef187199d9683fa2006ca7f49dc3b9 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 13 Jul 2002 17:56:54 +0000 Subject: - Added missing t() functions. Patch by Ori. --- modules/node/node.module | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index d575c6eb9..8402b914a 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -7,7 +7,7 @@ function node_help() { if ($mod == "node") { foreach (module_list() as $name) { if (module_hook($name, "node") && $name != "node") { - print "

". ucfirst($name) ." type

"; + print "

". t("%module type", array("%module" => ucfirst(module_invoke($name, "node", "name")))). "

"; print module_invoke($name, "help"); } } @@ -292,10 +292,10 @@ function node_conf_options() { } function node_conf_filters() { - $output .= form_select(t("Enable HTML tags"), "filter_html", variable_get("filter_html", 0), array("Disabled", "Enabled"), t("Allow HTML and PHP tags in user-contributed content.")); + $output .= form_select(t("Enable HTML tags"), "filter_html", variable_get("filter_html", 0), array(t("Disabled"), t("Enabled")), t("Allow HTML and PHP tags in user-contributed content.")); $output .= form_textfield(t("Allowed HTML tags"), "allowed_html", variable_get("allowed_html", "
      • "), 64, 255, t("If enabled, optionally specify tags which should not be stripped. 'STYLE' attributes, 'ON' attributes and unclosed tags are always stripped.")); $output .= "
        "; - $output .= form_select(t("Enable link tags"), "filter_link", variable_get("filter_link", 0), array("Disabled", "Enabled"), t("Substitute special [[nodesubject|text]] tags. Your browser will display 'text', and when you click on it your browser will open the node with the subject 'nodesubject'. Please be aware that you'll need to copy the subject of the target node exactly in order to use this feature.")); + $output .= form_select(t("Enable link tags"), "filter_link", variable_get("filter_link", 0), array(t("Disabled"), t("Enabled")), t("Substitute special [[nodesubject|text]] tags. Your browser will display 'text', and when you click on it your browser will open the node with the subject 'nodesubject'. Please be aware that you'll need to copy the subject of the target node exactly in order to use this feature.")); $output .= "
        "; return $output; } @@ -431,7 +431,7 @@ function node_admin_settings($edit = array()) { foreach (module_list() as $name) { if (module_hook($name, "conf_options") && module_hook($name, "node")) { - $output .= "

        ". ucfirst(module_invoke($name, "node", "name") ." settings") ."

        "; + $output .= "

        ". t("%module settings", array("%module" => ucfirst(module_invoke($name, "node", "name")))) ."

        "; $output .= module_invoke($name, "conf_options"); } } @@ -452,7 +452,7 @@ function node_admin_edit($node) { ** Edit node: */ - $output .= "

        ". t("Edit") ." ". module_invoke($node->type, "node", "name") ."

        "; + $output .= "

        ". t("Edit %module", array("%module" => module_invoke($node->type, "node", "name"))) ."

        "; $output .= node_form($node); @@ -463,7 +463,7 @@ function node_admin_edit($node) { if ($node->revisions) { $output .= "

        ". t("Edit revisions") ."

        "; $output .= ""; - $output .= " "; + $output .= " "; foreach ($node->revisions as $key => $revision) { $output .= " "; } @@ -496,7 +496,7 @@ function node_admin_nodes() { $output .= "". implode(" :: ", $links) ."
        "; $output .= "
        older revisionsoperations
        ". t("older revisions") ."". t("operations") ."
        ". t("revision #%r revised by %u on %d", array("%r" => $key, "%u" => format_name(user_load(array("uid" => $revision["uid"]))), "%d" => format_date($revision["timestamp"], "small"))) . ($revision["history"] ? "
        ". $revision["history"] ."" : "") ."
        ". l(t("view revision"), array("id" => $node->nid, "revision" => $key)) ."". la(t("rollback revision"), array("mod" => "node", "op" => "rollback+revision", "id" => $node->nid, "revision" => $key)) ."". la(t("delete revision"), array("mod" => "node", "op" => "delete+revision", "id" => $node->nid, "revision" => $key)) ."
        \n"; - $output .= " \n"; + $output .= " \n"; while ($node = db_fetch_object($result)) { $output .= ""; } @@ -888,18 +888,18 @@ function node_form($edit, $error = NULL) { $output .= form_textfield(t("Authored by"), "name", $edit->name, 20, 25, $error["name"]); $output .= form_textfield(t("Authored on"), "date", $edit->date, 20, 25, $error["date"]); $output .= "
        "; - $output .= form_select(t("Set public/published"), "status", $edit->status, array("Disabled", "Enabled")); + $output .= form_select(t("Set public/published"), "status", $edit->status, array(t("Disabled"), t("Enabled"))); // TODO: move this to the queue.module if (module_exist("queue")) { - $output .= form_select(t("Queue for moderation"), "moderate", $edit->moderate, array("Disabled", "Enabled")); + $output .= form_select(t("Queue for moderation"), "moderate", $edit->moderate, array(t("Disabled"), t("Enabled"))); } - $output .= form_select(t("Promote to front page"), "promote", $edit->promote, array("Disabled", "Enabled")); - $output .= form_select(t("Static on front page"), "static", $edit->static, array("Disabled", "Enabled")); + $output .= form_select(t("Promote to front page"), "promote", $edit->promote, array(t("Disabled"), t("Enabled"))); + $output .= form_select(t("Static on front page"), "static", $edit->static, array(t("Disabled"), t("Enabled"))); // TODO: move this to the comment.module if (module_exist("comment")) { - $output .= form_select(t("Allow users comments"), "comment", $edit->comment, array("Disabled", "Read only", "Read/Write")); + $output .= form_select(t("Allow users comments"), "comment", $edit->comment, array(t("Disabled"), t("Read only"), t("Read-write"))); } - $output .= form_select(t("Create new revision"), "revision", $edit->revision, array("Disabled", "Enabled")); + $output .= form_select(t("Create new revision"), "revision", $edit->revision, array(t("Disabled"), t("Enabled"))); } $output .= " "; -- cgit v1.2.3
        titletypeauthorstatusoperations
        ". t("title") ."type". t("author") ."". t("status") ."". t("operations") ."
        ". l(check_output($node->title), array("id" => $node->nid)) ."". module_invoke($node->type, "node", "name") ."". format_name($node) ."". ($node->status ? t("published") : t("not published")) ."". la(t("edit node"), array("mod" => "node", "op" => "edit", "id" => $node->nid)) ."". la(t("delete node"), array("mod" => "node", "op" => "delete", "id" => $node->nid)) ."