From dc938c533bbf94f2ce2400cfc006d1f1ced8e96d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 1 Feb 2004 21:04:42 +0000 Subject: - Patch #5567 by Goba: fixed t() functions, cleanup of locale module's help, fixed translation issues in taxonomy module, etc. --- modules/statistics.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/statistics.module') diff --git a/modules/statistics.module b/modules/statistics.module index 625f7c64e..f25f87542 100644 --- a/modules/statistics.module +++ b/modules/statistics.module @@ -311,16 +311,16 @@ function statistics_top_refer() { elseif ($view == "internal") { $query = "SELECT url, MAX(timestamp) AS last_view, COUNT(url) AS count FROM {accesslog} WHERE url LIKE '%". check_query($_SERVER["HTTP_HOST"]) ."%' GROUP BY url"; $query_cnt = "SELECT COUNT(DISTINCT(url)) FROM {accesslog} WHERE url <> '' AND url LIKE '%". check_query($_SERVER["HTTP_HOST"]) ."%'"; - $describe = "internal "; + $describe = t("Top internal referrers of the past %interval"); } else { /* default to external */ $query = "SELECT url, MAX(timestamp) AS last_view, COUNT(url) AS count FROM {accesslog} WHERE url NOT LIKE '%". check_query($_SERVER["HTTP_HOST"]) ."%' AND url <> '' GROUP BY url"; $query_cnt = "SELECT COUNT(DISTINCT(url)) FROM {accesslog} WHERE url <> '' AND url NOT LIKE '%". check_query($_SERVER["HTTP_HOST"]) ."%'"; - $describe = "external "; + $describe = t("Top external referrers of the past %interval"); } - $output = "

". t("Top $describe referrers of the past %interval", array("%interval" => format_interval(variable_get("statistics_flush_accesslog_timer", 259200)))) ."

"; + $output = "

". strtr($describe, array("%interval" => format_interval(variable_get("statistics_flush_accesslog_timer", 259200)))) ."

"; $header = array( array("data" => t("URL"), "field" => "url"), -- cgit v1.2.3