Class Index [+]

Quicksearch

I18n::Tests::Localization::Time

Public Instance Methods

setup() click to toggle source
    # File lib/i18n/tests/localization/time.rb, line 7
 7:         def setup
 8:           super
 9:           setup_time_translations
10:           @time = ::Time.utc(2008, 3, 1, 6, 0)
11:           @other_time = ::Time.utc(2008, 3, 1, 18, 0)
12:         end

Protected Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.