There are languages with two or more plural forms.
For example in Romanian plural forms can be defined like this:
`Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2);`
`_n()` and `_nx()` can handle all those special cases for results count texts.
This fix will not add any extra strings in the i18n package, just allows for better translations.
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.