From 9e71a4538ba01d582cf70b890fac36952523475c Mon Sep 17 00:00:00 2001 From: ghost Date: Wed, 18 Oct 2023 20:17:50 +0300 Subject: [PATCH] add number_format for pages total --- src/public/explore.php | 6 +++--- src/public/index.php | 6 +++--- src/public/search.php | 6 +++--- src/public/top.php | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/public/explore.php b/src/public/explore.php index f3ac40b..d653104 100644 --- a/src/public/explore.php +++ b/src/public/explore.php @@ -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)), ]); diff --git a/src/public/index.php b/src/public/index.php index 6fceb30..59c5efc 100644 --- a/src/public/index.php +++ b/src/public/index.php @@ -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)), ]); ?> diff --git a/src/public/search.php b/src/public/search.php index 87cfc77..7c2fbbc 100644 --- a/src/public/search.php +++ b/src/public/search.php @@ -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 = []; diff --git a/src/public/top.php b/src/public/top.php index aa097d9..4627afd 100644 --- a/src/public/top.php +++ b/src/public/top.php @@ -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)), ]); ?>