Sha256: 0912e015cee080e082819c683f125a7c351a4e3b42c2a3949d07b3d5062d39d7

Contents?: true

Size: 1.3 KB

Versions: 5

Compression:

Stored size: 1.3 KB

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
belorussian-0.6.4 lib/belorussian/locale/datetime.rb
belorussian-0.6.3 lib/belorussian/locale/datetime.rb
belorussian-0.6.2 lib/belorussian/locale/datetime.rb
belorussian-0.6.1 lib/belorussian/locale/datetime.rb
belorussian-0.6.0 lib/belorussian/locale/datetime.rb