<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Class: LocalizationSimplified::DateHelper</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> <script type="text/javascript"> // <![CDATA[ function popupCode( url ) { window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") } function toggleCode( id ) { if ( document.getElementById ) elem = document.getElementById( id ); else if ( document.all ) elem = eval( "document.all." + id ); else return false; elemStyle = elem.style; if ( elemStyle.display != "block" ) { elemStyle.display = "block" } else { elemStyle.display = "none" } return true; } // Make codeblocks hidden by default document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) // ]]> </script> </head> <body> <div id="classHeader"> <table class="header-table"> <tr class="top-aligned-row"> <td><strong>Class</strong></td> <td class="class-name-in-header">LocalizationSimplified::DateHelper</td> </tr> <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> <a href="../../files/lib/lang_cf_rb.html"> lib/lang_cf.rb </a> <br /> <a href="../../files/lib/lang_chef_rb.html"> lib/lang_chef.rb </a> <br /> <a href="../../files/lib/lang_da_rb.html"> lib/lang_da.rb </a> <br /> <a href="../../files/lib/lang_de_rb.html"> lib/lang_de.rb </a> <br /> <a href="../../files/lib/lang_en_rb.html"> lib/lang_en.rb </a> <br /> <a href="../../files/lib/lang_es_rb.html"> lib/lang_es.rb </a> <br /> <a href="../../files/lib/lang_fi_rb.html"> lib/lang_fi.rb </a> <br /> <a href="../../files/lib/lang_fr_rb.html"> lib/lang_fr.rb </a> <br /> <a href="../../files/lib/lang_fr__rb.html"> lib/lang_fr_.rb </a> <br /> <a href="../../files/lib/lang_nl_rb.html"> lib/lang_nl.rb </a> <br /> <a href="../../files/lib/lang_pirate_rb.html"> lib/lang_pirate.rb </a> <br /> <a href="../../files/lib/lang_se_rb.html"> lib/lang_se.rb </a> <br /> <a href="../../files/lib/lang_template_rb.html"> lib/lang_template.rb </a> <br /> </td> </tr> <tr class="top-aligned-row"> <td><strong>Parent:</strong></td> <td> Object </td> </tr> </table> </div> <!-- banner header --> <div id="bodyContent"> <div id="contextContent"> <div id="description"> <p> Texts to override +distance_of_time_in_words()+ </p> </div> </div> </div> <!-- if includes --> <div id="section"> <div id="constants-list"> <h3 class="section-bar">Constants</h3> <div class="name-list"> <table summary="Constants"> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "moins de %d secondes", :half_a_minute => "30 secondes", :less_than_a_minute => "moins d'une minute", :one_minute => "1 minute", :x_minutes => "%d minutes", :one_hour => "environ 1 heure", :x_hours => "environ %d heures", :one_day => "1 jour", :x_days => "%d jours"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre}</td> <td width="3em"> </td> <td class="context-item-desc"> Rails uses Month names in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Jan Fev Mar Avr Mai Jun Jui Aou Sep Oct Nov Dec}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{Dim Lun Mar Mer Jeu Ven Sam}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:year, :month, :day]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "less thun %d secunds", :half_a_minute => "helff a meenoote-a", :less_than_a_minute => "less thun a meenoote-a", :one_minute => "1 meenoote-a", :x_minutes => "%d meenootes", :one_hour => "ebuoot 1 huoor", :x_hours => "ebuoot %d huoors", :one_day => "1 dey", :x_days => "%d deys"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Junooery Febrooery Merch Epreel Mey Joone-a Jooly Oogoost Seeptembooor Ooctuber Nufember Deezember}</td> <td width="3em"> </td> <td class="context-item-desc"> Rails uses Month names in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Jun Feb Mer Epr Mey Joon Jool Oog Sep Ooct Nuf Deez}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{Soondey Mundey Tooesdey Vednesdey Thoorsdey Freedey Setoordey}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{Soon Mun Tooe-a Ved Thoo Free Set}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:year, :month, :day]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "under %d sekunder", :half_a_minute => "et halvt minut", :less_than_a_minute => "under et minut", :one_minute => "1 minut", :x_minutes => "%d minutter", :one_hour => "omkring en time", :x_hours => "omkring %d timer", :one_day => "1 dag", :x_days => "%d dage"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{januar februar marts april maj juni juli august september oktober november december}</td> <td width="3em"> </td> <td class="context-item-desc"> Rails uses Month names in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{jan feb mar apr maj jun jul aug sep okt nov dec}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{søndag mandag tirsdag onsdag torsdag fredag lørdag}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{søn man tir ons tors fre lør}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%e %b", :long => "%e %B, %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%A d. %d %B %Y %H:%M", #no timezone :short => "%d. %b %H:%M", :long => "%d. %B %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:day, :month, :year]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "weniger als %d Sekunden", :half_a_minute => "hälfte ein Minute", :less_than_a_minute => "weniger als ein Minute", :one_minute => "1 minute", :x_minutes => "%d Minuten", :one_hour => "ungefähr 1 Stunden", :x_hours => "ungefähr %d Stunden", :one_day => "1 Tag", :x_days => "%d Tage"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Januar Februar Märtz April Mai Juni Juli August September Oktober November Dezember}</td> <td width="3em"> </td> <td class="context-item-desc"> Rails uses Month names in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Jan Feb Mrz Apr Mai Jun Jul Aug Sep Oct Nov Dez}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{Sontag Montag Dienstag Mittwoch Donnerstag Freitag Samstag}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{Son Mon Die Mit Don Fre Sam}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:day, :month, :year]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "less than %d seconds", :half_a_minute => "half a minute", :less_than_a_minute => "less than a minute", :one_minute => "1 minute", :x_minutes => "%d minutes", :one_hour => "about 1 hour", :x_hours => "about %d hours", :one_day => "1 day", :x_days => "%d days"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{January February March April May June July August September October November December}</td> <td width="3em"> </td> <td class="context-item-desc"> Rails uses Month names in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{Sunday Monday Tuesday Wednesday Thursday Friday Saturday}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{Sun Mon Tue Wed Thu Fri Sat}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:year, :month, :day]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "menos de %d segundos", :half_a_minute => "medio minuto", :less_than_a_minute => "menos de un minuto", :one_minute => "1 minuto", :x_minutes => "%d minutos", :one_hour => "sobre una hora", :x_hours => "sobre %d horas", :one_day => "un día", :x_days => "%d días"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{enero febrero marzo abril mayo junio julio agosto septiembre octubre noviembre diciembre}</td> <td width="3em"> </td> <td class="context-item-desc"> Rails uses Month names in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{ene feb mar abr may jun jul ago sep oct nov dic}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{domingo lunes martes miércoles jueves viernes sábado}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{dom lun mar mié jue vie sáb }</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:day, :month, :year]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "alle %d sekuntia", :half_a_minute => "puoli minuuttia", :less_than_a_minute => "alle minuutti", :one_minute => "1 minuutti", :x_minutes => "%d minuuttia", :one_hour => "noin tunti", :x_hours => "noin %d tuntia", :one_day => "1 päivä", :x_days => "%d päivää"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{tammikuu helmikuu maaliskuu huhtikuu toukokuu kesäkuu heinäkuu elokuu syyskuu lokakuu marraskuu joulukuu}</td> <td width="3em"> </td> <td class="context-item-desc"> Rails uses Month names in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{tammi helmi maalis huhti touko kesä heinä elo syys loka marras joulu}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{sunnuntai maanantai tiistai keskiviikko torstai perjantai lauantai}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{su ma ti ke to pe la}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%e.%m.%Y", :short => "%d.%m.", :long => "%e. %Bta %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%a %Bn %e. %H:%M:%S %Z %Y", :short => "%d.%m.%Y %H:%M", :long => "%a %e. %Bta %Y %T"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:day, :month, :year]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "moins de %d secondes", :half_a_minute => "une demi-minute", :less_than_a_minute => "moins d'une minute", :one_minute => "1 minute", :x_minutes => "%d minutes", :one_hour => "à peut près 1 heure", :x_hours => "à peu près %d heures", :one_day => "1 jour", :x_days => "%d jours"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Decembre}</td> <td width="3em"> </td> <td class="context-item-desc"> Rails uses Month names in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Jan Fev Mar Avr Mai Jui Jul Aoû Sep Oct Nov Dec}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{Dim Lun Mar Mer Jeu Ven Sam}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:year, :month, :day]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "moins de %d secondes", :half_a_minute => "30 secondes", :less_than_a_minute => "moins d'une minute", :one_minute => "1 minute", :x_minutes => "%d minutes", :one_hour => "environ 1 heure", :x_hours => "environ %d heures", :one_day => "1 jour", :x_days => "%d jours"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Jan Fev Mar Avr Mai Jun Jui Aou Sep Oct Nov Dec}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{Dimanche Lundi Mardi Mercredi Jeudi Vendredi Samedi}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{Dim Lun Mar Mer Jeu Ven Sam}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:year, :month, :day]</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "minder dan %d seconden", :half_a_minute => "een halve minuut", :less_than_a_minute => "minder dan een halve minuut", :one_minute => "1 minuut", :x_minutes => "%d minuten", :one_hour => "ongeveer 1 uur", :x_hours => "ongeveer %d uur", :one_day => "1 dag", :x_days => "%d dagen"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Januari Februari Maart April Mei Juni Juli Augustus September October November December}</td> <td width="3em"> </td> <td class="context-item-desc"> Rails uses Month names in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Jan Feb Mar Apr Mei Jun Jul Aug Sep Oct Nov Dec}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{Zondag Maandag Dinsdag Woensdag Donderdag Vrijdag Zaterdag}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{Zo Ma Di Wo Do Vr Za}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:day, :month, :year]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "less than %d seconds", :half_a_minute => "half arrr minute", :less_than_a_minute => "less than arrr minute", :one_minute => "1 minute ye landlubber", :x_minutes => "%d minutes accounted ferrrr", :one_hour => "about one hourrr and a bottle of rum", :x_hours => "about %d hourrrs and a bottle of rum", :one_day => "1 day and a dead mans chest arrr", :x_days => "%d days and a ship full of hornpipes"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{January February March April May June July August September October November December}</td> <td width="3em"> </td> <td class="context-item-desc"> Rails uses Month names in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{Sunday Monday Tuesday Wednesday Thurrrrrrsday Frrriday Saturrrrday}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{Sun Mon Tue Wed Thurrrr Frri Sat}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%A, %d %b %Y %H:%M:%S", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:year, :month, :day]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "mindre än %d sekunder", :half_a_minute => "en halv minut", :less_than_a_minute => "mindre än en minut", :one_minute => "1 minut", :x_minutes => "%d minutter", :one_hour => "ungefär 1 timma", :x_hours => "ungefär %d timmar", :one_day => "1 dygn", :x_days => "%d dygn"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{januari februari mars april maj juni juli augusti september oktober november december}</td> <td width="3em"> </td> <td class="context-item-desc"> Rails uses Month names in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{jan feb mar apr maj jun jul aug sep okt nov dec}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{söndag måndag tisdag onsdag torsdag fredag lördag}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{sön mån tis ons tors fre lör}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:day, :month, :year]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Texts</td> <td>=</td> <td class="context-item-value">{ :less_than_x_seconds => "less than %d seconds", :half_a_minute => "half a minute", :less_than_a_minute => "less than a minute", :one_minute => "1 minute", :x_minutes => "%d minutes", :one_hour => "about 1 hour", :x_hours => "about %d hours", :one_day => "1 day", :x_days => "%d days"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Monthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{January February March April May June July August September October November December}</td> <td width="3em"> </td> <td class="context-item-desc"> Monthnames used by Rails in <a href="../Date.html">Date</a> and time select boxes (<tt>date_select</tt> and <tt>datetime_select</tt> ) Currently (as of version 1.1.6), Rails doesn’t use daynames </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrMonthnames</td> <td>=</td> <td class="context-item-value">[nil] + %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">Daynames</td> <td>=</td> <td class="context-item-value">%w{Sunday Monday Tuesday Wednesday Thursday Friday Saturday}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">AbbrDaynames</td> <td>=</td> <td class="context-item-value">%w{Sun Mon Tue Wed Thu Fri Sat}</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%Y-%m-%d", :short => "%b %e", :long => "%B %e, %Y"</td> <td width="3em"> </td> <td class="context-item-desc"> <a href="../Date.html">Date</a> and time format syntax explained in <a href="http://www.rubycentral.com/ref/ref_c_time.html#strftime">www.rubycentral.com/ref/ref_c_time.html#strftime</a> These are sent to strftime that Ruby’s date and time handlers use internally Same options as php (that has a better list: <a href="http://www.php.net/strftime">www.php.net/strftime</a> ) </td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">TimeFormats</td> <td>=</td> <td class="context-item-value">{ :default => "%a, %d %b %Y %H:%M:%S %z", :short => "%d %b %H:%M", :long => "%B %d, %Y %H:%M"</td> </tr> <tr class="top-aligned-row context-row"> <td class="context-item-name">DateSelectOrder</td> <td>=</td> <td class="context-item-value">{ :order => [:year, :month, :day]</td> <td width="3em"> </td> <td class="context-item-desc"> Set the order of <tt>date_select</tt> and <tt>datetime_select</tt> boxes Note that at present, the current Rails version only supports ordering of date_select boxes </td> </tr> </table> </div> </div> <!-- if method_list --> </div> <div id="validator-badges"> <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> </div> </body> </html>