More statistics
This commit is contained in:
parent
bdba75ec47
commit
384fe562a8
|
@ -164,6 +164,7 @@ 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['monthlbl'] = DI::l10n()->t('%d active users last month', $gserver['month']);
|
$gserver['monthlbl'] = DI::l10n()->t('%d active users last month', $gserver['month']);
|
||||||
$gserver['halfyearlbl'] = DI::l10n()->t('%d active users last six month', $gserver['halfyear']);
|
$gserver['halfyearlbl'] = DI::l10n()->t('%d active users last six month', $gserver['halfyear']);
|
||||||
$gserver['userslbl'] = DI::l10n()->t('%d registered users', $gserver['users']);
|
$gserver['userslbl'] = DI::l10n()->t('%d registered users', $gserver['users']);
|
||||||
|
@ -174,6 +175,11 @@ class Federation extends BaseAdmin
|
||||||
} else {
|
} else {
|
||||||
$gserver['postsuserlbl'] = '';
|
$gserver['postsuserlbl'] = '';
|
||||||
}
|
}
|
||||||
|
if (($gserver['users'] > 0) && ($gserver['total'] > 0)) {
|
||||||
|
$gserver['userssystemlbl'] = DI::l10n()->t('%d users per system', $gserver['users'] / $gserver['total']);
|
||||||
|
} else {
|
||||||
|
$gserver['userssystemlbl'] = '';
|
||||||
|
}
|
||||||
|
|
||||||
$counts[$platform] = [$gserver, $versionCounts, str_replace([' ', '%', '.'], '', $platform), $systems[$platform]['color']];
|
$counts[$platform] = [$gserver, $versionCounts, str_replace([' ', '%', '.'], '', $platform), $systems[$platform]['color']];
|
||||||
}
|
}
|
||||||
|
|
|
@ -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:11+0000\n"
|
"POT-Creation-Date: 2022-02-07 06:23+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"
|
||||||
|
@ -4699,7 +4699,7 @@ msgstr ""
|
||||||
#: src/Module/Admin/Blocklist/Contact.php:94
|
#: src/Module/Admin/Blocklist/Contact.php:94
|
||||||
#: src/Module/Admin/Blocklist/Server/Add.php:89
|
#: src/Module/Admin/Blocklist/Server/Add.php:89
|
||||||
#: src/Module/Admin/Blocklist/Server/Index.php:78
|
#: src/Module/Admin/Blocklist/Server/Index.php:78
|
||||||
#: src/Module/Admin/Federation.php:188 src/Module/Admin/Item/Delete.php:64
|
#: src/Module/Admin/Federation.php:194 src/Module/Admin/Item/Delete.php:64
|
||||||
#: src/Module/Admin/Logs/Settings.php:79 src/Module/Admin/Logs/View.php:83
|
#: src/Module/Admin/Logs/Settings.php:79 src/Module/Admin/Logs/View.php:83
|
||||||
#: src/Module/Admin/Queue.php:72 src/Module/Admin/Site.php:498
|
#: src/Module/Admin/Queue.php:72 src/Module/Admin/Site.php:498
|
||||||
#: src/Module/Admin/Storage.php:138 src/Module/Admin/Summary.php:232
|
#: src/Module/Admin/Storage.php:138 src/Module/Admin/Summary.php:232
|
||||||
|
@ -5113,47 +5113,57 @@ msgstr ""
|
||||||
msgid "Other"
|
msgid "Other"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:134 src/Module/Admin/Federation.php:377
|
#: src/Module/Admin/Federation.php:134 src/Module/Admin/Federation.php:383
|
||||||
msgid "unknown"
|
msgid "unknown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:167
|
#: src/Module/Admin/Federation.php:167
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%d active users last month"
|
msgid "%d 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 six month"
|
msgid "%d active users last month"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:169
|
#: src/Module/Admin/Federation.php:169
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%d registered users"
|
msgid "%d 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"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/Module/Admin/Federation.php:171
|
||||||
|
#, php-format
|
||||||
msgid "%d local posts"
|
msgid "%d local posts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:173
|
#: src/Module/Admin/Federation.php:174
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%d posts per user"
|
msgid "%d posts per user"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:183
|
#: src/Module/Admin/Federation.php:179
|
||||||
|
#, php-format
|
||||||
|
msgid "%d users per system"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/Module/Admin/Federation.php:189
|
||||||
msgid ""
|
msgid ""
|
||||||
"This page offers you some numbers to the known part of the federated social "
|
"This page offers you some numbers to the known part of the federated social "
|
||||||
"network your Friendica node is part of. These numbers are not complete but "
|
"network your Friendica node is part of. These numbers are not complete but "
|
||||||
"only reflect the part of the network your node is aware of."
|
"only reflect the part of the network your node is aware of."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:189 src/Module/BaseAdmin.php:87
|
#: src/Module/Admin/Federation.php:195 src/Module/BaseAdmin.php:87
|
||||||
msgid "Federation Statistics"
|
msgid "Federation Statistics"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Admin/Federation.php:193
|
#: 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 %d nodes (%d active users last month, %d "
|
||||||
|
|
|
@ -63,11 +63,13 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3" class="federation-summary">
|
<td colspan="3" class="federation-summary">
|
||||||
<ul>
|
<ul>
|
||||||
|
{{if $c[0]['total']}}<li>{{$c[0]['totallbl']}}</li>{{/if}}
|
||||||
{{if $c[0]['month']}}<li>{{$c[0]['monthlbl']}}</li>{{/if}}
|
{{if $c[0]['month']}}<li>{{$c[0]['monthlbl']}}</li>{{/if}}
|
||||||
{{if $c[0]['halfyear']}}<li>{{$c[0]['halfyearlbl']}}</li>{{/if}}
|
{{if $c[0]['halfyear']}}<li>{{$c[0]['halfyearlbl']}}</li>{{/if}}
|
||||||
{{if $c[0]['users']}}<li>{{$c[0]['userslbl']}}</li>{{/if}}
|
{{if $c[0]['users']}}<li>{{$c[0]['userslbl']}}</li>{{/if}}
|
||||||
{{if $c[0]['posts']}}<li>{{$c[0]['postslbl']}}</li>{{/if}}
|
{{if $c[0]['posts']}}<li>{{$c[0]['postslbl']}}</li>{{/if}}
|
||||||
{{if $c[0]['postsuserlbl']}}<li>{{$c[0]['postsuserlbl']}}</li>{{/if}}
|
{{if $c[0]['postsuserlbl']}}<li>{{$c[0]['postsuserlbl']}}</li>{{/if}}
|
||||||
|
{{if $c[0]['userssystemlbl']}}<li>{{$c[0]['userssystemlbl']}}</li>{{/if}}
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue