summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2003-10-04 16:45:50 +0000
committerDries Buytaert2003-10-04 16:45:50 +0000
commit27bf2e377d5bce8ce911b271df30971dc6315331 (patch)
treee846d4c692a7e186a1c27c4197d31bff51d6527e
parent21b688dbcd995f883ae2721910745f2f6b6f16cc (diff)
- Translation fix: made the 'Who is online' block 100% translatable.4.2.0
-rw-r--r--modules/statistics.module7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/statistics.module b/modules/statistics.module
index 3e7a6c1..4e2cd55 100644
--- a/modules/statistics.module
+++ b/modules/statistics.module
@@ -647,7 +647,12 @@ function statistics_display_online_block() {
}
/* format the output with proper grammar */
- $output .= t("There %verb currently %members and %visitors online.", array("%verb" => (($users == 1) && ($guests == 1) ? "is" : "are"), "%members" => format_plural($users, "1 user", "%count users"), "%visitors" => format_plural($guests, "1 guest", "%count guests")));
+ if ($users == 1 && $guests == 1) {
+ $output .= t("There is currently %members and %visitors online.", array("%members" => format_plural($users, "1 user", "%count users"), "%visitors" => format_plural($guests, "1 guest", "%count guests")));
+ }
+ else {
+ $output .= t("There are currently %members and %visitors online.", array("%members" => format_plural($users, "1 user", "%count users"), "%visitors" => format_plural($guests, "1 guest", "%count guests")));
+ }
if (user_access("access userlist") && $users) {
/* Display a list of currently online users */