# HG changeset patch # User devi # Date 1138380263 -7200 # Node ID 563e3ee69ce86dda045211608c3bfb6238604c1f # Parent b7a217f8e963c6b281e6c9c575a01e7c4a7e9190 Исправленияэ diff -r b7a217f8e963 -r 563e3ee69ce8 l3-frontend --- a/l3-frontend Fri Jan 27 09:53:10 2006 +0200 +++ b/l3-frontend Fri Jan 27 18:44:23 2006 +0200 @@ -572,13 +572,17 @@ elsif ($seconds_since_last_command > 600) { my $height = $seconds_since_last_command > 1200 ? 100: 60; my $minutes_passed = int($seconds_since_last_command/60); - my $minutes_word = $minutes_passed % 10 == 1 ? "минута": + + + my $minutes_word = $minutes_passed % 100 > 10 + && $minutes_passed % 100 < 20 ? "минут" : + $minutes_passed % 10 == 1 ? "минута": $minutes_passed % 10 == 0 ? "минут" : $minutes_passed % 10 > 4 ? "минут" : "минуты"; $this_day_result .= "" - . "" + . "" . "" . "прошло ".$minutes_passed." ".$minutes_word . "" @@ -601,11 +605,22 @@ # TIME $this_day_result .= $Config{"show_time"} =~ /^y/i - ? "$hour:$min:$sec" + ? "$hour:$min:$sec" : ""; # CLASS - $this_day_result .= "F"; + if ($cl->{"err"}) { + $this_day_result .= "" + . "
" + . "E" + . "
" + . ""; + } + else { + $this_day_result .= "" + . " " + . ""; + } # COMMAND my $hint = make_comment($cl->{"cline"});