From 0c0c5ef98073c14b60923acb3da9ff7a79345c47 Mon Sep 17 00:00:00 2001 From: Atanas Angelov Date: Sat, 27 Oct 2018 22:09:09 +0300 Subject: [PATCH] apply i18n functions to pagination --- theme/alternative/blade/partials/loop.blade.php | 3 ++- theme/partials/loop.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/theme/alternative/blade/partials/loop.blade.php b/theme/alternative/blade/partials/loop.blade.php index 4268e6a..8efa1f4 100644 --- a/theme/alternative/blade/partials/loop.blade.php +++ b/theme/alternative/blade/partials/loop.blade.php @@ -39,7 +39,8 @@ 'first_html' => '', 'last_html' => '', 'limiter_html' => '
  • ...
  • ', - 'current_page_html' => 'Page {CURRENT_PAGE} of {TOTAL_PAGES}', + // translators: %1$s = current page number; %2$s = total number of pages. + 'current_page_html' => '' . esc_html( sprintf( __( 'Page %1$s of %2$s', 'app' ), '{CURRENT_PAGE}', '{TOTAL_PAGES}' ) ) . '', ] ); @endphp diff --git a/theme/partials/loop.php b/theme/partials/loop.php index 71cccb9..e19c882 100644 --- a/theme/partials/loop.php +++ b/theme/partials/loop.php @@ -39,7 +39,8 @@ 'first_html' => '', 'last_html' => '', 'limiter_html' => '
  • ...
  • ', - 'current_page_html' => 'Page {CURRENT_PAGE} of {TOTAL_PAGES}', + // translators: %1$s = current page number; %2$s = total number of pages. + 'current_page_html' => '' . esc_html( sprintf( __( 'Page %1$s of %2$s', 'app' ), '{CURRENT_PAGE}', '{TOTAL_PAGES}' ) ) . '', ] ); ?>