Class | Mack::Localization::DateFormatEngine::ES |
In: |
lib/mack-localization/format_engine/df_engines/es.rb
|
Parent: | Base |
# File lib/mack-localization/format_engine/df_engines/es.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/es.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 J V S D}, 21: :dow_medium => %w{Lun Mar Mié Jue Vie Sáb Dom}, 22: :dow_long => %w{Lunes Martes Mi\303\251rcoles Jueves Viernes S\303\241bado Domingo} 23: } 24: end 25: return hash["dow_#{type}".to_sym] 26: end
# File lib/mack-localization/format_engine/df_engines/es.rb, line 28 28: def months(type) 29: hash = ivar_cache("m_hash") do 30: m_hash = { 31: :month_short => %w{Ene Feb Mar Abr May Jun Jul Ago Sep Oct Nov Dic}, 32: :month_medium => %w{Ene Feb Mar Abr May Jun Jul Ago Sep Oct Nov Dic}, 33: :month_long => %w{Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre} 34: } 35: end 36: return hash["month_#{type}".to_sym] 37: end