Initial commit of foodsoft 2

This commit is contained in:
Benjamin Meichsner 2009-01-06 11:49:19 +01:00
commit 5b9a7e05df
657 changed files with 70444 additions and 0 deletions

View file

@ -0,0 +1,107 @@
<?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>Module: ActionController</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>Module</strong></td>
<td class="class-name-in-header">ActionController</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
</td>
</tr>
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
<div id="contextContent">
</div>
</div>
<!-- if includes -->
<div id="section">
<div id="class-list">
<h3 class="section-bar">Classes and Modules</h3>
Class <a href="ActionController/Base.html" class="link">ActionController::Base</a><br />
</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>

View file

@ -0,0 +1,161 @@
<?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: ActionController::Base</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">ActionController::Base</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../../files/lib/localization_simplified_rb.html">
lib/localization_simplified.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>
Modify Actioncontroller to always use UTF-8 Currently this modifies MySQL.
Please add other databases you find necessary
</p>
</div>
</div>
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
<a href="#M000003">configure_charsets</a>&nbsp;&nbsp;
</div>
</div>
</div>
<!-- if includes -->
<div id="section">
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
<div id="method-M000003" class="method-detail">
<a name="M000003"></a>
<div class="method-heading">
<a href="#M000003" class="method-signature">
<span class="method-name">configure_charsets</span><span class="method-args">(charset='utf-8')</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000003-source">
<pre>
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 197</span>
197: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">configure_charsets</span>(<span class="ruby-identifier">charset</span>=<span class="ruby-value str">'utf-8'</span>)
198: <span class="ruby-identifier">$KCODE</span> = <span class="ruby-value str">'u'</span>
199: <span class="ruby-comment cmt"># Response header necessary with some lang-files (like lang_pirate.rb for some reason)</span>
200: <span class="ruby-ivar">@response</span>.<span class="ruby-identifier">headers</span>[<span class="ruby-value str">&quot;Content-Type&quot;</span>] = <span class="ruby-value str">&quot;text/html; charset=utf-8&quot;</span>
201:
202: <span class="ruby-comment cmt"># Set connection charset. MySQL 4.0 doesn't support this so it</span>
203: <span class="ruby-comment cmt"># will throw an error, MySQL 4.1 needs this</span>
204: <span class="ruby-identifier">suppress</span>(<span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">StatementInvalid</span>) <span class="ruby-keyword kw">do</span>
205: <span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>.<span class="ruby-identifier">connection</span>.<span class="ruby-identifier">execute</span> <span class="ruby-value str">'SET NAMES UTF8'</span>
206: <span class="ruby-keyword kw">end</span>
207: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>
</body>
</html>

View file

@ -0,0 +1,117 @@
<?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>Module: ActionView</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>Module</strong></td>
<td class="class-name-in-header">ActionView</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../files/lib/localization_simplified_rb.html">
lib/localization_simplified.rb
</a>
<br />
</td>
</tr>
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
<div id="contextContent">
<div id="description">
<p>
Give default settings to number_to_currency()
</p>
</div>
</div>
</div>
<!-- if includes -->
<div id="section">
<div id="class-list">
<h3 class="section-bar">Classes and Modules</h3>
Module <a href="ActionView/Helpers.html" class="link">ActionView::Helpers</a><br />
</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>

View file

@ -0,0 +1,113 @@
<?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>Module: ActionView::Helpers</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>Module</strong></td>
<td class="class-name-in-header">ActionView::Helpers</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../../files/lib/localization_simplified_rb.html">
lib/localization_simplified.rb
</a>
<br />
</td>
</tr>
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
<div id="contextContent">
</div>
</div>
<!-- if includes -->
<div id="section">
<div id="class-list">
<h3 class="section-bar">Classes and Modules</h3>
Module <a href="Helpers/ActiveRecordHelper.html" class="link">ActionView::Helpers::ActiveRecordHelper</a><br />
Module <a href="Helpers/DateHelper.html" class="link">ActionView::Helpers::DateHelper</a><br />
Module <a href="Helpers/NumberHelper.html" class="link">ActionView::Helpers::NumberHelper</a><br />
</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>

View file

@ -0,0 +1,176 @@
<?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>Module: ActionView::Helpers::ActiveRecordHelper</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>Module</strong></td>
<td class="class-name-in-header">ActionView::Helpers::ActiveRecordHelper</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../../../files/lib/localization_simplified_rb.html">
lib/localization_simplified.rb
</a>
<br />
</td>
</tr>
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
<div id="contextContent">
<div id="description">
<p>
Modify <a href="../../ActiveRecord.html">ActiveRecord</a> to use error
message headers (text from lang-file)
</p>
</div>
</div>
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
<a href="#M000005">error_messages_for</a>&nbsp;&nbsp;
</div>
</div>
</div>
<!-- if includes -->
<div id="section">
<div id="aliases-list">
<h3 class="section-bar">External Aliases</h3>
<div class="name-list">
<table summary="aliases">
<tr class="top-aligned-row context-row">
<td class="context-item-name">error_messages_for</td>
<td>-></td>
<td class="context-item-value">old_error_messages_for</td>
</tr>
</table>
</div>
</div>
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
<div id="method-M000005" class="method-detail">
<a name="M000005"></a>
<div class="method-heading">
<a href="#M000005" class="method-signature">
<span class="method-name">error_messages_for</span><span class="method-args">(object_name, options = {})</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000005-source">
<pre>
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 65</span>
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">error_messages_for</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">options</span> = {})
66: <span class="ruby-identifier">messages</span> = <span class="ruby-constant">ActiveRecord</span><span class="ruby-operator">::</span><span class="ruby-constant">Errors</span>.<span class="ruby-identifier">default_error_messages</span>
67: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">symbolize_keys</span>
68: <span class="ruby-identifier">object</span> = <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">&quot;@#{object_name}&quot;</span>)
69: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">object</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">empty?</span>
70: <span class="ruby-identifier">content_tag</span>(<span class="ruby-value str">&quot;div&quot;</span>,
71: <span class="ruby-identifier">content_tag</span>(
72: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:header_tag</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">&quot;h2&quot;</span>,
73: <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:error_header</span>], <span class="ruby-identifier">pluralize</span>(<span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">count</span>, <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:error_translation</span>]), <span class="ruby-identifier">object_name</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">&quot;_&quot;</span>, <span class="ruby-value str">&quot; &quot;</span>) )
74: <span class="ruby-comment cmt">#&quot;#{pluralize(object.errors.count, &quot;error&quot;)} prohibited this #{object_name.to_s.gsub(&quot;_&quot;, &quot; &quot;)} from being saved&quot;</span>
75: ) <span class="ruby-operator">+</span>
76: <span class="ruby-identifier">content_tag</span>(<span class="ruby-value str">&quot;p&quot;</span>, <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:error_subheader</span>]) <span class="ruby-operator">+</span>
77: <span class="ruby-identifier">content_tag</span>(<span class="ruby-value str">&quot;ul&quot;</span>, <span class="ruby-identifier">object</span>.<span class="ruby-identifier">errors</span>.<span class="ruby-identifier">full_messages</span>.<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">msg</span><span class="ruby-operator">|</span> <span class="ruby-identifier">content_tag</span>(<span class="ruby-value str">&quot;li&quot;</span>, <span class="ruby-identifier">msg</span>) }),
78: <span class="ruby-value str">&quot;id&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:id</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">&quot;errorExplanation&quot;</span>, <span class="ruby-value str">&quot;class&quot;</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:class</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">&quot;errorExplanation&quot;</span>
79: )
80: <span class="ruby-keyword kw">else</span>
81: <span class="ruby-value str">&quot;&quot;</span>
82: <span class="ruby-keyword kw">end</span>
83: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>
</body>
</html>

View file

@ -0,0 +1,233 @@
<?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>Module: ActionView::Helpers::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>Module</strong></td>
<td class="class-name-in-header">ActionView::Helpers::DateHelper</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../../../files/lib/localization_simplified_rb.html">
lib/localization_simplified.rb
</a>
<br />
</td>
</tr>
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
<div id="contextContent">
<div id="description">
<p>
Modify <a href="DateHelper.html">DateHelper</a> to use text from lang-file
</p>
</div>
</div>
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
<a href="#M000007">date_select</a>&nbsp;&nbsp;
<a href="#M000008">datetime_select</a>&nbsp;&nbsp;
<a href="#M000006">distance_of_time_in_words</a>&nbsp;&nbsp;
</div>
</div>
</div>
<!-- if includes -->
<div id="section">
<div id="aliases-list">
<h3 class="section-bar">External Aliases</h3>
<div class="name-list">
<table summary="aliases">
<tr class="top-aligned-row context-row">
<td class="context-item-name">distance_of_time_in_words</td>
<td>-></td>
<td class="context-item-value">old_distance_of_time_in_words</td>
</tr>
<tr class="top-aligned-row context-row">
<td>&nbsp;</td>
<td colspan="2" class="context-item-desc">
Modify <a href="DateHelper.html">DateHelper</a> <a
href="DateHelper.html#M000006">distance_of_time_in_words</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">date_select</td>
<td>-></td>
<td class="context-item-value">orig_date_select</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">datetime_select</td>
<td>-></td>
<td class="context-item-value">orig_datetime_select</td>
</tr>
</table>
</div>
</div>
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
<div id="method-M000007" class="method-detail">
<a name="M000007"></a>
<div class="method-heading">
<a href="#M000007" class="method-signature">
<span class="method-name">date_select</span><span class="method-args">(object_name, method, options = {})</span>
</a>
</div>
<div class="method-description">
<p>
Blend default options with localized :order option
</p>
<p><a class="source-toggle" href="#"
onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000007-source">
<pre>
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 117</span>
117: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">date_select</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span> = {})
118: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">DateSelectOrder</span>)
119: <span class="ruby-identifier">orig_date_select</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>)
120: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div id="method-M000008" class="method-detail">
<a name="M000008"></a>
<div class="method-heading">
<a href="#M000008" class="method-signature">
<span class="method-name">datetime_select</span><span class="method-args">(object_name, method, options = {})</span>
</a>
</div>
<div class="method-description">
<p>
Blend default options with localized :order option
</p>
<p><a class="source-toggle" href="#"
onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000008-source">
<pre>
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 126</span>
126: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">datetime_select</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span> = {})
127: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">DateSelectOrder</span>)
128: <span class="ruby-identifier">orig_datetime_select</span>(<span class="ruby-identifier">object_name</span>, <span class="ruby-identifier">method</span>, <span class="ruby-identifier">options</span>)
129: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div id="method-M000006" class="method-detail">
<a name="M000006"></a>
<div class="method-heading">
<a href="#M000006" class="method-signature">
<span class="method-name">distance_of_time_in_words</span><span class="method-args">(from_time, to_time = 0, include_seconds = false)</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000006-source">
<pre>
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 93</span>
93: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">distance_of_time_in_words</span>(<span class="ruby-identifier">from_time</span>, <span class="ruby-identifier">to_time</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">include_seconds</span> = <span class="ruby-keyword kw">false</span>)
94: <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-identifier">distance_of_time_in_words</span>(<span class="ruby-identifier">from_time</span>, <span class="ruby-identifier">to_time</span>, <span class="ruby-identifier">include_seconds</span>)
95: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>
</body>
</html>

View file

@ -0,0 +1,157 @@
<?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>Module: ActionView::Helpers::NumberHelper</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>Module</strong></td>
<td class="class-name-in-header">ActionView::Helpers::NumberHelper</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../../../files/lib/localization_simplified_rb.html">
lib/localization_simplified.rb
</a>
<br />
</td>
</tr>
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
<div id="contextContent">
</div>
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
<a href="#M000004">number_to_currency</a>&nbsp;&nbsp;
</div>
</div>
</div>
<!-- if includes -->
<div id="section">
<div id="aliases-list">
<h3 class="section-bar">External Aliases</h3>
<div class="name-list">
<table summary="aliases">
<tr class="top-aligned-row context-row">
<td class="context-item-name">number_to_currency</td>
<td>-></td>
<td class="context-item-value">orig_number_to_currency</td>
</tr>
</table>
</div>
</div>
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
<div id="method-M000004" class="method-detail">
<a name="M000004"></a>
<div class="method-heading">
<a href="#M000004" class="method-signature">
<span class="method-name">number_to_currency</span><span class="method-args">(number, options = {})</span>
</a>
</div>
<div class="method-description">
<p>
Blend default options with localized currency options
</p>
<p><a class="source-toggle" href="#"
onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000004-source">
<pre>
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 107</span>
107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">number_to_currency</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">options</span> = {})
108: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">NumberHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">CurrencyOptions</span>)
109: <span class="ruby-identifier">orig_number_to_currency</span>(<span class="ruby-identifier">number</span>, <span class="ruby-identifier">options</span>)
110: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>
</body>
</html>

View file

@ -0,0 +1,111 @@
<?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>Module: ActiveRecord</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>Module</strong></td>
<td class="class-name-in-header">ActiveRecord</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../files/lib/localization_simplified_rb.html">
lib/localization_simplified.rb
</a>
<br />
</td>
</tr>
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
<div id="contextContent">
</div>
</div>
<!-- if includes -->
<div id="section">
<div id="class-list">
<h3 class="section-bar">Classes and Modules</h3>
Class <a href="ActiveRecord/Errors.html" class="link">ActiveRecord::Errors</a><br />
</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>

View file

@ -0,0 +1,111 @@
<?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: ActiveRecord::Errors</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">ActiveRecord::Errors</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../../files/lib/localization_simplified_rb.html">
lib/localization_simplified.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>
</div>
<!-- if includes -->
<div id="section">
<!-- 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>

View file

@ -0,0 +1,161 @@
<?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: Array</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">Array</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../files/lib/localization_simplified_rb.html">
lib/localization_simplified.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>
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
<a href="#M000002">to_sentence</a>&nbsp;&nbsp;
</div>
</div>
</div>
<!-- if includes -->
<div id="section">
<div id="aliases-list">
<h3 class="section-bar">External Aliases</h3>
<div class="name-list">
<table summary="aliases">
<tr class="top-aligned-row context-row">
<td class="context-item-name">to_sentence</td>
<td>-></td>
<td class="context-item-value">orig_to_sentence</td>
</tr>
</table>
</div>
</div>
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
<div id="method-M000002" class="method-detail">
<a name="M000002"></a>
<div class="method-heading">
<a href="#M000002" class="method-signature">
<span class="method-name">to_sentence</span><span class="method-args">(options = {})</span>
</a>
</div>
<div class="method-description">
<p><a class="source-toggle" href="#"
onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000002-source">
<pre>
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 137</span>
137: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_sentence</span>(<span class="ruby-identifier">options</span> = {})
138: <span class="ruby-comment cmt">#Blend default options with sent through options</span>
139: <span class="ruby-identifier">options</span>.<span class="ruby-identifier">reverse_merge!</span>(<span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">ArrayHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">ToSentenceTexts</span>)
140: <span class="ruby-identifier">orig_to_sentence</span>(<span class="ruby-identifier">options</span>)
141: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>
</body>
</html>

View file

@ -0,0 +1,136 @@
<?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: Date</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">Date</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../files/lib/localization_simplified_rb.html">
lib/localization_simplified.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>
Modification of ruby constants
</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">MONTHNAMES</td>
<td>=</td>
<td class="context-item-value">LocalizationSimplified::DateHelper::Monthnames</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
FIXME as these are defined as Ruby constants, they can&#8217;t be
overwritten
</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>

View file

@ -0,0 +1,344 @@
<?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>Module: LocalizationSimplified</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>Module</strong></td>
<td class="class-name-in-header">LocalizationSimplified</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 />
<a href="../files/lib/localization_simplified_rb.html">
lib/localization_simplified.rb
</a>
<br />
</td>
</tr>
</table>
</div>
<!-- banner header -->
<div id="bodyContent">
<div id="contextContent">
<div id="description">
<p>
<a href="LocalizationSimplified.html">LocalizationSimplified</a> Really
simple localization for Rails By Jesper Rønn-Jensen ( <a
href="http://justaddwater.dk">justaddwater.dk</a>/ ) Plugin available at <a
href="http://rubyforge.org/projects/l10n-simplified">rubyforge.org/projects/l10n-simplified</a>/
</p>
</div>
</div>
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
<a href="#M000010">distance_of_time_in_words</a>&nbsp;&nbsp;
<a href="#M000009">localize_strftime</a>&nbsp;&nbsp;
</div>
</div>
</div>
<!-- if includes -->
<div id="section">
<div id="class-list">
<h3 class="section-bar">Classes and Modules</h3>
Class <a href="LocalizationSimplified/ActiveRecord.html" class="link">LocalizationSimplified::ActiveRecord</a><br />
Class <a href="LocalizationSimplified/ArrayHelper.html" class="link">LocalizationSimplified::ArrayHelper</a><br />
Class <a href="LocalizationSimplified/DateHelper.html" class="link">LocalizationSimplified::DateHelper</a><br />
Class <a href="LocalizationSimplified/NumberHelper.html" class="link">LocalizationSimplified::NumberHelper</a><br />
</div>
<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">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;cf&quot;, :updated =&gt; &quot;2006-09-07&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;chef&quot;, :updated =&gt; &quot;2006-09-07&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;da&quot;, :updated =&gt; &quot;2006-09-07&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;de&quot;, :updated =&gt; &quot;2006-09-07&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;en&quot;, :updated =&gt; &quot;2006-09-01&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;es&quot;, :updated =&gt; &quot;2006-09-07&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;fi&quot;, :updated =&gt; &quot;2006-09-07&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;fr&quot;, :updated =&gt; &quot;2006-09-03&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;fr&quot;, :updated =&gt; &quot;2006-08-24&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;nl&quot;, :updated =&gt; &quot;2006-08-23&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;pirate&quot;, :updated =&gt; &quot;2006-09-07&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;se&quot;, :updated =&gt; &quot;2006-09-07&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">About</td>
<td>=</td>
<td class="context-item-value">{ :lang =&gt; &quot;en&quot;,#add locale code here :updated =&gt; &quot;2006-09-01&quot;</td>
</tr>
</table>
</div>
</div>
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Class methods</h3>
<div id="method-M000010" class="method-detail">
<a name="M000010"></a>
<div class="method-heading">
<a href="#M000010" class="method-signature">
<span class="method-name">distance_of_time_in_words</span><span class="method-args">(from_time, to_time = 0, include_seconds = false)</span>
</a>
</div>
<div class="method-description">
<p>
Modify <a href="LocalizationSimplified/DateHelper.html">DateHelper</a> <a
href="LocalizationSimplified.html#M000010">distance_of_time_in_words</a>
</p>
<p><a class="source-toggle" href="#"
onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000010-source">
<pre>
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 20</span>
20: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">distance_of_time_in_words</span>(<span class="ruby-identifier">from_time</span>, <span class="ruby-identifier">to_time</span> = <span class="ruby-value">0</span>, <span class="ruby-identifier">include_seconds</span> = <span class="ruby-keyword kw">false</span>)
21: <span class="ruby-identifier">from_time</span> = <span class="ruby-identifier">from_time</span>.<span class="ruby-identifier">to_time</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">from_time</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_time</span>)
22: <span class="ruby-identifier">to_time</span> = <span class="ruby-identifier">to_time</span>.<span class="ruby-identifier">to_time</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">to_time</span>.<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:to_time</span>)
23: <span class="ruby-identifier">distance_in_minutes</span> = (((<span class="ruby-identifier">to_time</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">from_time</span>).<span class="ruby-identifier">abs</span>)<span class="ruby-operator">/</span><span class="ruby-value">60</span>).<span class="ruby-identifier">round</span>
24: <span class="ruby-identifier">distance_in_seconds</span> = ((<span class="ruby-identifier">to_time</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">from_time</span>).<span class="ruby-identifier">abs</span>).<span class="ruby-identifier">round</span>
25:
26: <span class="ruby-comment cmt">#First, I invent a variable (makes it easier for future i10n)</span>
27: <span class="ruby-identifier">messages</span> = <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">Texts</span> <span class="ruby-comment cmt">#localized</span>
28: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">distance_in_minutes</span>
29: <span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">1</span>
30: <span class="ruby-keyword kw">return</span> (<span class="ruby-identifier">distance_in_minutes</span><span class="ruby-operator">==</span><span class="ruby-value">0</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:less_than_a_minute</span>] <span class="ruby-operator">:</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:one_minute</span>] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">include_seconds</span>
31: <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">distance_in_seconds</span>
32: <span class="ruby-keyword kw">when</span> <span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">5</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:less_than_x_seconds</span>], <span class="ruby-value">5</span> )
33: <span class="ruby-keyword kw">when</span> <span class="ruby-value">6</span><span class="ruby-operator">..</span><span class="ruby-value">10</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:less_than_x_seconds</span>], <span class="ruby-value">10</span> )
34: <span class="ruby-keyword kw">when</span> <span class="ruby-value">11</span><span class="ruby-operator">..</span><span class="ruby-value">20</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:less_than_x_seconds</span>], <span class="ruby-value">20</span> )
35: <span class="ruby-keyword kw">when</span> <span class="ruby-value">21</span><span class="ruby-operator">..</span><span class="ruby-value">40</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:half_a_minute</span>]
36: <span class="ruby-keyword kw">when</span> <span class="ruby-value">41</span><span class="ruby-operator">..</span><span class="ruby-value">59</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:less_than_a_minute</span>]
37: <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:one_minute</span>]
38: <span class="ruby-keyword kw">end</span>
39:
40: <span class="ruby-keyword kw">when</span> <span class="ruby-value">2</span><span class="ruby-operator">..</span><span class="ruby-value">45</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">format</span>(<span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:x_minutes</span>], <span class="ruby-identifier">distance_in_minutes</span>)
41: <span class="ruby-keyword kw">when</span> <span class="ruby-value">46</span><span class="ruby-operator">..</span><span class="ruby-value">90</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:one_hour</span>]
42: <span class="ruby-keyword kw">when</span> <span class="ruby-value">90</span><span class="ruby-operator">..</span><span class="ruby-value">1440</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:x_hours</span>], (<span class="ruby-identifier">distance_in_minutes</span>.<span class="ruby-identifier">to_f</span> <span class="ruby-operator">/</span> <span class="ruby-value">60.0</span>).<span class="ruby-identifier">round</span> )
43: <span class="ruby-keyword kw">when</span> <span class="ruby-value">1441</span><span class="ruby-operator">..</span><span class="ruby-value">2880</span> <span class="ruby-keyword kw">then</span> <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:one_day</span>]
44: <span class="ruby-keyword kw">else</span> <span class="ruby-identifier">format</span>( <span class="ruby-identifier">messages</span>[<span class="ruby-identifier">:x_days</span>], (<span class="ruby-identifier">distance_in_minutes</span> <span class="ruby-operator">/</span> <span class="ruby-value">1440</span>).<span class="ruby-identifier">round</span> )
45: <span class="ruby-keyword kw">end</span>
46: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
<div id="method-M000009" class="method-detail">
<a name="M000009"></a>
<div class="method-heading">
<a href="#M000009" class="method-signature">
<span class="method-name">localize_strftime</span><span class="method-args">(date='%d.%m.%Y', time='')</span>
</a>
</div>
<div class="method-description">
<p>
substitute all daynames and monthnames with localized names from RUtils
plugin
</p>
<p><a class="source-toggle" href="#"
onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000009-source">
<pre>
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 10</span>
10: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">localize_strftime</span>(<span class="ruby-identifier">date</span>=<span class="ruby-value str">'%d.%m.%Y'</span>, <span class="ruby-identifier">time</span>=<span class="ruby-value str">''</span>)
11: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/%%/</span>, <span class="ruby-ivar">@@ignore</span>)
12: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/%a/</span>, <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">AbbrDaynames</span>[<span class="ruby-identifier">time</span>.<span class="ruby-identifier">wday</span>])
13: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/%A/</span>, <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">Daynames</span>[<span class="ruby-identifier">time</span>.<span class="ruby-identifier">wday</span>])
14: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/%b/</span>, <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">AbbrMonthnames</span>[<span class="ruby-identifier">time</span>.<span class="ruby-identifier">mon</span>])
15: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-regexp re">/%B/</span>, <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-constant">DateHelper</span><span class="ruby-operator">::</span><span class="ruby-constant">Monthnames</span>[<span class="ruby-identifier">time</span>.<span class="ruby-identifier">mon</span>])
16: <span class="ruby-identifier">date</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-ivar">@@ignore</span>, <span class="ruby-value str">'%%'</span>)
17: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>
</body>
</html>

View file

@ -0,0 +1,376 @@
<?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::ActiveRecord</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::ActiveRecord</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>
</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">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;n'est pas inclus dans la liste&quot;, :exclusion =&gt; &quot;est réservé&quot;, :invalid =&gt; &quot;est non valide&quot;, :confirmation =&gt; &quot;ne correspond pas à la confirmation&quot;, :accepted =&gt; &quot;doit être accepté&quot;, :empty =&gt; &quot;ne peut pas être vide&quot;, :blank =&gt; &quot;ne peut pas être laissé à blanc&quot;, :too_long =&gt; &quot;dépasse la longueur permise (le maximum étant de %d caractères)&quot;, :too_short =&gt; &quot;est trop court (le minimum étant de %d caractères)&quot;, :wrong_length =&gt; &quot;n'est pas de la bonne longueur (doit être de %d caractères)&quot;, :taken =&gt; &quot;as déjà été pris&quot;, :not_a_number =&gt; &quot;n'est pas un nombre&quot;, #Jespers additions: :error_translation =&gt; &quot;erreur&quot;, :error_header =&gt; &quot;%s interdit d'enregistrer %s &quot;, :error_subheader =&gt; &quot;Il y a des erreurs dans les champs suivants : &quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;is nut inclooded in zee leest&quot;, :exclusion =&gt; &quot;is reserfed&quot;, :invalid =&gt; &quot;is infeleed&quot;, :confirmation =&gt; &quot;duesn't metch cunffurmeshun&quot;, :accepted =&gt; &quot;moost be-a eccepted&quot;, :empty =&gt; &quot;cun't be-a impty&quot;, :blank =&gt; &quot;ees reeequired&quot;,# alternate, formulation: &quot;is required&quot; :too_long =&gt; &quot;is tuu lung (mexeemoom is %d cherecters)&quot;, :too_short =&gt; &quot;is tuu shurt (meenimoom is %d cherecters)&quot;, :wrong_length =&gt; &quot;is zee vrung lengt (shuoold be-a %d cherecters)&quot;, :taken =&gt; &quot;hes elreedy beee tekee&quot;, :not_a_number =&gt; &quot;is nut a noomber&quot;, #Jespers additions: :error_translation =&gt; &quot;irrur&quot;, :error_header =&gt; &quot;%s pruheebited thees %s frum beeeng sefed&quot;, :error_subheader =&gt; &quot;Zeere-a vere-a prublems veet zee fullooeeng feeelds:&quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;er ikke med på listen&quot;, :exclusion =&gt; &quot;er et reserveret ord&quot;, :invalid =&gt; &quot;er ugyldig&quot;, :confirmation =&gt; &quot;matcher ikke med bekræftelsen&quot;, :accepted =&gt; &quot;skal accepteres&quot;, :empty =&gt; &quot;kan ikke være tom&quot;, :blank =&gt; &quot;skal udfyldes&quot;, :too_long =&gt; &quot;er for langt (max er %d tegn)&quot;, :too_short =&gt; &quot;er for kort (minimum er %d tegn)&quot;, :wrong_length =&gt; &quot;har forkert længde (skal være %d tegn)&quot;, :taken =&gt; &quot;er allerede taget&quot;, :not_a_number =&gt; &quot;er ikke et tal&quot;, #Jespers additions: :error_translation =&gt; &quot;fejl&quot;, :error_header =&gt; &quot;%s forhindrede %s i at blive gemt&quot;, :error_subheader =&gt; &quot;Problemer med følgende felter:&quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;ist nicht in Liste gültiger Optionen enthalten&quot;, :exclusion =&gt; &quot;ist reserviert&quot;, :invalid =&gt; &quot;ist ungültig&quot;, :confirmation =&gt; &quot;entspricht nicht der Best<73>tigung&quot;, :accepted =&gt; &quot;muß akzeptiert werden&quot;, :empty =&gt; &quot;darf nicht leer sein&quot;, :blank =&gt; &quot;darf nicht leer sein&quot;,# alternate, formulation: &quot;is required&quot; :too_long =&gt; &quot;ist zu lang (höchstens %d Zeichen)&quot;, :too_short =&gt; &quot;ist zu kurz (mindestens %d Zeichen)&quot;, :wrong_length =&gt; &quot;hat eine falsche Länge (es sollten %d Zeichen sein)&quot;, :taken =&gt; &quot;ist schon vergeben&quot;, :not_a_number =&gt; &quot;ist keine Zahl&quot;, #Jespers additions: :error_translation =&gt; &quot;Fehl&quot;, :error_header =&gt; &quot;%s verhinderte dieser %s gespeichert werden&quot;, :error_subheader =&gt; &quot;Es gab probleme mit dem folgenden:&quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;is not included in the list&quot;, :exclusion =&gt; &quot;is reserved&quot;, :invalid =&gt; &quot;is invalid&quot;, :confirmation =&gt; &quot;doesn't match confirmation&quot;, :accepted =&gt; &quot;must be accepted&quot;, :empty =&gt; &quot;can't be empty&quot;, :blank =&gt; &quot;can't be blank&quot;,# alternate, formulation: &quot;is required&quot; :too_long =&gt; &quot;is too long (maximum is %d characters)&quot;, :too_short =&gt; &quot;is too short (minimum is %d characters)&quot;, :wrong_length =&gt; &quot;is the wrong length (should be %d characters)&quot;, :taken =&gt; &quot;has already been taken&quot;, :not_a_number =&gt; &quot;is not a number&quot;, #Jespers additions: :error_translation =&gt; &quot;error&quot;, :error_header =&gt; &quot;%s prohibited this %s from being saved&quot;, :error_subheader =&gt; &quot;There were problems with the following fields:&quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;no está incluido en la lista&quot;, :exclusion =&gt; &quot;está reservado&quot;, :invalid =&gt; &quot;no es válido&quot;, :confirmation =&gt; &quot;no coincide con la conformación&quot;, :accepted =&gt; &quot;debe ser aceptado&quot;, :empty =&gt; &quot;no puede estar vacío&quot;, :blank =&gt; &quot;no puede estar en blanco&quot;,# alternate, formulation: &quot;is required&quot; :too_long =&gt; &quot;es demasiado largo (el máximo es %d caracteres)&quot;, :too_short =&gt; &quot;es demasiado cordo (el minimo es %d caracteres)&quot;, :wrong_length =&gt; &quot;is the wrong length (should be %d characters)&quot;, :taken =&gt; &quot;ya está ocupado&quot;, :not_a_number =&gt; &quot;no es un número&quot;, #Jespers additions: :error_translation =&gt; &quot;error&quot;, :error_header =&gt; &quot;%s no permite guardar %s&quot;, :error_subheader =&gt; &quot;Ha habido problemas con los siguientes campos:&quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;ei löydy listalta&quot;, :exclusion =&gt; &quot;on varattu&quot;, :invalid =&gt; &quot;on virheellinen&quot;, :confirmation =&gt; &quot;ei vastaa vahvistusta&quot;, :accepted =&gt; &quot;on hyväksyttävä&quot;, :empty =&gt; &quot;ei voi olla tyhjä&quot;, :blank =&gt; &quot;ei voi olla tyhjä&quot;, :too_long =&gt; &quot;on liian pitkä (maksimi on %d merkkiä)&quot;, :too_short =&gt; &quot;on liian lyhyt (minimi on %d merkkiä)&quot;, :wrong_length =&gt; &quot;on väärän pituinen (oikea pituus %d merkkiä)&quot;, :taken =&gt; &quot;on jo varattu&quot;, :not_a_number =&gt; &quot;ei ole numero&quot;, #Jespers additions: :error_translation =&gt; &quot;virhe&quot;, :error_header =&gt; &quot;%s esti tämän %s tallentamisen&quot;, :error_subheader =&gt; &quot;Seuraavat kentät aiheuttivat ongelmia:&quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;n'est pas inclut dans la liste&quot;, :exclusion =&gt; &quot;est réservé&quot;, :invalid =&gt; &quot;est invalide&quot;, :confirmation =&gt; &quot;ne correspond pas à la confirmation&quot;, :accepted =&gt; &quot;doit être accepté&quot;, :empty =&gt; &quot;ne peut pas être vide&quot;, :blank =&gt; &quot;ne peut pas être vierge&quot;,# alternate, formulation: &quot;is required&quot; :too_long =&gt; &quot;est trop long (%d caractères maximum)&quot;, :too_short =&gt; &quot;est trop court(%d caractères minimum)&quot;, :wrong_length =&gt; &quot;n'est pas de la bonne longueur (devrait être de %d caractères)&quot;, :taken =&gt; &quot;est déjà prit&quot;, :not_a_number =&gt; &quot;n'est pas le nombre&quot;, #Jespers additions: :error_translation =&gt; &quot;erreur&quot;, :error_header =&gt; &quot;%s interdit ce %s d'être sauvegardé&quot;, :error_subheader =&gt; &quot;Il y a des problèmes avec les champs suivants :&quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;n'est pas inclus dans la liste&quot;, :exclusion =&gt; &quot;est réservé&quot;, :invalid =&gt; &quot;est non valide&quot;, :confirmation =&gt; &quot;ne correspond pas à la confirmation&quot;, :accepted =&gt; &quot;doit être accepté&quot;, :empty =&gt; &quot;ne peut pas être vide&quot;, :blank =&gt; &quot;ne peut pas être laissé à blanc&quot;, :too_long =&gt; &quot;dépasse la longueur permise (le maximum étant de %d caractères)&quot;, :too_short =&gt; &quot;est trop court (le minimum étant de %d caractères)&quot;, :wrong_length =&gt; &quot;n'est pas de la bonne longueur (doit être de %d caractères)&quot;, :taken =&gt; &quot;as déjà été pris&quot;, :not_a_number =&gt; &quot;n'est pas un nombre&quot;, #Jespers additions: :error_translation =&gt; &quot;erreur&quot;, :error_header =&gt; &quot;%s interdit d'enregistrer %s &quot;, :error_subheader =&gt; &quot;Il y a des erreurs dans les champs suivants : &quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;zit niet in de lijst&quot;, :exclusion =&gt; &quot;is gereserveerd&quot;, :invalid =&gt; &quot;is ongeldig&quot;, :confirmation =&gt; &quot;is niet hetzelfde als de verificatie&quot;, :accepted =&gt; &quot;moet worden geaccepteerd&quot;, :empty =&gt; &quot;mag niet leeg zijn&quot;, :blank =&gt; &quot;mag niet blanko zijn&quot;,# alternate, formulation: &quot;is required&quot; :too_long =&gt; &quot;is te land (maximum is %d karakters)&quot;, :too_short =&gt; &quot;is te kort (minimum is %d karakters)&quot;, :wrong_length =&gt; &quot;is de verkeerde lengte (dient %d karakters te zijn)&quot;, :taken =&gt; &quot;is reeds in gebruik&quot;, :not_a_number =&gt; &quot;is geen nummer&quot;, #Jespers additions: :error_translation =&gt; &quot;fout&quot;, :error_header =&gt; &quot;%s zorgen ervoor dat %s niet kan worden opgeslagen&quot;, :error_subheader =&gt; &quot;Er zijn problemen met de volgende velden:&quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;be not included in the list, me hearty&quot;, :exclusion =&gt; &quot;be reserrrrved&quot;, :invalid =&gt; &quot;be innvalid, m hearty&quot;, :confirmation =&gt; &quot;doesn't match confirmation&quot;, :accepted =&gt; &quot;must be accepted, arrrrh!&quot;, :empty =&gt; &quot;no nay ne'er be empty&quot;, :blank =&gt; &quot;no nay be blank, ye scurvy dog!&quot;,# alternate, formulation: &quot;is required&quot; :too_long =&gt; &quot;be too vastly in length (no more than %d characters or ye drivin' me nuts)&quot;, :too_short =&gt; &quot;be way too short (at least %d characters or ye drivin' me nuts)&quot;, :wrong_length =&gt; &quot;be the wrong length (should be %d characters)&quot;, :taken =&gt; &quot;has already been taken&quot;, :not_a_number =&gt; &quot;be not a number, matey&quot;, #Jespers additions: :error_translation =&gt; &quot;errrorrr&quot;, :error_header =&gt; &quot;Ohoy! %s prohibited ye %s from bein' saved&quot;, :error_subheader =&gt; &quot;Turn the steering wheeel and corrrect these fields, arrrrh.&quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;finns inte i listan&quot;, :exclusion =&gt; &quot;Är reserverat&quot;, :invalid =&gt; &quot;Är ogiltigt&quot;, :confirmation =&gt; &quot;stämmer inte övererens&quot;, :accepted =&gt; &quot;måste vara accepterad&quot;, :empty =&gt; &quot;för ej vara tom&quot;, :blank =&gt; &quot;för ej vara blank&quot;, :too_long =&gt; &quot;Är för lång (maximum är %d tecken)&quot;, :too_short =&gt; &quot;Är för kort (minimum är %d tecken)&quot;, :wrong_length =&gt; &quot;har fel längd (ska vara %d tecken)&quot;, :taken =&gt; &quot;har redan tagits&quot;, :not_a_number =&gt; &quot;Är ej ett nummer&quot;, #Jespers additions: :error_translation =&gt; &quot;fel&quot;, :error_header =&gt; &quot;%s förhindrade %s från at sparse&quot;, :error_subheader =&gt; &quot;Problemar met dissa felterne:&quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ErrorMessages</td>
<td>=</td>
<td class="context-item-value">{ :inclusion =&gt; &quot;is not included in the list&quot;, :exclusion =&gt; &quot;is reserved&quot;, :invalid =&gt; &quot;is invalid&quot;, :confirmation =&gt; &quot;doesn't match confirmation&quot;, :accepted =&gt; &quot;must be accepted&quot;, :empty =&gt; &quot;can't be empty&quot;, :blank =&gt; &quot;can't be blank&quot;,# alternate, formulation: &quot;is required&quot; :too_long =&gt; &quot;is too long (maximum is %d characters)&quot;, :too_short =&gt; &quot;is too short (minimum is %d characters)&quot;, :wrong_length =&gt; &quot;is the wrong length (should be %d characters)&quot;, :taken =&gt; &quot;has already been taken&quot;, :not_a_number =&gt; &quot;is not a number&quot;, #Jespers additions: :error_translation =&gt; &quot;error&quot;, :error_header =&gt; &quot;%s prohibited this %s from being saved&quot;, :error_subheader =&gt; &quot;There were problems with the following fields:&quot;</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
ErrorMessages to override default messages in
+ActiveRecord::Errors::@@default_error_messages+ This plugin also replaces
hardcoded 3 text messages :error_translation is inflected using the Rails
inflector.
<p>
Remember to modify the Inflector with your localized translation of
&quot;error&quot; and &quot;errors&quot; in the bottom of this file
</p>
</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>

View file

@ -0,0 +1,304 @@
<?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::ArrayHelper</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::ArrayHelper</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>
</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">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'et', :skip_last_comma =&gt; false</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'eend', :skip_last_comma =&gt; false</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'og', :skip_last_comma =&gt; true</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'und', :skip_last_comma =&gt; true</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'and', :skip_last_comma =&gt; false</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'y', :skip_last_comma =&gt; true</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'ja', :skip_last_comma =&gt; true</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'et', :skip_last_comma =&gt; false</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'et', :skip_last_comma =&gt; false</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'en', :skip_last_comma =&gt; false</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'and', :skip_last_comma =&gt; false</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'och', :skip_last_comma =&gt; true</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">ToSentenceTexts</td>
<td>=</td>
<td class="context-item-value">{ :connector =&gt; 'and', :skip_last_comma =&gt; false</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
Modifies +<a href="../Array.html#M000002">Array#to_sentence</a>()+ <a
href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274">api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/Array/Conversions.html#M000274</a>
</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>

View file

@ -0,0 +1,969 @@
<?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 =&gt; &quot;moins de %d secondes&quot;, :half_a_minute =&gt; &quot;30 secondes&quot;, :less_than_a_minute =&gt; &quot;moins d'une minute&quot;, :one_minute =&gt; &quot;1 minute&quot;, :x_minutes =&gt; &quot;%d minutes&quot;, :one_hour =&gt; &quot;environ 1 heure&quot;, :x_hours =&gt; &quot;environ %d heures&quot;, :one_day =&gt; &quot;1 jour&quot;, :x_days =&gt; &quot;%d jours&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%b %e&quot;, :long =&gt; &quot;%B %e, %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%a, %d %b %Y %H:%M:%S %z&quot;, :short =&gt; &quot;%d %b %H:%M&quot;, :long =&gt; &quot;%B %d, %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:year, :month, :day]</td>
<td width="3em">&nbsp;</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 =&gt; &quot;less thun %d secunds&quot;, :half_a_minute =&gt; &quot;helff a meenoote-a&quot;, :less_than_a_minute =&gt; &quot;less thun a meenoote-a&quot;, :one_minute =&gt; &quot;1 meenoote-a&quot;, :x_minutes =&gt; &quot;%d meenootes&quot;, :one_hour =&gt; &quot;ebuoot 1 huoor&quot;, :x_hours =&gt; &quot;ebuoot %d huoors&quot;, :one_day =&gt; &quot;1 dey&quot;, :x_days =&gt; &quot;%d deys&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%b %e&quot;, :long =&gt; &quot;%B %e, %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%a, %d %b %Y %H:%M:%S %z&quot;, :short =&gt; &quot;%d %b %H:%M&quot;, :long =&gt; &quot;%B %d, %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:year, :month, :day]</td>
<td width="3em">&nbsp;</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 =&gt; &quot;under %d sekunder&quot;, :half_a_minute =&gt; &quot;et halvt minut&quot;, :less_than_a_minute =&gt; &quot;under et minut&quot;, :one_minute =&gt; &quot;1 minut&quot;, :x_minutes =&gt; &quot;%d minutter&quot;, :one_hour =&gt; &quot;omkring en time&quot;, :x_hours =&gt; &quot;omkring %d timer&quot;, :one_day =&gt; &quot;1 dag&quot;, :x_days =&gt; &quot;%d dage&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%e %b&quot;, :long =&gt; &quot;%e %B, %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%A d. %d %B %Y %H:%M&quot;, #no timezone :short =&gt; &quot;%d. %b %H:%M&quot;, :long =&gt; &quot;%d. %B %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:day, :month, :year]</td>
<td width="3em">&nbsp;</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 =&gt; &quot;weniger als %d Sekunden&quot;, :half_a_minute =&gt; &quot;hälfte ein Minute&quot;, :less_than_a_minute =&gt; &quot;weniger als ein Minute&quot;, :one_minute =&gt; &quot;1 minute&quot;, :x_minutes =&gt; &quot;%d Minuten&quot;, :one_hour =&gt; &quot;ungefähr 1 Stunden&quot;, :x_hours =&gt; &quot;ungefähr %d Stunden&quot;, :one_day =&gt; &quot;1 Tag&quot;, :x_days =&gt; &quot;%d Tage&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%b %e&quot;, :long =&gt; &quot;%B %e, %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%a, %d %b %Y %H:%M:%S %z&quot;, :short =&gt; &quot;%d %b %H:%M&quot;, :long =&gt; &quot;%B %d, %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:day, :month, :year]</td>
<td width="3em">&nbsp;</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 =&gt; &quot;less than %d seconds&quot;, :half_a_minute =&gt; &quot;half a minute&quot;, :less_than_a_minute =&gt; &quot;less than a minute&quot;, :one_minute =&gt; &quot;1 minute&quot;, :x_minutes =&gt; &quot;%d minutes&quot;, :one_hour =&gt; &quot;about 1 hour&quot;, :x_hours =&gt; &quot;about %d hours&quot;, :one_day =&gt; &quot;1 day&quot;, :x_days =&gt; &quot;%d days&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%b %e&quot;, :long =&gt; &quot;%B %e, %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%a, %d %b %Y %H:%M:%S %z&quot;, :short =&gt; &quot;%d %b %H:%M&quot;, :long =&gt; &quot;%B %d, %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:year, :month, :day]</td>
<td width="3em">&nbsp;</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 =&gt; &quot;menos de %d segundos&quot;, :half_a_minute =&gt; &quot;medio minuto&quot;, :less_than_a_minute =&gt; &quot;menos de un minuto&quot;, :one_minute =&gt; &quot;1 minuto&quot;, :x_minutes =&gt; &quot;%d minutos&quot;, :one_hour =&gt; &quot;sobre una hora&quot;, :x_hours =&gt; &quot;sobre %d horas&quot;, :one_day =&gt; &quot;un día&quot;, :x_days =&gt; &quot;%d días&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%b %e&quot;, :long =&gt; &quot;%B %e, %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%a, %d %b %Y %H:%M:%S %z&quot;, :short =&gt; &quot;%d %b %H:%M&quot;, :long =&gt; &quot;%B %d, %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:day, :month, :year]</td>
<td width="3em">&nbsp;</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 =&gt; &quot;alle %d sekuntia&quot;, :half_a_minute =&gt; &quot;puoli minuuttia&quot;, :less_than_a_minute =&gt; &quot;alle minuutti&quot;, :one_minute =&gt; &quot;1 minuutti&quot;, :x_minutes =&gt; &quot;%d minuuttia&quot;, :one_hour =&gt; &quot;noin tunti&quot;, :x_hours =&gt; &quot;noin %d tuntia&quot;, :one_day =&gt; &quot;1 päivä&quot;, :x_days =&gt; &quot;%d päivää&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%e.%m.%Y&quot;, :short =&gt; &quot;%d.%m.&quot;, :long =&gt; &quot;%e. %Bta %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%a %Bn %e. %H:%M:%S %Z %Y&quot;, :short =&gt; &quot;%d.%m.%Y %H:%M&quot;, :long =&gt; &quot;%a %e. %Bta %Y %T&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:day, :month, :year]</td>
<td width="3em">&nbsp;</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 =&gt; &quot;moins de %d secondes&quot;, :half_a_minute =&gt; &quot;une demi-minute&quot;, :less_than_a_minute =&gt; &quot;moins d'une minute&quot;, :one_minute =&gt; &quot;1 minute&quot;, :x_minutes =&gt; &quot;%d minutes&quot;, :one_hour =&gt; &quot;à peut près 1 heure&quot;, :x_hours =&gt; &quot;à peu près %d heures&quot;, :one_day =&gt; &quot;1 jour&quot;, :x_days =&gt; &quot;%d jours&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%b %e&quot;, :long =&gt; &quot;%B %e, %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%a, %d %b %Y %H:%M:%S %z&quot;, :short =&gt; &quot;%d %b %H:%M&quot;, :long =&gt; &quot;%B %d, %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:year, :month, :day]</td>
<td width="3em">&nbsp;</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 =&gt; &quot;moins de %d secondes&quot;, :half_a_minute =&gt; &quot;30 secondes&quot;, :less_than_a_minute =&gt; &quot;moins d'une minute&quot;, :one_minute =&gt; &quot;1 minute&quot;, :x_minutes =&gt; &quot;%d minutes&quot;, :one_hour =&gt; &quot;environ 1 heure&quot;, :x_hours =&gt; &quot;environ %d heures&quot;, :one_day =&gt; &quot;1 jour&quot;, :x_days =&gt; &quot;%d jours&quot;</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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%b %e&quot;, :long =&gt; &quot;%B %e, %Y&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">TimeFormats</td>
<td>=</td>
<td class="context-item-value">{ :default =&gt; &quot;%a, %d %b %Y %H:%M:%S %z&quot;, :short =&gt; &quot;%d %b %H:%M&quot;, :long =&gt; &quot;%B %d, %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [: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 =&gt; &quot;minder dan %d seconden&quot;, :half_a_minute =&gt; &quot;een halve minuut&quot;, :less_than_a_minute =&gt; &quot;minder dan een halve minuut&quot;, :one_minute =&gt; &quot;1 minuut&quot;, :x_minutes =&gt; &quot;%d minuten&quot;, :one_hour =&gt; &quot;ongeveer 1 uur&quot;, :x_hours =&gt; &quot;ongeveer %d uur&quot;, :one_day =&gt; &quot;1 dag&quot;, :x_days =&gt; &quot;%d dagen&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%b %e&quot;, :long =&gt; &quot;%B %e, %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%a, %d %b %Y %H:%M:%S %z&quot;, :short =&gt; &quot;%d %b %H:%M&quot;, :long =&gt; &quot;%B %d, %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:day, :month, :year]</td>
<td width="3em">&nbsp;</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 =&gt; &quot;less than %d seconds&quot;, :half_a_minute =&gt; &quot;half arrr minute&quot;, :less_than_a_minute =&gt; &quot;less than arrr minute&quot;, :one_minute =&gt; &quot;1 minute ye landlubber&quot;, :x_minutes =&gt; &quot;%d minutes accounted ferrrr&quot;, :one_hour =&gt; &quot;about one hourrr and a bottle of rum&quot;, :x_hours =&gt; &quot;about %d hourrrs and a bottle of rum&quot;, :one_day =&gt; &quot;1 day and a dead mans chest arrr&quot;, :x_days =&gt; &quot;%d days and a ship full of hornpipes&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%b %e&quot;, :long =&gt; &quot;%B %e, %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%A, %d %b %Y %H:%M:%S&quot;, :short =&gt; &quot;%d %b %H:%M&quot;, :long =&gt; &quot;%B %d, %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:year, :month, :day]</td>
<td width="3em">&nbsp;</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 =&gt; &quot;mindre än %d sekunder&quot;, :half_a_minute =&gt; &quot;en halv minut&quot;, :less_than_a_minute =&gt; &quot;mindre än en minut&quot;, :one_minute =&gt; &quot;1 minut&quot;, :x_minutes =&gt; &quot;%d minutter&quot;, :one_hour =&gt; &quot;ungefär 1 timma&quot;, :x_hours =&gt; &quot;ungefär %d timmar&quot;, :one_day =&gt; &quot;1 dygn&quot;, :x_days =&gt; &quot;%d dygn&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%b %e&quot;, :long =&gt; &quot;%B %e, %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%a, %d %b %Y %H:%M:%S %z&quot;, :short =&gt; &quot;%d %b %H:%M&quot;, :long =&gt; &quot;%B %d, %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:day, :month, :year]</td>
<td width="3em">&nbsp;</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 =&gt; &quot;less than %d seconds&quot;, :half_a_minute =&gt; &quot;half a minute&quot;, :less_than_a_minute =&gt; &quot;less than a minute&quot;, :one_minute =&gt; &quot;1 minute&quot;, :x_minutes =&gt; &quot;%d minutes&quot;, :one_hour =&gt; &quot;about 1 hour&quot;, :x_hours =&gt; &quot;about %d hours&quot;, :one_day =&gt; &quot;1 day&quot;, :x_days =&gt; &quot;%d days&quot;</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">&nbsp;</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&#8217;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 =&gt; &quot;%Y-%m-%d&quot;, :short =&gt; &quot;%b %e&quot;, :long =&gt; &quot;%B %e, %Y&quot;</td>
<td width="3em">&nbsp;</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&#8217;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 =&gt; &quot;%a, %d %b %Y %H:%M:%S %z&quot;, :short =&gt; &quot;%d %b %H:%M&quot;, :long =&gt; &quot;%B %d, %Y %H:%M&quot;</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">DateSelectOrder</td>
<td>=</td>
<td class="context-item-value">{ :order =&gt; [:year, :month, :day]</td>
<td width="3em">&nbsp;</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>

View file

@ -0,0 +1,304 @@
<?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::NumberHelper</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::NumberHelper</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>
</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">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;$&quot;, :separator =&gt; &quot;.&quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;,&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:unit, :number]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;$&quot;, :separator =&gt; &quot;.&quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;,&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:unit, :number]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;kr. &quot;, :separator =&gt; &quot;,&quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;.&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:number, :unit]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;&quot;, :separator =&gt; &quot;,&quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;.&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:unit, :number]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;$&quot;, :separator =&gt; &quot;.&quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;,&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:unit, :number]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;&quot;, :separator =&gt; &quot;,&quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;.&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:unit, :number]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;&quot;, :separator =&gt; &quot; &quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;,&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:unit, :number]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;&quot;, :separator =&gt; &quot;.&quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;,&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:unit, :number]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;$&quot;, :separator =&gt; &quot;.&quot;, :delimiter =&gt; &quot;,&quot;, :order =&gt; nil</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;&quot;, :separator =&gt; &quot;.&quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;,&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:unit, :number]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;pieces o' silver&quot;, :separator =&gt; &quot;.&quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;,&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:unit, :number]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;kr. &quot;, :separator =&gt; &quot;,&quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;.&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:number, :unit]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</td>
</tr>
<tr class="top-aligned-row context-row">
<td class="context-item-name">CurrencyOptions</td>
<td>=</td>
<td class="context-item-value">{ :unit =&gt; &quot;$&quot;, :separator =&gt; &quot;.&quot;, #unit separator (between integer part and fraction part) :delimiter =&gt; &quot;,&quot;, #delimiter between each group of thousands. Example: 1.234.567 :order =&gt; [:unit, :number]</td>
<td width="3em">&nbsp;</td>
<td class="context-item-desc">
CurrencyOptions are used as default for +Number#to_currency()+ <a
href="http://api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449">api.rubyonrails.org/classes/ActionView/Helpers/NumberHelper.html#M000449</a>
</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>

View file

@ -0,0 +1,179 @@
<?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: Time</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">Time</td>
</tr>
<tr class="top-aligned-row">
<td><strong>In:</strong></td>
<td>
<a href="../files/lib/localization_simplified_rb.html">
lib/localization_simplified.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>
Modification of default <a href="Time.html">Time</a> format using
Time.to_formatted_s(:default) Localizes the hash with the formats :default,
:short, :long Usage: &lt;% t = Time.parse(&#8216;2006-12-25 13:55&#8217;)
%&gt; &lt;%= t.to_formatted_s(:short) #=&gt; outputs time in localized
format %&gt; &lt;%= t #=&gt; outputs time in localized format %&gt;
</p>
</div>
</div>
<div id="method-list">
<h3 class="section-bar">Methods</h3>
<div class="name-list">
<a href="#M000001">strftime</a>&nbsp;&nbsp;
</div>
</div>
</div>
<!-- if includes -->
<div id="section">
<div id="aliases-list">
<h3 class="section-bar">External Aliases</h3>
<div class="name-list">
<table summary="aliases">
<tr class="top-aligned-row context-row">
<td class="context-item-name">strftime</td>
<td>-></td>
<td class="context-item-value">old_strftime</td>
</tr>
</table>
</div>
</div>
<!-- if method_list -->
<div id="methods">
<h3 class="section-bar">Public Instance methods</h3>
<div id="method-M000001" class="method-detail">
<a name="M000001"></a>
<div class="method-heading">
<a href="#M000001" class="method-signature">
<span class="method-name">strftime</span><span class="method-args">(date)</span>
</a>
</div>
<div class="method-description">
<p>
Pre-translate format of <a href="Time.html">Time</a> before the time string
is translated by strftime. The <tt>:default</tt> time format is changed by
localizing month and daynames. Also Rails ActiveSupport allow us to modify
the <tt>:default</tt> timeformatting string. Originally, its <tt>:default
=&gt; &quot;%a, %d %b %Y %H:%M:%S %z&quot;</tt> (RFC2822 names), but as it
can be modified in this plugin, and we can end up with a different file
format in logfiles, etc
</p>
<p><a class="source-toggle" href="#"
onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
<div class="method-source-code" id="M000001-source">
<pre>
<span class="ruby-comment cmt"># File lib/localization_simplified.rb, line 166</span>
166: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">strftime</span>(<span class="ruby-identifier">date</span>)
167: <span class="ruby-constant">LocalizationSimplified</span><span class="ruby-operator">::</span><span class="ruby-identifier">localize_strftime</span>(<span class="ruby-identifier">date</span>, <span class="ruby-keyword kw">self</span>)
168: <span class="ruby-identifier">old_strftime</span>(<span class="ruby-identifier">date</span>)
169: <span class="ruby-keyword kw">end</span>
</pre>
</div>
</div>
</div>
</div>
</div>
<div id="validator-badges">
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>
</body>
</html>