From 058971c33b8dca63fd33b188328fc3e3ec9fb372 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 3 Oct 2003 14:55:27 +0000 Subject: - Help improvements and translation improvements from Michael. Thanks! --- modules/node.module | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index f98a32872..5b495e145 100644 --- a/modules/node.module +++ b/modules/node.module @@ -13,24 +13,26 @@ function node_help($section = "admin/node/help") { $output .= "

The core of the Drupal system is the node. All of the contents of the system are placed in nodes, or extensions of nodes."; $output .= "A base node contains:

"; $output .= "
A Title
Up to 128 characters of text that titles the node.
"; - $output .= strtr("
A Teaser
A small block of text that is meant to get you interested in the rest of node. Drupal will automatically pull a small amount of the body of the node to make the teaser (To configure how long the teaser will be %teaser). The teaser can be changed if you don't like what Drupal grabs.
", array("%teaser" => l(t("click here"), "admin/system/modules/node") )); + $output .= "
A Teaser
A small block of text that is meant to get you interested in the rest of node. Drupal will automatically pull a small amount of the body of the node to make the teaser (To configure how long the teaser will be %teaser). The teaser can be changed if you don't like what Drupal grabs.
"; $output .= "
The Body
The main text that comprises your content.
"; $output .= "
A Type
What kind of node is this? Blog, book, forum, comment, unextended, etc.
"; $output .= "
An Author
The author's name. It will either be \"anonymous\" or a valid user. You cannot set it to an arbitrary value.
"; $output .= "
Authored on
The date the node was written.
"; $output .= "
Changed
The last time this node was changed.
"; - $output .= strtr("
Static on front page
The front page is configured to show the teasers from only a few of the total nodes you have on your site (To configure how many teasers %teaser), but if you think a node is important enough that you want it to stay on the front page enable this.
",array("%teaser" => l(t("click here"),"admin/system/modules/node") )); + $output .= "
Static on front page
The front page is configured to show the teasers from only a few of the total nodes you have on your site (To configure how many teasers %teaser), but if you think a node is important enough that you want it to stay on the front page enable this.
"; $output .= "
Allow user comments
A node can have comments. These comments can be written by other users (Read-write), or only by admins (Read-only).
"; $output .= "
Attributes
A way to sort nodes.
"; $output .= "
Revisions
Drupal has a revision system so that you can \"roll back\" to an older version of a node if the new version is not what you want.
"; $output .= "
Promote to front page
To get people to look at the new stuff on your site you can choose to move it to the front page.
"; $output .= "
In moderation queue
Drupal has a moderation system. If it is active, a node is in one of three states: approved and published, approved and unpublished, and awaiting approval. If you are moderating a node it should be in the moderation queue.
"; - $output .= strtr("
Votes
If you are moderating a node this counts how many votes the node has gotten. Once a node gets a certain number of vote if will either be Approved, or Dropped (To setup the number of votes needed and the promote and dump scores %queue.).
",array("%queue" => l(t("click here"), "admin/system/modules/queue") )); + $output .= "
Votes
If you are moderating a node this counts how many votes the node has gotten. Once a node gets a certain number of vote if will either be Approved, or Dropped (To setup the number of votes needed and the promote and dump scores %queue.).
"; $output .= "
Score
The score of the node is gotten by the votes it is given.
"; $output .= "
Users
The list of users who have voted on a moderated node.
"; $output .= "
Published
When using Drupal's moderation system a node remains unpublished -- unavaliable to non-moderators -- until it is marked Published.
"; $output .= "

Now that you know what is in a node, here are some of the types of nodes available.

"; + $output = t($output, array("%teaser" => l(t("click here"), "admin/system/modules/node"), "%queue" => l(t("click here"), "admin/system/modules/queue") )); + if ($mod == "admin") { foreach (module_list() as $name) { if (module_hook($name, "node") && $name != "node") { @@ -42,23 +44,24 @@ function node_help($section = "admin/node/help") { break; case 'admin/system/modules': - $output = "The core that allows content to be submitted to the site."; + $output = t("The core that allows content to be submitted to the site."); break; case 'admin/system/modules/node': - $output = "Settings for the core of Drupal. Almost everything is a node so these settings will affect most of the site."; + $output = t("Settings for the core of Drupal. Almost everything is a node so these settings will affect most of the site."); break; case 'admin/node': - $output = strtr("Below is a list of all of the nodes in your site. Other forms of content are listed elsewhere (e.g. %comment).
Clicking a title views that node, while clicking an author's name edits their user information.
Other node-related tasks are available from the menu on the left.",array("%comments" => l(t("comments"), "admin/comment") )); + $output = t("Below is a list of all of the nodes in your site. Other forms of content are listed elsewhere (e.g. %comment).
Clicking a title views that node, while clicking an author's name edits their user information.
Other node-related tasks are available from the menu on the left.",array("%comments" => l(t("comments"), "admin/comment") )); break; case 'admin/node/search': - $output = "Enter a simple pattern to search for a post. This can include the wildcard character *.
For example, a search for \"br*\" might return \"bread bakers\", \"our daily bread\" and \"brenda\"."; + $output = t("Enter a simple pattern to search for a post. This can include the wildcard character *.
For example, a search for \"br*\" might return \"bread bakers\", \"our daily bread\" and \"brenda\"."); break; case 'admin/node/settings': - $output = "This pages lets you set the defaults used during creation of nodes for all the different node types.
comment: Read/write setting for comments.
publish: Is this node publicly viewable, has it been published?
promote: Is this node to be promoted to the front page?
moderate: Does this node need approval before it can be viewed?
static: Is this node always visible on the front page?
revision: Will this node go into the revision system allowing multiple versions to be saved?"; + $output = t("This pages lets you set the defaults used during creation of nodes for all the different node types.
comment: Read/write setting for comments.
publish: Is this node publicly viewable, has it been published?
promote: Is this node to be promoted to the front page?
moderate: Does this node need approval before it can be viewed?
static: Is this node always visible on the front page?
revision: Will this node go into the revision system allowing multiple versions to be saved?"); break; } - return t($output); + + return $output; } function node_system($field){ -- cgit v1.2.3