Sha256: 8355bc2b26a07bdc7502e7496d3ae75389296e2abc4c8ccd2433375cc4176e80
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 KB
Contents
require 'i18n' def enumerator_class [].each.class end def ruby_bug(*args) yield end I18n.locale = :en java::util::Locale.default = java::util::Locale.new('en') def setup_date_translations I18n.backend.store_translations :en, { :java_date => { :formats => { :default => 'HH:mm:ss.SSS dd/MM/yyyy', :short => 'dd. MMM', :long => 'dd. MMMM yyyy', }, }, :sql_date => { :formats => { :default => 'dd/MM/yyyy' } } } I18n.backend.store_translations :de, { :java_date => { :formats => { :default => 'HH:mm:ss.SSS dd.MM.yyyy', :short => 'dd. MMM', :long => 'dd. MMMM yyyy', }, } } I18n.backend.store_translations :fr, { :java_date => { :formats => { :default => 'HH:mm:ss.SSS dd.MM.yyyy', :input => 'HH:mm:ss.SSS dd.MM.yy', }, } } I18n.backend.store_translations :sv, { :java_date => { :formats => { :default => 'HH:mm:ss.SSS dd-MM-yy', :output => 'HH:mm:ss.SSS dd-MM-yyyy', }, } } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
jactive_support-3.0.0 | spec/shared/fixtures.rb |
jactive_support-3.0.0.pre2 | spec/shared/fixtures.rb |
jactive_support-3.0.0.pre1 | spec/shared/fixtures.rb |