#356 - Ability to give more than two replacements for plural
Type Enhancement
Status Invalid
Milestone Future
Version -
Component -
Priority Normal
Severity Normal
Assigned to -
Reported 10 years ago
Updated 10 years ago
Votes 0
Related tickets
Proposed time
Worked time

I'm preparing Russian localization for Traq.

The thing is that Russian plural formation is more complex than in most other languages: we have three forms of nouns.

The expression is as follows (in PHP):

    $word = $number % 10 === 1 && $number % 100 !== 11 ? $form0 : ($number % 10 >= 2 && $number % 10 <= 4 && ($number % 100 < 10 || $number % 100 >= 20) ? $form1 : $form2);

So, I would like to have an opportunity to give three forms in the localization file, not two.

The problem is that I don't know how to tell Traq that this should be done only if the locale is set to Russian.

If you give me a hint how to do this, I'll implement it myself.

Thanks!

Ticket History

10 years and 11 months ago by Menelion Elensúlë...

Oh sorry, the formatting is messed up for some reason :-(.

Jack closed as Invalid 10 years and 11 months ago

This functionality is already possible in Traq, but with the documentation still being worked on, the only place to find it was in the code itself.

However I've gone ahead and extended the documentation for Localisation, that should help you.