mack-localization 0.7.1 → 0.7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- metadata +2 -63
- data/doc/classes/ActiveSupport.html +0 -101
- data/doc/classes/Mack.html +0 -194
- data/doc/classes/Mack/Localization/Configuration.html +0 -118
- data/doc/classes/Mack/Localization/DateFormatEngine/BP.html +0 -217
- data/doc/classes/Mack/Localization/DateFormatEngine/Base.html +0 -237
- data/doc/classes/Mack/Localization/DateFormatEngine/DE.html +0 -217
- data/doc/classes/Mack/Localization/DateFormatEngine/EN.html +0 -218
- data/doc/classes/Mack/Localization/DateFormatEngine/ES.html +0 -217
- data/doc/classes/Mack/Localization/DateFormatEngine/FR.html +0 -217
- data/doc/classes/Mack/Localization/DateFormatEngine/IT.html +0 -217
- data/doc/classes/Mack/Localization/Errors/FormatEngineNotFound.html +0 -153
- data/doc/classes/Mack/Localization/Errors/InvalidArgument.html +0 -146
- data/doc/classes/Mack/Localization/Errors/InvalidConfiguration.html +0 -117
- data/doc/classes/Mack/Localization/Errors/InvalidMethodName.html +0 -153
- data/doc/classes/Mack/Localization/Errors/LanguageFileNotFound.html +0 -152
- data/doc/classes/Mack/Localization/Errors/UnknownStringKey.html +0 -153
- data/doc/classes/Mack/Localization/Errors/UnsupportedEncoding.html +0 -153
- data/doc/classes/Mack/Localization/Errors/UnsupportedFeature.html +0 -152
- data/doc/classes/Mack/Localization/Errors/UnsupportedLanguage.html +0 -153
- data/doc/classes/Mack/Localization/FormatEngineRegistry.html +0 -245
- data/doc/classes/Mack/Localization/Formatter.html +0 -392
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/BP.html +0 -196
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/Base.html +0 -250
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/DE.html +0 -196
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/EN.html +0 -196
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/ES.html +0 -196
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/FR.html +0 -196
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/IT.html +0 -196
- data/doc/classes/Mack/Localization/Translator.html +0 -275
- data/doc/classes/Mack/ViewHelpers/L10NHelpers.html +0 -402
- data/doc/classes/Mack/ViewHelpers/L10NHelpers/Context.html +0 -278
- data/doc/classes/Object.html +0 -236
- data/doc/created.rid +0 -1
- data/doc/files/README.html +0 -107
- data/doc/files/lib/mack-localization/configuration_rb.html +0 -110
- data/doc/files/lib/mack-localization/content_cache_rb.html +0 -101
- data/doc/files/lib/mack-localization/errors_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/df_engines/base_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/df_engines/bp_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/df_engines/de_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/df_engines/en_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/df_engines/es_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/df_engines/fr_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/df_engines/it_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/engine_registry_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/nc_engines/base_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/nc_engines/bp_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/nc_engines/de_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/nc_engines/en_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/nc_engines/es_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/nc_engines/fr_rb.html +0 -101
- data/doc/files/lib/mack-localization/format_engine/nc_engines/it_rb.html +0 -101
- data/doc/files/lib/mack-localization/formatter_rb.html +0 -101
- data/doc/files/lib/mack-localization/helpers/view_helpers/l10n_helpers_rb.html +0 -101
- data/doc/files/lib/mack-localization/translator_rb.html +0 -101
- data/doc/files/lib/mack-localization_rb.html +0 -144
- data/doc/fr_class_index.html +0 -58
- data/doc/fr_file_index.html +0 -49
- data/doc/fr_method_index.html +0 -109
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
@@ -1,217 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Mack::Localization::DateFormatEngine::DE</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Mack::Localization::DateFormatEngine::DE</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../../files/lib/mack-localization/format_engine/df_engines/de_rb.html">
|
59
|
-
lib/mack-localization/format_engine/df_engines/de.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="Base.html">
|
69
|
-
Base
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
</div>
|
86
|
-
|
87
|
-
<div id="method-list">
|
88
|
-
<h3 class="section-bar">Methods</h3>
|
89
|
-
|
90
|
-
<div class="name-list">
|
91
|
-
<a href="#M000055">date_format_template</a>
|
92
|
-
<a href="#M000056">days_of_week</a>
|
93
|
-
<a href="#M000057">months</a>
|
94
|
-
</div>
|
95
|
-
</div>
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
|
100
|
-
<!-- if includes -->
|
101
|
-
|
102
|
-
<div id="section">
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
<!-- if method_list -->
|
112
|
-
<div id="methods">
|
113
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
114
|
-
|
115
|
-
<div id="method-M000055" class="method-detail">
|
116
|
-
<a name="M000055"></a>
|
117
|
-
|
118
|
-
<div class="method-heading">
|
119
|
-
<a href="#M000055" class="method-signature">
|
120
|
-
<span class="method-name">date_format_template</span><span class="method-args">(type)</span>
|
121
|
-
</a>
|
122
|
-
</div>
|
123
|
-
|
124
|
-
<div class="method-description">
|
125
|
-
<p><a class="source-toggle" href="#"
|
126
|
-
onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
|
127
|
-
<div class="method-source-code" id="M000055-source">
|
128
|
-
<pre>
|
129
|
-
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/de.rb, line 6</span>
|
130
|
-
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">date_format_template</span>(<span class="ruby-identifier">type</span>)
|
131
|
-
7: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"df_hash"</span>) <span class="ruby-keyword kw">do</span>
|
132
|
-
8: <span class="ruby-identifier">df_hash</span> = {
|
133
|
-
9: <span class="ruby-identifier">:df_short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"dd/mm/yyyy"</span>,
|
134
|
-
10: <span class="ruby-identifier">:df_medium</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"DD, dd MM, yyyy"</span>,
|
135
|
-
11: <span class="ruby-identifier">:df_long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"DD, dd MM, yyyy"</span>
|
136
|
-
12: }
|
137
|
-
13: <span class="ruby-keyword kw">end</span>
|
138
|
-
14: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"df_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
139
|
-
15: <span class="ruby-keyword kw">end</span>
|
140
|
-
</pre>
|
141
|
-
</div>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
<div id="method-M000056" class="method-detail">
|
146
|
-
<a name="M000056"></a>
|
147
|
-
|
148
|
-
<div class="method-heading">
|
149
|
-
<a href="#M000056" class="method-signature">
|
150
|
-
<span class="method-name">days_of_week</span><span class="method-args">(type)</span>
|
151
|
-
</a>
|
152
|
-
</div>
|
153
|
-
|
154
|
-
<div class="method-description">
|
155
|
-
<p><a class="source-toggle" href="#"
|
156
|
-
onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
|
157
|
-
<div class="method-source-code" id="M000056-source">
|
158
|
-
<pre>
|
159
|
-
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/de.rb, line 17</span>
|
160
|
-
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">days_of_week</span>(<span class="ruby-identifier">type</span>)
|
161
|
-
18: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"dow_hash"</span>) <span class="ruby-keyword kw">do</span>
|
162
|
-
19: <span class="ruby-identifier">dow_hash</span> = {
|
163
|
-
20: <span class="ruby-identifier">:dow_short</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{M D M D F S S}</span>,
|
164
|
-
21: <span class="ruby-identifier">:dow_medium</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Mon Die Mit Don Fre Sam Son}</span>,
|
165
|
-
22: <span class="ruby-identifier">:dow_long</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Montag Dienstag Mittwoch Donnerstag Freitag Samstag Sonntag}</span>,
|
166
|
-
23: }
|
167
|
-
24: <span class="ruby-keyword kw">end</span>
|
168
|
-
25: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"dow_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
169
|
-
26: <span class="ruby-keyword kw">end</span>
|
170
|
-
</pre>
|
171
|
-
</div>
|
172
|
-
</div>
|
173
|
-
</div>
|
174
|
-
|
175
|
-
<div id="method-M000057" class="method-detail">
|
176
|
-
<a name="M000057"></a>
|
177
|
-
|
178
|
-
<div class="method-heading">
|
179
|
-
<a href="#M000057" class="method-signature">
|
180
|
-
<span class="method-name">months</span><span class="method-args">(type)</span>
|
181
|
-
</a>
|
182
|
-
</div>
|
183
|
-
|
184
|
-
<div class="method-description">
|
185
|
-
<p><a class="source-toggle" href="#"
|
186
|
-
onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
|
187
|
-
<div class="method-source-code" id="M000057-source">
|
188
|
-
<pre>
|
189
|
-
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/de.rb, line 28</span>
|
190
|
-
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">months</span>(<span class="ruby-identifier">type</span>)
|
191
|
-
29: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"m_hash"</span>) <span class="ruby-keyword kw">do</span>
|
192
|
-
30: <span class="ruby-identifier">m_hash</span> = {
|
193
|
-
31: <span class="ruby-identifier">:month_short</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Jan Feb Mär Apr Mai Jun Jul Aug Sep Okt Nov Dez}</span>,
|
194
|
-
32: <span class="ruby-identifier">:month_medium</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Jan Feb Mär Apr Mai Jun Jul Aug Sep Okt Nov Dez}</span>,
|
195
|
-
33: <span class="ruby-identifier">:month_long</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Januar Februar März April Mai Juni Juli August September Oktober November Dezember}</span>
|
196
|
-
34: }
|
197
|
-
35: <span class="ruby-keyword kw">end</span>
|
198
|
-
36: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"month_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
199
|
-
37: <span class="ruby-keyword kw">end</span>
|
200
|
-
</pre>
|
201
|
-
</div>
|
202
|
-
</div>
|
203
|
-
</div>
|
204
|
-
|
205
|
-
|
206
|
-
</div>
|
207
|
-
|
208
|
-
|
209
|
-
</div>
|
210
|
-
|
211
|
-
|
212
|
-
<div id="validator-badges">
|
213
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
214
|
-
</div>
|
215
|
-
|
216
|
-
</body>
|
217
|
-
</html>
|
@@ -1,218 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Mack::Localization::DateFormatEngine::EN</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Mack::Localization::DateFormatEngine::EN</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../../files/lib/mack-localization/format_engine/df_engines/en_rb.html">
|
59
|
-
lib/mack-localization/format_engine/df_engines/en.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="Base.html">
|
69
|
-
Base
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
</div>
|
86
|
-
|
87
|
-
<div id="method-list">
|
88
|
-
<h3 class="section-bar">Methods</h3>
|
89
|
-
|
90
|
-
<div class="name-list">
|
91
|
-
<a href="#M000068">date_format_template</a>
|
92
|
-
<a href="#M000069">days_of_week</a>
|
93
|
-
<a href="#M000070">months</a>
|
94
|
-
</div>
|
95
|
-
</div>
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
|
100
|
-
<!-- if includes -->
|
101
|
-
|
102
|
-
<div id="section">
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
<!-- if method_list -->
|
112
|
-
<div id="methods">
|
113
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
114
|
-
|
115
|
-
<div id="method-M000068" class="method-detail">
|
116
|
-
<a name="M000068"></a>
|
117
|
-
|
118
|
-
<div class="method-heading">
|
119
|
-
<a href="#M000068" class="method-signature">
|
120
|
-
<span class="method-name">date_format_template</span><span class="method-args">(type)</span>
|
121
|
-
</a>
|
122
|
-
</div>
|
123
|
-
|
124
|
-
<div class="method-description">
|
125
|
-
<p><a class="source-toggle" href="#"
|
126
|
-
onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
|
127
|
-
<div class="method-source-code" id="M000068-source">
|
128
|
-
<pre>
|
129
|
-
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/en.rb, line 6</span>
|
130
|
-
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">date_format_template</span>(<span class="ruby-identifier">type</span>)
|
131
|
-
7: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"df_hash"</span>) <span class="ruby-keyword kw">do</span>
|
132
|
-
8: <span class="ruby-identifier">df_hash</span> = {
|
133
|
-
9: <span class="ruby-identifier">:df_short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"mm/dd/yyyy"</span>,
|
134
|
-
10: <span class="ruby-identifier">:df_medium</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"DD, MM dd, yyyy"</span>,
|
135
|
-
11: <span class="ruby-identifier">:df_long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"DD, MM dd, yyyy"</span>
|
136
|
-
12: }
|
137
|
-
13: <span class="ruby-keyword kw">end</span>
|
138
|
-
14:
|
139
|
-
15: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"df_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
140
|
-
16: <span class="ruby-keyword kw">end</span>
|
141
|
-
</pre>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
</div>
|
145
|
-
|
146
|
-
<div id="method-M000069" class="method-detail">
|
147
|
-
<a name="M000069"></a>
|
148
|
-
|
149
|
-
<div class="method-heading">
|
150
|
-
<a href="#M000069" class="method-signature">
|
151
|
-
<span class="method-name">days_of_week</span><span class="method-args">(type)</span>
|
152
|
-
</a>
|
153
|
-
</div>
|
154
|
-
|
155
|
-
<div class="method-description">
|
156
|
-
<p><a class="source-toggle" href="#"
|
157
|
-
onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
|
158
|
-
<div class="method-source-code" id="M000069-source">
|
159
|
-
<pre>
|
160
|
-
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/en.rb, line 18</span>
|
161
|
-
18: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">days_of_week</span>(<span class="ruby-identifier">type</span>)
|
162
|
-
19: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"dow_hash"</span>) <span class="ruby-keyword kw">do</span>
|
163
|
-
20: <span class="ruby-identifier">dow_hash</span> = {
|
164
|
-
21: <span class="ruby-identifier">:dow_short</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{M T W T F S S}</span>,
|
165
|
-
22: <span class="ruby-identifier">:dow_medium</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Mon Tue wed Thu Fri Sat Sun}</span>,
|
166
|
-
23: <span class="ruby-identifier">:dow_long</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Monday Tuesday Wednesday Thursday Friday Saturday Sunday}</span>
|
167
|
-
24: }
|
168
|
-
25: <span class="ruby-keyword kw">end</span>
|
169
|
-
26: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"dow_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
170
|
-
27: <span class="ruby-keyword kw">end</span>
|
171
|
-
</pre>
|
172
|
-
</div>
|
173
|
-
</div>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
<div id="method-M000070" class="method-detail">
|
177
|
-
<a name="M000070"></a>
|
178
|
-
|
179
|
-
<div class="method-heading">
|
180
|
-
<a href="#M000070" class="method-signature">
|
181
|
-
<span class="method-name">months</span><span class="method-args">(type)</span>
|
182
|
-
</a>
|
183
|
-
</div>
|
184
|
-
|
185
|
-
<div class="method-description">
|
186
|
-
<p><a class="source-toggle" href="#"
|
187
|
-
onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
|
188
|
-
<div class="method-source-code" id="M000070-source">
|
189
|
-
<pre>
|
190
|
-
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/en.rb, line 29</span>
|
191
|
-
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">months</span>(<span class="ruby-identifier">type</span>)
|
192
|
-
30: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"m_hash"</span>) <span class="ruby-keyword kw">do</span>
|
193
|
-
31: <span class="ruby-identifier">m_hash</span> = {
|
194
|
-
32: <span class="ruby-identifier">:month_short</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}</span>,
|
195
|
-
33: <span class="ruby-identifier">:month_medium</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}</span>,
|
196
|
-
34: <span class="ruby-identifier">:month_long</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{January February March April May June July August September October November December}</span>
|
197
|
-
35: }
|
198
|
-
36: <span class="ruby-keyword kw">end</span>
|
199
|
-
37: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"month_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
200
|
-
38: <span class="ruby-keyword kw">end</span>
|
201
|
-
</pre>
|
202
|
-
</div>
|
203
|
-
</div>
|
204
|
-
</div>
|
205
|
-
|
206
|
-
|
207
|
-
</div>
|
208
|
-
|
209
|
-
|
210
|
-
</div>
|
211
|
-
|
212
|
-
|
213
|
-
<div id="validator-badges">
|
214
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
215
|
-
</div>
|
216
|
-
|
217
|
-
</body>
|
218
|
-
</html>
|
@@ -1,217 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Mack::Localization::DateFormatEngine::ES</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Mack::Localization::DateFormatEngine::ES</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../../files/lib/mack-localization/format_engine/df_engines/es_rb.html">
|
59
|
-
lib/mack-localization/format_engine/df_engines/es.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="Base.html">
|
69
|
-
Base
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
</div>
|
86
|
-
|
87
|
-
<div id="method-list">
|
88
|
-
<h3 class="section-bar">Methods</h3>
|
89
|
-
|
90
|
-
<div class="name-list">
|
91
|
-
<a href="#M000058">date_format_template</a>
|
92
|
-
<a href="#M000059">days_of_week</a>
|
93
|
-
<a href="#M000060">months</a>
|
94
|
-
</div>
|
95
|
-
</div>
|
96
|
-
|
97
|
-
</div>
|
98
|
-
|
99
|
-
|
100
|
-
<!-- if includes -->
|
101
|
-
|
102
|
-
<div id="section">
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
<!-- if method_list -->
|
112
|
-
<div id="methods">
|
113
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
114
|
-
|
115
|
-
<div id="method-M000058" class="method-detail">
|
116
|
-
<a name="M000058"></a>
|
117
|
-
|
118
|
-
<div class="method-heading">
|
119
|
-
<a href="#M000058" class="method-signature">
|
120
|
-
<span class="method-name">date_format_template</span><span class="method-args">(type)</span>
|
121
|
-
</a>
|
122
|
-
</div>
|
123
|
-
|
124
|
-
<div class="method-description">
|
125
|
-
<p><a class="source-toggle" href="#"
|
126
|
-
onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
|
127
|
-
<div class="method-source-code" id="M000058-source">
|
128
|
-
<pre>
|
129
|
-
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/es.rb, line 6</span>
|
130
|
-
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">date_format_template</span>(<span class="ruby-identifier">type</span>)
|
131
|
-
7: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"df_hash"</span>) <span class="ruby-keyword kw">do</span>
|
132
|
-
8: <span class="ruby-identifier">df_hash</span> = {
|
133
|
-
9: <span class="ruby-identifier">:df_short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"dd/mm/yyyy"</span>,
|
134
|
-
10: <span class="ruby-identifier">:df_medium</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"DD, dd MM, yyyy"</span>,
|
135
|
-
11: <span class="ruby-identifier">:df_long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"DD, dd MM, yyyy"</span>
|
136
|
-
12: }
|
137
|
-
13: <span class="ruby-keyword kw">end</span>
|
138
|
-
14: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"df_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
139
|
-
15: <span class="ruby-keyword kw">end</span>
|
140
|
-
</pre>
|
141
|
-
</div>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
|
145
|
-
<div id="method-M000059" class="method-detail">
|
146
|
-
<a name="M000059"></a>
|
147
|
-
|
148
|
-
<div class="method-heading">
|
149
|
-
<a href="#M000059" class="method-signature">
|
150
|
-
<span class="method-name">days_of_week</span><span class="method-args">(type)</span>
|
151
|
-
</a>
|
152
|
-
</div>
|
153
|
-
|
154
|
-
<div class="method-description">
|
155
|
-
<p><a class="source-toggle" href="#"
|
156
|
-
onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
|
157
|
-
<div class="method-source-code" id="M000059-source">
|
158
|
-
<pre>
|
159
|
-
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/es.rb, line 17</span>
|
160
|
-
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">days_of_week</span>(<span class="ruby-identifier">type</span>)
|
161
|
-
18: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"dow_hash"</span>) <span class="ruby-keyword kw">do</span>
|
162
|
-
19: <span class="ruby-identifier">dow_hash</span> = {
|
163
|
-
20: <span class="ruby-identifier">:dow_short</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{L M M J V S D}</span>,
|
164
|
-
21: <span class="ruby-identifier">:dow_medium</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Lun Mar Mié Jue Vie Sáb Dom}</span>,
|
165
|
-
22: <span class="ruby-identifier">:dow_long</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Lunes Martes Mi\303\251rcoles Jueves Viernes S\303\241bado Domingo}</span>
|
166
|
-
23: }
|
167
|
-
24: <span class="ruby-keyword kw">end</span>
|
168
|
-
25: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"dow_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
169
|
-
26: <span class="ruby-keyword kw">end</span>
|
170
|
-
</pre>
|
171
|
-
</div>
|
172
|
-
</div>
|
173
|
-
</div>
|
174
|
-
|
175
|
-
<div id="method-M000060" class="method-detail">
|
176
|
-
<a name="M000060"></a>
|
177
|
-
|
178
|
-
<div class="method-heading">
|
179
|
-
<a href="#M000060" class="method-signature">
|
180
|
-
<span class="method-name">months</span><span class="method-args">(type)</span>
|
181
|
-
</a>
|
182
|
-
</div>
|
183
|
-
|
184
|
-
<div class="method-description">
|
185
|
-
<p><a class="source-toggle" href="#"
|
186
|
-
onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
|
187
|
-
<div class="method-source-code" id="M000060-source">
|
188
|
-
<pre>
|
189
|
-
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/es.rb, line 28</span>
|
190
|
-
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">months</span>(<span class="ruby-identifier">type</span>)
|
191
|
-
29: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"m_hash"</span>) <span class="ruby-keyword kw">do</span>
|
192
|
-
30: <span class="ruby-identifier">m_hash</span> = {
|
193
|
-
31: <span class="ruby-identifier">:month_short</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Ene Feb Mar Abr May Jun Jul Ago Sep Oct Nov Dic}</span>,
|
194
|
-
32: <span class="ruby-identifier">:month_medium</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Ene Feb Mar Abr May Jun Jul Ago Sep Oct Nov Dic}</span>,
|
195
|
-
33: <span class="ruby-identifier">:month_long</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre}</span>
|
196
|
-
34: }
|
197
|
-
35: <span class="ruby-keyword kw">end</span>
|
198
|
-
36: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"month_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
199
|
-
37: <span class="ruby-keyword kw">end</span>
|
200
|
-
</pre>
|
201
|
-
</div>
|
202
|
-
</div>
|
203
|
-
</div>
|
204
|
-
|
205
|
-
|
206
|
-
</div>
|
207
|
-
|
208
|
-
|
209
|
-
</div>
|
210
|
-
|
211
|
-
|
212
|
-
<div id="validator-badges">
|
213
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
214
|
-
</div>
|
215
|
-
|
216
|
-
</body>
|
217
|
-
</html>
|