Class Index [+]

Quicksearch

I18n::Tests::Localization::Date

Public Instance Methods

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

Protected Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.