Skip to content

Commit

Permalink
Update paginator.rst
Browse files Browse the repository at this point in the history
I had a very difficult time figuring out how to make the paginator compatible with my i18n and l10n needs. This is a minimalist approach. A possibly clearer option would be to have a section of the page specifically discussing how to do this and include an example.
  • Loading branch information
joshv2 authored Oct 23, 2023
1 parent 47f1d46 commit 030252d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/views/helpers/paginator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ There are a number of options for ``counter()``. The supported ones are:
If your model was 'RecipePage', ``{{model}}`` would be 'recipe pages'.

You could also supply only a string to the counter method using the tokens
available. For example::
available. Doing so can allow for i18n and l10n integration within the paginator. For example::

echo $this->Paginator->counter(
'Page {{page}} of {{pages}}, showing {{current}} records out of
Expand Down

0 comments on commit 030252d

Please sign in to comment.