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;
// Define page basics // Define page basics
$totalPages = $sphinx->getHostPagesTotal(); $totalPages = $sphinx->getHostPagesTotal();
$placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page 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...'), $totalPages), sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
sprintf(_('Over %s pages or enter the new one...'), $totalPages), sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
]); ]);

6
src/public/index.php

@ -19,9 +19,9 @@ try {
$totalPages = $sphinx->getHostPagesTotal(); $totalPages = $sphinx->getHostPagesTotal();
$placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page 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...'), $totalPages), sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
sprintf(_('Over %s pages or enter the new one...'), $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)) {
// Define page basics // Define page basics
$totalPages = $sphinx->getHostPagesTotal(); $totalPages = $sphinx->getHostPagesTotal();
$placeholder = Filter::plural($totalPages, [sprintf(_('Over %s page 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...'), $totalPages), sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
sprintf(_('Over %s pages or enter the new one...'), $totalPages), sprintf(_('Over %s pages or enter the new one...'), number_format($totalPages)),
]); ]);
// Define alert message // Define alert message
$alertMessages = []; $alertMessages = [];

6
src/public/top.php

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

Loading…
Cancel
Save