Class/Module Index [+]

Quicksearch

I18n::Tests::Localization::Date

Public Instance Methods

setup() click to toggle source
# File lib/i18n/tests/localization/date.rb, line 6
def setup
  super
  setup_date_translations
  @date = ::Date.new(2008, 3, 1)
end

Protected Instance Methods

setup_date_translations() click to toggle source
# File lib/i18n/tests/localization/date.rb, line 65
def setup_date_translations
  I18n.backend.store_translations :de, {
    :date => {
      :formats => {
        :default => "%d.%m.%Y",
        :short => "%d. %b",
        :long => "%d. %B %Y",
      },
      :day_names => %(Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag),
      :abbr_day_names => %(So Mo Di Mi Do Fr  Sa),
      :month_names => %(Januar Februar März April Mai Juni Juli August September Oktober November Dezember).unshift(nil),
      :abbr_month_names => %(Jan Feb Mar Apr Mai Jun Jul Aug Sep Okt Nov Dez).unshift(nil)
    }
  }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.