Commit 27bf2e37 authored by Dries's avatar Dries

- Translation fix: made the 'Who is online' block 100% translatable.

parent 21b688db
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment