Class | Mack::Localization::DateFormatEngine::IT |
In: |
lib/mack-localization/format_engine/df_engines/it.rb
|
Parent: | Base |
# File lib/mack-localization/format_engine/df_engines/it.rb, line 6 6: def date_format_template(type) 7: hash = ivar_cache("df_hash") do 8: df_hash = { 9: :df_short => "dd/mm/yyyy", 10: :df_medium => "DD, dd MM, yyyy", 11: :df_long => "DD, dd MM, yyyy" 12: } 13: end 14: return hash["df_#{type}".to_sym] 15: end
# File lib/mack-localization/format_engine/df_engines/it.rb, line 17 17: def days_of_week(type) 18: hash = ivar_cache("dow_hash") do 19: dow_hash = { 20: :dow_short => %w{L M M G V S D}, 21: :dow_medium => %w{Lun Mar Mer Gio Ven Sab Dom}, 22: :dow_long => %w{Lunedi Martedì Mercoledì Giovedi Venerdì Sabato Domenica} 23: } 24: end 25: return hash["dow_#{type}".to_sym] 26: end
# File lib/mack-localization/format_engine/df_engines/it.rb, line 28 28: def months(type) 29: hash = ivar_cache("m_hash") do 30: m_hash = { 31: :month_short => %w{Gen Feb Mar Apr Mag Giu Lug Ago Set Ott Nov Dic}, 32: :month_medium => %w{Gen Feb Mar Apr Mag Giu Lug Ago Set Ott Nov Dic}, 33: :month_long => %w{Gennaio Febbraio Marzo Aprile Maggio Giugno Luglio Agosto Settembre Ottobre Novembre Dicembre} 34: } 35: end 36: return hash["month_#{type}".to_sym] 37: end