When your posts_per_page is set to -1 the display is output as `Showing 1–-1 of 15 results` when displaying all items when it would be better to show `Showing all 15 results`
- Coding style: mid-line indenting which should be done using spaces.
- Renamed `$max` to `$total`.
- Simplified calculation of `$last`.
- Using en dash between range of values: http://en.wikipedia.org/wiki/Dash#Ranges_of_values.
- Tweaks to the “Showing 1–10 of 12 results” result text:
- Converted `%s` to `%d`.
- Used numbered placeholders (like `%1$d` and `%2$d`) which allows for more flexible translations since the placeholders can be swapped and repeated now.
- Used `_x()` with comment to clarify placeholder order.
- Added two additional texts:
- One for showing the only single result because “Showing 1–1 of 1 results” is overly verbose.
- One for when all results are shown on the same page because “Showing 1–8 of 8 results” is a bit too verbose too.