About [[EOL:Website-results offset/en]]

Results %{from} - %{to} of %{total} for %{for}

Please document context and parameters. If any of the parameters are numbers, plural support should be added.

Siebrand22:25, 13 August 2012

Three are numerical (from, to, total). Because there are multiple numerical values, how do you suggest coding this? I'm not familiar with a convention to handle multiple pluralizations.

(The context is search results.)

I'd love to know what languages with complex pluralization would do. At least in English, "Results 1 - 1 of 1 for Tiger" would be considered "acceptable if slightly awkward" and is certainly something one sees often in the wild. I suppose we could pluralize on "total" only, so one would receive "Result 1 for Tiger" vs "Results 1 - 2 of 2 for Tiger", and so on. But, really, what's being pluralized is the index of the set itself, yes? Meaning, the pluralization rule will always be either 1 (only one result, thus one index) or 2 (there are two indexes of results given). ...Unless there are languages (perhaps Chinese) where the plural of the prepositional phrase is also important: "of 100" vs "of 1" vs "of 2" or what have you. I'm not aware, though. And if that's the case, again: I'm not sure how to code this.

Jrice (talk)13:59, 16 August 2012

This case seems to be very similar to MediaWiki's message Showingresultsheader ("{{PLURAL:$5|Result <strong>$1</strong> of <strong>$3</strong>|Results <strong>$1 - $2</strong> of <strong>$3</strong>}} for <strong>$4</strong>"). Looks like you may be able to use this in Rails, too.

See here for all translations.

Siebrand07:46, 20 August 2012

Added to TODO list.

Jrice (talk)21:35, 29 August 2012