Class: LocalizationSimplified::DateHelper
- Defined in:
- lib/framework/rholang/lang_en.rb,
lib/framework/rholang/lang_es.rb,
lib/extensions/rholang/rholang/lang_ca.rb,
lib/extensions/rholang/rholang/lang_cf.rb,
lib/extensions/rholang/rholang/lang_cs.rb,
lib/extensions/rholang/rholang/lang_da.rb,
lib/extensions/rholang/rholang/lang_de.rb,
lib/extensions/rholang/rholang/lang_es.rb,
lib/extensions/rholang/rholang/lang_fi.rb,
lib/extensions/rholang/rholang/lang_fr.rb,
lib/extensions/rholang/rholang/lang_it.rb,
lib/extensions/rholang/rholang/lang_ko.rb,
lib/extensions/rholang/rholang/lang_nl.rb,
lib/extensions/rholang/rholang/lang_no.rb,
lib/extensions/rholang/rholang/lang_pt.rb,
lib/extensions/rholang/rholang/lang_ru.rb,
lib/extensions/rholang/rholang/lang_se.rb,
lib/extensions/rholang/rholang/lang_sr.rb,
lib/extensions/rholang/rholang/lang_chef.rb,
lib/extensions/rholang/rholang/lang_es_ar.rb,
lib/extensions/rholang/rholang/lang_pt_br.rb,
lib/framework/autocomplete/LocalizationSimplified.rb
Overview
Texts to override distance_of_time_in_words()
Constant Summary collapse
- Texts =
{ :less_than_x_seconds => "menos de %d segundos", :half_a_minute => "meio minuto", :less_than_a_minute => "menos de um minuto", :one_minute => "1 minuto", :x_minutes => "%d minutos", :one_hour => "uma hora", :x_hours => "%d horas", :one_day => "um dia", :x_days => "%d dias", :one_month => "1 mês", :x_months => "%d meses", :one_year => "1 ano", :x_years => "%d anos" }
- Monthnames =
Rails uses Month names in Date and time select boxes (
date_select
anddatetime_select
) Currently (as of version 1.1.6), Rails doesn’t use daynames [nil] + %w{janeiro fevereiro março abril maio junho julho agosto setembro outubro novembro dezembro}
- AbbrMonthnames =
[nil] + %w{jan fev mar abr mai jun jul ago set out nov dez}
- Daynames =
%w{domingo segunda terça quarta quinta sexta sábado}
- AbbrDaynames =
%w{dom seg ter qua qui sex sáb}
- DateFormats =
Date and time format syntax explained in www.rubycentral.com/ref/ref_c_time.html#strftime These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: www.php.net/strftime )
{ :default => "%d-%m-%Y", :short => "%b %e", :long => "%e %B, %Y" }
- TimeFormats =
{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M" }
- DateSelectOrder =
Set the order of
date_select
anddatetime_select
boxes Note that at present, the current Rails version only supports ordering of date_select boxes { :order => [:day, :month, :year] #default Rails is US ordered: :order => [:year, :month, :day] }