From 2591f05fb560c95c77c466eea8adc691ae1c751b Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 18 Nov 2018 11:35:23 -0500 Subject: [PATCH] Add translation strings to statistics page --- src/templates/statistics.phtml | 39 +++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/src/templates/statistics.phtml b/src/templates/statistics.phtml index 3ad6022..903f47f 100644 --- a/src/templates/statistics.phtml +++ b/src/templates/statistics.phtml @@ -3,11 +3,17 @@ use \Friendica\Directory\Utils\L10n; ?>

__('Directory statistics') ?>

__('Profiles') ?>

-

This directory knows about distinct potential profile URLs.

-

Out of those, there are URLs () that have been an opt-in profile URL at least once.

-

Out of those, there are profiles () that are currently available. Check them out!

+

__('This directory knows about %s distinct potential profile URLs.', L10n::formatNumber($stats['profile_queue']['total']))?>

+

__('Out of those, there are %s profiles (%s) that opted in the public directory at least once.', + L10n::formatNumber($stats['profile']['total']), + L10n::formatNumber($stats['profile']['ratio'], L10n::PERCENT) + )?>

+

__('Out of those, there currently are %s available profiles (%s). Check them out!', + L10n::formatNumber($stats['profile']['available']['total']), + L10n::formatNumber($stats['profile']['available']['ratio'], L10n::PERCENT) + )?>

__('Languages') ?>

-Out of profiles reporting their language there are: +

__('Out of %s profiles reporting their language there are:', L10n::formatNumber($stats['profile']['language']['total']))?>

__('Servers') ?>

-

This directory knows about distinct potential server URLs.

-

Out of those, there are domains () that have been a server at least once.

-

Out of those, there are :

+

__('This directory knows about %s distinct potential server URLs.', L10n::formatNumber($stats['server_queue']['total']))?>

+

__('Out of those, there are %s domains (%s) that have been a Friendica server at least once.', + L10n::formatNumber($stats['server']['total']), + L10n::formatNumber($stats['server']['ratio'], L10n::PERCENT)) + ?>

+

__('Out of those, there are:')?>

__('Languages') ?>

-Out of servers reporting their language there are: +

__('Out of %s servers reporting their language there are:', L10n::formatNumber($stats['server']['language']['total']))?>

__('Versions') ?>

-Out of servers reporting their version there are: +

__('Out of %s servers reporting their version there are:', L10n::formatNumber($stats['server']['version']['total']))?>