module I18n::Tests::Localization::Date - i18n-0.6.11 Documentation

# module I18n::Tests::Localization::Date

### Public Instance Methods

setup() click to toggle source
Calls superclass method

    # 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 72
    def setup_date_translations
      I18n.backend.store_translations :de, {
        :date => {
          :formats => {
            :default => "%d.%m.%Y",
            :short => "%d. %b",
            :long => "%d. %B %Y",
          },
          :day_names => %w(Sonntag Montag Dienstag Mittwoch Donnerstag Freitag Samstag),
          :abbr_day_names => %w(So Mo Di Mi Do Fr  Sa),
          :month_names => %w(Januar Februar März April Mai Juni Juli August September Oktober November Dezember).unshift(nil),
          :abbr_month_names => %w(Jan Feb Mar Apr Mai Jun Jul Aug Sep Okt Nov Dez).unshift(nil)
        }
      }
    end