Class Index [+]

Quicksearch

I18n::Tests::Localization::DateTime

Public Instance Methods

setup() click to toggle source
    # File lib/i18n/tests/localization/date_time.rb, line 7
 7:         def setup
 8:           super
 9:           setup_datetime_translations
10:           @datetime = ::DateTime.new(2008, 3, 1, 6)
11:           @other_datetime = ::DateTime.new(2008, 3, 1, 18)
12:         end

Protected Instance Methods

setup_datetime_translations() click to toggle source
    # File lib/i18n/tests/localization/date_time.rb, line 60
60:           def setup_datetime_translations
61:             # time translations might have been set up in Tests::Api::Localization::Time
62:             I18n.backend.store_translations :de, {
63:               :time => {
64:                 :formats => {
65:                   :default => "%a, %d. %b %Y %H:%M:%S %z",
66:                   :short => "%d. %b %H:%M",
67:                   :long => "%d. %B %Y %H:%M"
68:                 },
69:                 :am => 'am',
70:                 :pm => 'pm'
71:               }
72:             }
73:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.