Merge pull request #11224 from annando/statistics-separator
Use a thousands_separator to improve readability of the federation statistics
This commit is contained in:
commit
98f55ddb2b
|
@ -164,19 +164,19 @@ class Federation extends BaseAdmin
|
||||||
}
|
}
|
||||||
|
|
||||||
$gserver['platform'] = $systems[$platform]['name'];
|
$gserver['platform'] = $systems[$platform]['name'];
|
||||||
$gserver['totallbl'] = DI::l10n()->t('%d total systems', $gserver['total']);
|
$gserver['totallbl'] = DI::l10n()->t('%s total systems', number_format($gserver['total']));
|
||||||
$gserver['monthlbl'] = DI::l10n()->t('%d active users last month', $gserver['month']);
|
$gserver['monthlbl'] = DI::l10n()->t('%s active users last month', number_format($gserver['month']));
|
||||||
$gserver['halfyearlbl'] = DI::l10n()->t('%d active users last six month', $gserver['halfyear']);
|
$gserver['halfyearlbl'] = DI::l10n()->t('%s active users last six month', number_format($gserver['halfyear']));
|
||||||
$gserver['userslbl'] = DI::l10n()->t('%d registered users', $gserver['users']);
|
$gserver['userslbl'] = DI::l10n()->t('%s registered users', number_format($gserver['users']));
|
||||||
$gserver['postslbl'] = DI::l10n()->t('%d local posts', $gserver['posts']);
|
$gserver['postslbl'] = DI::l10n()->t('%s local posts', number_format($gserver['posts']));
|
||||||
|
|
||||||
if (($gserver['users'] > 0) && ($gserver['posts'] > 0)) {
|
if (($gserver['users'] > 0) && ($gserver['posts'] > 0)) {
|
||||||
$gserver['postsuserlbl'] = DI::l10n()->t('%d posts per user', $gserver['posts'] / $gserver['users']);
|
$gserver['postsuserlbl'] = DI::l10n()->t('%s posts per user', number_format($gserver['posts'] / $gserver['users'], 1));
|
||||||
} else {
|
} else {
|
||||||
$gserver['postsuserlbl'] = '';
|
$gserver['postsuserlbl'] = '';
|
||||||
}
|
}
|
||||||
if (($gserver['users'] > 0) && ($gserver['total'] > 0)) {
|
if (($gserver['users'] > 0) && ($gserver['total'] > 0)) {
|
||||||
$gserver['userssystemlbl'] = DI::l10n()->t('%d users per system', $gserver['users'] / $gserver['total']);
|
$gserver['userssystemlbl'] = DI::l10n()->t('%s users per system', number_format($gserver['users'] / $gserver['total'], 1));
|
||||||
} else {
|
} else {
|
||||||
$gserver['userssystemlbl'] = '';
|
$gserver['userssystemlbl'] = '';
|
||||||
}
|
}
|
||||||
|
@ -196,7 +196,7 @@ class Federation extends BaseAdmin
|
||||||
'$intro' => $intro,
|
'$intro' => $intro,
|
||||||
'$counts' => $counts,
|
'$counts' => $counts,
|
||||||
'$version' => FRIENDICA_VERSION,
|
'$version' => FRIENDICA_VERSION,
|
||||||
'$legendtext' => DI::l10n()->t('Currently this node is aware of %d nodes (%d active users last month, %d active users last six month, %d registered users in total) from the following platforms:', $total, $month, $halfyear, $users),
|
'$legendtext' => DI::l10n()->t('Currently this node is aware of %s nodes (%s active users last month, %s active users last six month, %s registered users in total) from the following platforms:', number_format($total), number_format($month), number_format($halfyear), number_format($users)),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 2022.05-dev\n"
|
"Project-Id-Version: 2022.05-dev\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2022-02-07 06:23+0000\n"
|
"POT-Creation-Date: 2022-02-07 19:20+0000\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -5119,37 +5119,37 @@ msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:167
|
#: src/Module/Admin/Federation.php:167
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%d total systems"
|
msgid "%s total systems"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:168
|
#: src/Module/Admin/Federation.php:168
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%d active users last month"
|
msgid "%s active users last month"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:169
|
#: src/Module/Admin/Federation.php:169
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%d active users last six month"
|
msgid "%s active users last six month"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:170
|
#: src/Module/Admin/Federation.php:170
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%d registered users"
|
msgid "%s registered users"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:171
|
#: src/Module/Admin/Federation.php:171
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%d local posts"
|
msgid "%s local posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:174
|
#: src/Module/Admin/Federation.php:174
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%d posts per user"
|
msgid "%s posts per user"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:179
|
#: src/Module/Admin/Federation.php:179
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%d users per system"
|
msgid "%s users per system"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:189
|
#: src/Module/Admin/Federation.php:189
|
||||||
|
@ -5166,8 +5166,8 @@ msgstr ""
|
||||||
#: src/Module/Admin/Federation.php:199
|
#: src/Module/Admin/Federation.php:199
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Currently this node is aware of %d nodes (%d active users last month, %d "
|
"Currently this node is aware of %s nodes (%s active users last month, %s "
|
||||||
"active users last six month, %d registered users in total) from the "
|
"active users last six month, %s registered users in total) from the "
|
||||||
"following platforms:"
|
"following platforms:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user