Browse Source

add number_format for pages total

main
ghost 1 year ago
parent
commit
9e71a4538b
  1. 6
      src/public/explore.php
  2. 6
      src/public/index.php
  3. 6
      src/public/search.php
  4. 6
      src/public/top.php

6
src/public/explore.php

@ -36,9 +36,9 @@ $hp = !empty($_GET['hp']) ? Filter::url($_GET['hp']) : 0; @@ -36,9 +36,9 @@ $hp = !empty($_GET['hp']) ? Filter::url($_GET['hp']) : 0;
// Define page basics
$totalPages = $sphinx->getHostPagesTotal();
$placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the new one...'), $totalPages),
sprintf(_('Over %s pages or enter the new one...'), $totalPages),
sprintf(_('Over %s pages or enter the new one...'), $totalPages),
$placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the new one...'), number_format($totalPages)),
sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
]);

6
src/public/index.php

@ -19,9 +19,9 @@ try { @@ -19,9 +19,9 @@ try {
$totalPages = $sphinx->getHostPagesTotal();
$placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the new one...'), $totalPages),
sprintf(_('Over %s pages or enter the new one...'), $totalPages),
sprintf(_('Over %s pages or enter the new one...'), $totalPages),
$placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the new one...'), number_format($totalPages)),
sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
]);
?>

6
src/public/search.php

@ -64,9 +64,9 @@ if (empty($q)) { @@ -64,9 +64,9 @@ if (empty($q)) {
// Define page basics
$totalPages = $sphinx->getHostPagesTotal();
$placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the new one...'), $totalPages),
sprintf(_('Over %s pages or enter the new one...'), $totalPages),
sprintf(_('Over %s pages or enter the new one...'), $totalPages),
$placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the new one...'), number_format($totalPages)),
sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
]);
// Define alert message
$alertMessages = [];

6
src/public/top.php

@ -33,9 +33,9 @@ try { @@ -33,9 +33,9 @@ try {
// Define page basics
$totalPages = $sphinx->getHostPagesTotal();
$placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the new one...'), $totalPages),
sprintf(_('Over %s pages or enter the new one...'), $totalPages),
sprintf(_('Over %s pages or enter the new one...'), $totalPages),
$placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page or enter the new one...'), number_format($totalPages)),
sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
]);
?>

Loading…
Cancel
Save