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

4.3.x
Dries Buytaert 2003-10-04 16:44:54 +00:00
parent 934938c486
commit 6636aac625
2 changed files with 12 additions and 2 deletions

View File

@ -705,7 +705,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 */

View File

@ -705,7 +705,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 */