X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Flib%2FRT%2FI18N%2Fru.pm;h=8c8b3ccbdae71679dbf6afd64195ea67d15450f7;hp=bf7b5871a0c103adf59a17f904c20c677721d63c;hb=44dd00a3ff974a17999e86e64488e996edc71e3c;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c diff --git a/rt/lib/RT/I18N/ru.pm b/rt/lib/RT/I18N/ru.pm index bf7b5871a..8c8b3ccbd 100755 --- a/rt/lib/RT/I18N/ru.pm +++ b/rt/lib/RT/I18N/ru.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2019 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -46,7 +46,14 @@ # # END BPS TAGGED BLOCK }}} +use strict; +use warnings; + package RT::I18N::ru; +use base 'RT::I18N'; + +use strict; +use warnings; sub quant { my($handle, $num, @forms) = @_; @@ -54,7 +61,7 @@ sub quant { return $num unless @forms; return $forms[3] if !$num && $forms[3]; - return $num .' '. $handle->numerate($num, @forms); + return $handle->numf($num) .' '. $handle->numerate($num, @forms); } sub numerate { @@ -68,7 +75,9 @@ sub numerate { } else { $form = 2; } - return $forms[$form]; + return $forms[$form] || (grep defined, @forms)[0]; } +RT::Base->_ImportOverlays(); + 1;