diff --git a/lib/russian/action_view_ext/helpers/date_helper.rb b/lib/russian/action_view_ext/helpers/date_helper.rb index 9a1b598..3cd2ef1 100644 --- a/lib/russian/action_view_ext/helpers/date_helper.rb +++ b/lib/russian/action_view_ext/helpers/date_helper.rb @@ -88,7 +88,7 @@ class DateTimeSelector #:nodoc: # месяцев по необходимости def translated_month_names if @options[:use_short_month] - if I18n.backend.send(:lookup, I18n.locale, :'date.common_abbr_month_names') + if I18n.backend.translate(I18n.locale, :'date.common_abbr_month_names') if (@options[:discard_day] || @options[:use_standalone_month_names]) key = :'date.standalone_abbr_month_names' else @@ -98,7 +98,7 @@ def translated_month_names key = :'date.abbr_month_names' end else - if I18n.backend.send(:lookup, I18n.locale, :'date.common_month_names') + if I18n.backend.translate(I18n.locale, :'date.common_month_names') if (@options[:discard_day] || @options[:use_standalone_month_names]) key = :'date.standalone_month_names' else @@ -115,4 +115,4 @@ def translated_month_names end end end -end # if defined? \ No newline at end of file +end # if defined?