diff --git a/var/www/html/home.php b/var/www/html/home.php index 37f070e..4bd5a47 100644 --- a/var/www/html/home.php +++ b/var/www/html/home.php @@ -294,7 +294,7 @@ $quota = $stmt->fetch(PDO::FETCH_ASSOC); $quota_usage = $quota['quota_size_used'] / $quota['quota_size']; $quota_files_usage = $quota['quota_files_used'] / $quota['quota_files']; $usage_text = bytes_to_human_readable($quota['quota_size_used'] * 1024) . ' of ' . bytes_to_human_readable($quota['quota_size'] * 1024) . ' - ' . round($quota_usage * 100, 2).'%'; -$usage_files_text = sprintf(_("%d of %d - %f%%"), $quota['quota_files_used'], $quota['quota_files'], round($quota_files_usage * 100, 2)); +$usage_files_text = sprintf(_('%1$d of %2$d - %3$f%%'), $quota['quota_files_used'], $quota['quota_files'], round($quota_files_usage * 100, 2)); ?>

- '._('Upgrade').'' : ''; ?>

- '._('Upgrade').'' : ''; ?>

diff --git a/var/www/html/list.php b/var/www/html/list.php index ccf71d3..5d6468a 100644 --- a/var/www/html/list.php +++ b/var/www/html/list.php @@ -11,7 +11,7 @@ $stmt=$db->query('SELECT COUNT(*) FROM users WHERE public=1;'); $count=$stmt->fetch(PDO::FETCH_NUM); $stmt=$db->query('SELECT COUNT(*) FROM users WHERE public=0;'); $hidden=$stmt->fetch(PDO::FETCH_NUM); -echo '

'.sprintf(_('Here is a list of %d public hosted sites (%d sites hidden):'), $count[0], $hidden[0]).'

'; +echo '

'.sprintf(_('Here is a list of %1$d public hosted sites (%2$d sites hidden):'), $count[0], $hidden[0]).'

'; echo ''; echo ''; $stmt=$db->query('SELECT onions.onion FROM users INNER JOIN onions ON (onions.user_id=users.id) WHERE users.public=1 ORDER BY onions.onion;'); diff --git a/var/www/locale/hosting.pot b/var/www/locale/hosting.pot index dfbdba3..9b7d252 100644 --- a/var/www/locale/hosting.pot +++ b/var/www/locale/hosting.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-01-22 19:59+0100\n" +"POT-Creation-Date: 2023-01-22 20:16+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -203,7 +203,7 @@ msgstr "" #: var/www/html/list.php:14 #, php-format -msgid "Here is a list of %d public hosted sites (%d sites hidden):" +msgid "Here is a list of %1$d public hosted sites (%2$d sites hidden):" msgstr "" #: var/www/html/list.php:16 var/www/html/admin.php:50 @@ -1019,7 +1019,7 @@ msgstr "" #: var/www/html/home.php:297 #, php-format -msgid "%d of %d - %f%%" +msgid "%1$d of %2$d - %3$f%%" msgstr "" #: var/www/html/home.php:299
'._('Onion link').'