diff options
Diffstat (limited to 'modules/story.module')
-rw-r--r-- | modules/story.module | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/modules/story.module b/modules/story.module index 51a84fea5..0b58aff63 100644 --- a/modules/story.module +++ b/modules/story.module @@ -2,26 +2,32 @@ // $Id$ function story_help($section = "admin/story/help") { + $output = ""; + switch ($section) { case "admin/system/modules": - $output = "Enables users to submit stories, articles or similar content."; + $output = t("Enables users to submit stories, articles or similar content."); break; case "admin/system/modules/story": - $output = "Stories are like newspaper articles. They tend to follow a publishing flow of <b>submit -> moderate -> post to the main page -> comments</b>. Below you may fix a minimum word count for stories and also write some submission or content guidelines for users wanting to post a story."; + $output = t("Stories are like newspaper articles. They tend to follow a publishing flow of <b>submit -> moderate -> post to the main page -> comments</b>. Below you may fix a minimum word count for stories and also write some submission or content guidelines for users wanting to post a story."); break; case "admin/story/help": $output = "<p>The story module lets your users submit articles for consideration by the rest of the community, who can vote on them if moderation is enabled. Stories usually follow a publishing flow of <b>submit -> moderate -> post to the main page -> comments</b>. Administrators are able to shortcut this flow as desired.</p>"; - $output .= "In ". l("site configuration >> modules >> story", "admin/system/modules/story") ." you can set up an introductory text for story authors, and a floor on the number of words which may be included in a story. This is designed to help discourage the submission of trivially short stories."; + $output .= "In %story-config you can set up an introductory text for story authors, and a floor on the number of words which may be included in a story. This is designed to help discourage the submission of trivially short stories."; + $output = t($output, array("%story-config" => l(t("site configuration » modules » story"), "admin/system/modules/story") )); break; } - return t($output); + return $output; } function story_system($field){ - $system["description"] = story_help("admin/system/modules"); - $system["admin_help"] = story_help("admin/system/modules/story"); - return $system[$field]; + $output = ""; + + if ($field == "description") { $output = story_help("admin/system/modules"); } + else if ($field == "admin_help") { $output = story_help("admin/system/modules/story"); }; + + return $output; } function story_settings() { |