- Translation fix: made the 'Who is online' block 100% translatable.
parent
934938c486
commit
6636aac625
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue