OK, I'm getting a bit off topic now

(**pnm**, you can move this message to a new topic if you prefer), but while looking through the source code I saw this:

**Code:**

if (mu=="ru") {

if (vf==1) $("#hours_ext").html("");

else if ((vf >=2) && (vf <=4)) $("#hours_ext").html('а');

else $("#hours_ext").html('ов'); }

In the Russian language, inflection of nouns that stand next to numerals depends on the last digit of the number, not on the number itself. (Except for the numbers *11, *12, *13 and *14, which behave like 0 or 10. That is because we do not pronounce 11 as “ten-one”, we say “eleven”.)

I.e. in Russian the name of the Disney movie is not “101 Dalmatians”, but something like “101 Dalmatian” (single form), because it ends in 1.

Also: 1 Dalmatian, 21 Dalmatian, 91 Dalmatian, 9001 Dalmatian.

However: 11 Dalmatians, 111 Dalmatians, 9011 Dalmatians.

To make long story short:

0 час

**ов**1 час

2, 3, 4 час

**а**5, 6, 7, 8, 9, 10 час

**ов**(suddenly) 11 час

**ов**(suddenly) 12, 13, 14 час

**ов**then it keeps following the pattern:

15, 16, 17, 18, 19, 20 час

**ов**21 час

22, 23, 24 час

**а**25, 26, 27, 28, 29, 30 час

**ов**31 час

32, 33, 34 час

**а**etc.

Same goes about minutes, except that

*час* is masculine and

*минута* is feminine, so the endings are different:

Tomorrow's puzzles will appear in =

*Новые головоломки появятся через*…

0 минут

1 минут

**у** (because in here it's accusative case; the nominative case would be 1 минут**а**)2, 3, 4 минут

**ы**5, 6, 7, 8, 9, 10 минут

(suddenly) 11 минут

(suddenly) 12, 13, 14 минут

15, 16, 17, 18, 19, 20 минут

21 минут

**у**22, 23, 24 минут

**ы**25, 26, 27, 28, 29, 30 минут

31 минут

**у**etc.

So the conditions are a bit more complex:

Behave like 1 if (lastDigit == 1) && (nextToLastDigit != 1)

Behave like 2 if (lastDigit >= 2) && (lastDigit <= 4) && (nextToLastDigit != 1)

Behave like 0 otherwise

Hope I wrote everything correctly %)