Skip to content

Commit

Permalink
apply i18n functions to pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
atanas-dev committed Oct 27, 2018
1 parent 7d332ea commit 0c0c5ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion theme/alternative/blade/partials/loop.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
'first_html' => '<a href="{URL}" class="paging__first"></a>',
'last_html' => '<a href="{URL}" class="paging__last"></a>',
'limiter_html' => '<li class="paging__spacer">...</li>',
'current_page_html' => '<span class="paging__label">Page {CURRENT_PAGE} of {TOTAL_PAGES}</span>',
// translators: %1$s = current page number; %2$s = total number of pages.
'current_page_html' => '<span class="paging__label">' . esc_html( sprintf( __( 'Page %1$s of %2$s', 'app' ), '{CURRENT_PAGE}', '{TOTAL_PAGES}' ) ) . '</span>',
]
);
@endphp
Expand Down
3 changes: 2 additions & 1 deletion theme/partials/loop.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
'first_html' => '<a href="{URL}" class="paging__first"></a>',
'last_html' => '<a href="{URL}" class="paging__last"></a>',
'limiter_html' => '<li class="paging__spacer">...</li>',
'current_page_html' => '<span class="paging__label">Page {CURRENT_PAGE} of {TOTAL_PAGES}</span>',
// translators: %1$s = current page number; %2$s = total number of pages.
'current_page_html' => '<span class="paging__label">' . esc_html( sprintf( __( 'Page %1$s of %2$s', 'app' ), '{CURRENT_PAGE}', '{TOTAL_PAGES}' ) ) . '</span>',
]
);
?>
Expand Down

0 comments on commit 0c0c5ef

Please sign in to comment.