Sha256: 0730c7480fea6a02fe2eb7f7ae0e19d3a000eb1eeca032163cea274a11833fee

Contents?: true

Size: 1.4 KB

Versions: 17

Compression:

Stored size: 1.4 KB

Contents

# -*- encoding: utf-8 -*-

# Context-based month name and day name switching for Russian
#
# Названия месяцев и дней недели в зависимости от контекста ("1 декабря", но "Декабрь 1985")
{
  :ru => {
    :date => {
      :abbr_day_names => lambda { |key, options|
        if options[:format] && options[:format] =~ Russian::LOCALIZE_STANDALONE_ABBR_DAY_NAMES_MATCH && !Russian.force_standalone
          :'date.common_abbr_day_names'
        else
          :'date.standalone_abbr_day_names'
        end
      },
      :day_names => lambda { |key, options|
        if options[:format] && options[:format] =~ Russian::LOCALIZE_STANDALONE_DAY_NAMES_MATCH && !Russian.force_standalone
          :'date.standalone_day_names'
        else
          :'date.common_day_names'
        end
      },
      :abbr_month_names => lambda { |key, options|
        if options[:format] && options[:format] =~ Russian::LOCALIZE_ABBR_MONTH_NAMES_MATCH && !Russian.force_standalone
          :'date.common_abbr_month_names'
        else
          :'date.standalone_abbr_month_names'
        end
      },
      :month_names => lambda { |key, options|
        if options[:format] && options[:format] =~ Russian::LOCALIZE_MONTH_NAMES_MATCH && !Russian.force_standalone
          :'date.common_month_names'
        else
          :'date.standalone_month_names'
        end
      }
    }
  }
}

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rs_russian-0.20.0 lib/russian/locale/datetime.rb
rs_russian-0.19.0 lib/russian/locale/datetime.rb
rs_russian-0.18.0 lib/russian/locale/datetime.rb
rs_russian-0.17.0 lib/russian/locale/datetime.rb
rs_russian-0.16.0 lib/russian/locale/datetime.rb
rs_russian-0.15.0 lib/russian/locale/datetime.rb
rs_russian-0.14.0 lib/russian/locale/datetime.rb
rs_russian-0.13.0 lib/russian/locale/datetime.rb
rs_russian-0.12.0 lib/russian/locale/datetime.rb
rs_russian-0.11.0 lib/russian/locale/datetime.rb
rs_russian-0.10.2 lib/russian/locale/datetime.rb
rs_russian-0.10.1 lib/russian/locale/datetime.rb
rs_russian-0.10.0 lib/russian/locale/datetime.rb
rs_russian-0.9.5 lib/russian/locale/datetime.rb
rs_russian-0.9.4 lib/russian/locale/datetime.rb
rs_russian-0.9.3 lib/russian/locale/datetime.rb
rs_russian-0.9.2 lib/russian/locale/datetime.rb