How to translate plurals in language with multiple cases (most of European) Function format_plural is useable only if language has only one plural case (English), but I need to use it for Czech language what has (like most languages from slovenian and roman family) more cases for plural.

For example English has two cases:


1: bed
2-∞: beds


But in Czech we needs more cases for the same word:


1: postel
2-4: postele
5-∞: postelí


And the schema is usually different for different words. (Mistake, it is the same for all words in one language, but different between languages.)

Is there some API in core or in some module that can translate this (for Americans crazy :-)) cases?
format_plural() does support multiple plural versions in general.

format_plural() only has arguments for singular and plural because english only has those two and the input is always english, Drupal does not support translating interface text from another language than english.

However, it is something that defined per language and not per word, that doesn't work. I'm not aware of a workaround that can handle per-word differences.

Actually, according to https://en.wikipedia.org/wiki/Czech_declension#Plural_forms, those rules (1, 2-4, 5+) are always the same? So that should just work.

This is how it looks in the UI