From 22c889e7c05b1c2dd98ad5e6b3547234a3f6596f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Oct 2003 18:16:41 +0000 Subject: - Help system improvements: eliminated the _system hook. Patch by Michael. - Bloggerapi module fixes. Patch by Kjartan. - Coding style fixes. Patch by Michael. --- modules/cloud.module | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'modules/cloud.module') diff --git a/modules/cloud.module b/modules/cloud.module index c5a6051a6..17f8fa8c3 100644 --- a/modules/cloud.module +++ b/modules/cloud.module @@ -10,32 +10,26 @@ function cloud_help($section = "admin/node/syndication/cloud/help") { case 'admin/node/syndication/cloud/help': $output .= "The cloud monitor tracks or crawls other interesting web sites and displays their last modification dates. Visitors to the host site learn about relevant sites and can easily see if there is new content. Here is how it works:"; $output .= ""; + $output = t($output, array("%cloud-add" => l(t("content") ." » ". t("syndication") ." » ". t("site cloud") ." » ". t("add new site"), "admin/node/syndication/cloud/add"))); break; case 'cloud': - $output .= "

The cloud monitor tracks or crawls other interesting web sites and displays their latest modification dates. It acts as a link watcher such that you can keep an eye on the other sites in the cloud.

"; + $output .= t("

The cloud monitor tracks or crawls other interesting web sites and displays their latest modification dates. It acts as a link watcher such that you can keep an eye on the other sites in the cloud.

"); break; - case 'admin/system/modules': - $output = "Tracks other sites and displays last date changed."; + case 'admin/system/modules#description': + $output = t("Tracks other sites and displays last date changed."); break; case 'admin/node/syndication/cloud': - $output = strtr("The cloud monitor tracks or crawls other interesting web sites and displays their last modification dates. Visitors to this site learn about other relevant sites and can easily see if there is new content. To get this working you must setup cron support. To get the site cloud block to display you must turn on the site cloud block in %block. To go to a monitored site, click on the site name, to immediately load and/or update the record for a site, click on \"update site\", to delete a site go to \"edit site\". ", array("%block" => l(t("administer") ." » ". t("configuration") ." » ". t("blocks"), "admin/block") )); + $output = t("The cloud monitor tracks or crawls other interesting web sites and displays their last modification dates. Visitors to this site learn about other relevant sites and can easily see if there is new content. To get this working you must setup cron support. To get the site cloud block to display you must turn on the site cloud block in %block. To go to a monitored site, click on the site name, to immediately load and/or update the record for a site, click on \"update site\", to delete a site go to \"edit site\". ", array("%block" => l(t("administer") ." » ". t("configuration") ." » ". t("blocks"), "admin/block"))); break; case 'admin/node/syndication/cloud/add': - $output = "Add a site to the site cloud. Don't forget the \"http://\" for your URLs."; + $output = t("Add a site to the site cloud. Don't forget the \"http://\" for your URLs."); break; } - return t($output); -} - -function cloud_system($field){ - $output = ""; - - if ($field == "description") {$output = cloud_help("admin/system/modules");}; return $output; } -- cgit v1.2.3