mack-localization 0.6.1.2 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/README +4 -0
  2. data/doc/classes/{Mack/Localization/ContentCache.html → ActiveSupport.html} +4 -14
  3. data/doc/classes/Mack/Localization/DateFormatEngine/BP.html +18 -18
  4. data/doc/classes/Mack/Localization/DateFormatEngine/Base.html +24 -24
  5. data/doc/classes/Mack/Localization/DateFormatEngine/DE.html +18 -18
  6. data/doc/classes/Mack/Localization/DateFormatEngine/EN.html +18 -18
  7. data/doc/classes/Mack/Localization/DateFormatEngine/ES.html +18 -18
  8. data/doc/classes/Mack/Localization/DateFormatEngine/FR.html +18 -18
  9. data/doc/classes/Mack/Localization/DateFormatEngine/IT.html +18 -18
  10. data/doc/classes/Mack/Localization/Errors/FormatEngineNotFound.html +6 -6
  11. data/doc/classes/Mack/Localization/Errors/InvalidArgument.html +6 -6
  12. data/doc/classes/Mack/Localization/Errors/InvalidMethodName.html +6 -6
  13. data/doc/classes/Mack/Localization/Errors/LanguageFileNotFound.html +6 -6
  14. data/doc/classes/Mack/Localization/Errors/UnknownStringKey.html +6 -6
  15. data/doc/classes/Mack/Localization/Errors/UnsupportedEncoding.html +6 -6
  16. data/doc/classes/Mack/Localization/Errors/UnsupportedFeature.html +6 -6
  17. data/doc/classes/Mack/Localization/Errors/UnsupportedLanguage.html +6 -6
  18. data/doc/classes/Mack/Localization/FormatEngineRegistry.html +18 -18
  19. data/doc/classes/Mack/Localization/Formatter.html +36 -36
  20. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/BP.html +18 -18
  21. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/Base.html +30 -30
  22. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/DE.html +18 -18
  23. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/EN.html +18 -18
  24. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/ES.html +18 -18
  25. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/FR.html +18 -18
  26. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/IT.html +18 -18
  27. data/doc/classes/Mack/Localization/Translator.html +24 -24
  28. data/doc/classes/Mack/ViewHelpers/L10NHelpers/Context.html +36 -36
  29. data/doc/classes/Mack/ViewHelpers/L10NHelpers.html +36 -36
  30. data/doc/classes/Object.html +24 -24
  31. data/doc/created.rid +1 -1
  32. data/doc/files/README.html +1 -1
  33. data/doc/files/lib/mack-localization/configuration_rb.html +1 -1
  34. data/doc/files/lib/mack-localization/content_cache_rb.html +1 -1
  35. data/doc/files/lib/mack-localization_rb.html +36 -1
  36. data/doc/fr_class_index.html +1 -1
  37. data/doc/fr_method_index.html +83 -82
  38. data/lib/mack-localization/content_cache.rb +1 -1
  39. data/lib/mack-localization.rb +62 -0
  40. metadata +3 -3
@@ -88,9 +88,9 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000047">delimiter</a>&nbsp;&nbsp;
92
- <a href="#M000049">separator</a>&nbsp;&nbsp;
93
- <a href="#M000048">unit</a>&nbsp;&nbsp;
91
+ <a href="#M000048">delimiter</a>&nbsp;&nbsp;
92
+ <a href="#M000050">separator</a>&nbsp;&nbsp;
93
+ <a href="#M000049">unit</a>&nbsp;&nbsp;
94
94
  </div>
95
95
  </div>
96
96
 
@@ -112,19 +112,19 @@
112
112
  <div id="methods">
113
113
  <h3 class="section-bar">Public Instance methods</h3>
114
114
 
115
- <div id="method-M000047" class="method-detail">
116
- <a name="M000047"></a>
115
+ <div id="method-M000048" class="method-detail">
116
+ <a name="M000048"></a>
117
117
 
118
118
  <div class="method-heading">
119
- <a href="#M000047" class="method-signature">
119
+ <a href="#M000048" class="method-signature">
120
120
  <span class="method-name">delimiter</span><span class="method-args">()</span>
121
121
  </a>
122
122
  </div>
123
123
 
124
124
  <div class="method-description">
125
125
  <p><a class="source-toggle" href="#"
126
- onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
127
- <div class="method-source-code" id="M000047-source">
126
+ onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
127
+ <div class="method-source-code" id="M000048-source">
128
128
  <pre>
129
129
  <span class="ruby-comment cmt"># File lib/mack-localization/format_engine/nc_engines/it.rb, line 5</span>
130
130
  5: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delimiter</span>
@@ -135,19 +135,19 @@
135
135
  </div>
136
136
  </div>
137
137
 
138
- <div id="method-M000049" class="method-detail">
139
- <a name="M000049"></a>
138
+ <div id="method-M000050" class="method-detail">
139
+ <a name="M000050"></a>
140
140
 
141
141
  <div class="method-heading">
142
- <a href="#M000049" class="method-signature">
142
+ <a href="#M000050" class="method-signature">
143
143
  <span class="method-name">separator</span><span class="method-args">()</span>
144
144
  </a>
145
145
  </div>
146
146
 
147
147
  <div class="method-description">
148
148
  <p><a class="source-toggle" href="#"
149
- onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
150
- <div class="method-source-code" id="M000049-source">
149
+ onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
150
+ <div class="method-source-code" id="M000050-source">
151
151
  <pre>
152
152
  <span class="ruby-comment cmt"># File lib/mack-localization/format_engine/nc_engines/it.rb, line 13</span>
153
153
  13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">separator</span>
@@ -158,19 +158,19 @@
158
158
  </div>
159
159
  </div>
160
160
 
161
- <div id="method-M000048" class="method-detail">
162
- <a name="M000048"></a>
161
+ <div id="method-M000049" class="method-detail">
162
+ <a name="M000049"></a>
163
163
 
164
164
  <div class="method-heading">
165
- <a href="#M000048" class="method-signature">
165
+ <a href="#M000049" class="method-signature">
166
166
  <span class="method-name">unit</span><span class="method-args">()</span>
167
167
  </a>
168
168
  </div>
169
169
 
170
170
  <div class="method-description">
171
171
  <p><a class="source-toggle" href="#"
172
- onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
173
- <div class="method-source-code" id="M000048-source">
172
+ onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
173
+ <div class="method-source-code" id="M000049-source">
174
174
  <pre>
175
175
  <span class="ruby-comment cmt"># File lib/mack-localization/format_engine/nc_engines/it.rb, line 9</span>
176
176
  9: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unit</span>
@@ -88,10 +88,10 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000074">getimg</a>&nbsp;&nbsp;
92
- <a href="#M000073">gets</a>&nbsp;&nbsp;
93
- <a href="#M000076">irregular</a>&nbsp;&nbsp;
94
- <a href="#M000075">pluralize</a>&nbsp;&nbsp;
91
+ <a href="#M000075">getimg</a>&nbsp;&nbsp;
92
+ <a href="#M000074">gets</a>&nbsp;&nbsp;
93
+ <a href="#M000077">irregular</a>&nbsp;&nbsp;
94
+ <a href="#M000076">pluralize</a>&nbsp;&nbsp;
95
95
  </div>
96
96
  </div>
97
97
 
@@ -120,19 +120,19 @@
120
120
  <div id="methods">
121
121
  <h3 class="section-bar">Public Instance methods</h3>
122
122
 
123
- <div id="method-M000074" class="method-detail">
124
- <a name="M000074"></a>
123
+ <div id="method-M000075" class="method-detail">
124
+ <a name="M000075"></a>
125
125
 
126
126
  <div class="method-heading">
127
- <a href="#M000074" class="method-signature">
127
+ <a href="#M000075" class="method-signature">
128
128
  <span class="method-name">getimg</span><span class="method-args">(view_sym, key, lang)</span>
129
129
  </a>
130
130
  </div>
131
131
 
132
132
  <div class="method-description">
133
133
  <p><a class="source-toggle" href="#"
134
- onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
135
- <div class="method-source-code" id="M000074-source">
134
+ onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
135
+ <div class="method-source-code" id="M000075-source">
136
136
  <pre>
137
137
  <span class="ruby-comment cmt"># File lib/mack-localization/translator.rb, line 41</span>
138
138
  41: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getimg</span>(<span class="ruby-identifier">view_sym</span>, <span class="ruby-identifier">key</span>, <span class="ruby-identifier">lang</span>)
@@ -143,11 +143,11 @@
143
143
  </div>
144
144
  </div>
145
145
 
146
- <div id="method-M000073" class="method-detail">
147
- <a name="M000073"></a>
146
+ <div id="method-M000074" class="method-detail">
147
+ <a name="M000074"></a>
148
148
 
149
149
  <div class="method-heading">
150
- <a href="#M000073" class="method-signature">
150
+ <a href="#M000074" class="method-signature">
151
151
  <span class="method-name">gets</span><span class="method-args">(view_sym, key, lang)</span>
152
152
  </a>
153
153
  </div>
@@ -187,8 +187,8 @@ see also:
187
187
  l10n_gets in view_helpers
188
188
  </pre>
189
189
  <p><a class="source-toggle" href="#"
190
- onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
191
- <div class="method-source-code" id="M000073-source">
190
+ onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
191
+ <div class="method-source-code" id="M000074-source">
192
192
  <pre>
193
193
  <span class="ruby-comment cmt"># File lib/mack-localization/translator.rb, line 26</span>
194
194
  26: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gets</span>(<span class="ruby-identifier">view_sym</span>, <span class="ruby-identifier">key</span>, <span class="ruby-identifier">lang</span>)
@@ -210,19 +210,19 @@ see also:
210
210
  </div>
211
211
  </div>
212
212
 
213
- <div id="method-M000076" class="method-detail">
214
- <a name="M000076"></a>
213
+ <div id="method-M000077" class="method-detail">
214
+ <a name="M000077"></a>
215
215
 
216
216
  <div class="method-heading">
217
- <a href="#M000076" class="method-signature">
217
+ <a href="#M000077" class="method-signature">
218
218
  <span class="method-name">irregular</span><span class="method-args">(key, lang, num)</span>
219
219
  </a>
220
220
  </div>
221
221
 
222
222
  <div class="method-description">
223
223
  <p><a class="source-toggle" href="#"
224
- onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
225
- <div class="method-source-code" id="M000076-source">
224
+ onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
225
+ <div class="method-source-code" id="M000077-source">
226
226
  <pre>
227
227
  <span class="ruby-comment cmt"># File lib/mack-localization/translator.rb, line 50</span>
228
228
  50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">irregular</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">lang</span>, <span class="ruby-identifier">num</span>)
@@ -233,11 +233,11 @@ see also:
233
233
  </div>
234
234
  </div>
235
235
 
236
- <div id="method-M000075" class="method-detail">
237
- <a name="M000075"></a>
236
+ <div id="method-M000076" class="method-detail">
237
+ <a name="M000076"></a>
238
238
 
239
239
  <div class="method-heading">
240
- <a href="#M000075" class="method-signature">
240
+ <a href="#M000076" class="method-signature">
241
241
  <span class="method-name">pluralize</span><span class="method-args">(key, lang, num)</span>
242
242
  </a>
243
243
  </div>
@@ -248,8 +248,8 @@ REVIEW: inflection&#8230; should localized inflection use the same
248
248
  inflection engine as the english counterpart?
249
249
  </p>
250
250
  <p><a class="source-toggle" href="#"
251
- onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
252
- <div class="method-source-code" id="M000075-source">
251
+ onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
252
+ <div class="method-source-code" id="M000076-source">
253
253
  <pre>
254
254
  <span class="ruby-comment cmt"># File lib/mack-localization/translator.rb, line 46</span>
255
255
  46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pluralize</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">lang</span>, <span class="ruby-identifier">num</span>)
@@ -88,12 +88,12 @@
88
88
  <h3 class="section-bar">Methods</h3>
89
89
 
90
90
  <div class="name-list">
91
- <a href="#M000016">currency</a>&nbsp;&nbsp;
92
- <a href="#M000014">date</a>&nbsp;&nbsp;
93
- <a href="#M000013">getimg</a>&nbsp;&nbsp;
94
- <a href="#M000012">gets</a>&nbsp;&nbsp;
95
- <a href="#M000011">new</a>&nbsp;&nbsp;
96
- <a href="#M000015">number</a>&nbsp;&nbsp;
91
+ <a href="#M000017">currency</a>&nbsp;&nbsp;
92
+ <a href="#M000015">date</a>&nbsp;&nbsp;
93
+ <a href="#M000014">getimg</a>&nbsp;&nbsp;
94
+ <a href="#M000013">gets</a>&nbsp;&nbsp;
95
+ <a href="#M000012">new</a>&nbsp;&nbsp;
96
+ <a href="#M000016">number</a>&nbsp;&nbsp;
97
97
  </div>
98
98
  </div>
99
99
 
@@ -122,19 +122,19 @@
122
122
  <div id="methods">
123
123
  <h3 class="section-bar">Public Class methods</h3>
124
124
 
125
- <div id="method-M000011" class="method-detail">
126
- <a name="M000011"></a>
125
+ <div id="method-M000012" class="method-detail">
126
+ <a name="M000012"></a>
127
127
 
128
128
  <div class="method-heading">
129
- <a href="#M000011" class="method-signature">
129
+ <a href="#M000012" class="method-signature">
130
130
  <span class="method-name">new</span><span class="method-args">(view_sym, lang)</span>
131
131
  </a>
132
132
  </div>
133
133
 
134
134
  <div class="method-description">
135
135
  <p><a class="source-toggle" href="#"
136
- onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
137
- <div class="method-source-code" id="M000011-source">
136
+ onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
137
+ <div class="method-source-code" id="M000012-source">
138
138
  <pre>
139
139
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 8</span>
140
140
  8: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">view_sym</span>, <span class="ruby-identifier">lang</span>)
@@ -148,19 +148,19 @@
148
148
 
149
149
  <h3 class="section-bar">Public Instance methods</h3>
150
150
 
151
- <div id="method-M000016" class="method-detail">
152
- <a name="M000016"></a>
151
+ <div id="method-M000017" class="method-detail">
152
+ <a name="M000017"></a>
153
153
 
154
154
  <div class="method-heading">
155
- <a href="#M000016" class="method-signature">
155
+ <a href="#M000017" class="method-signature">
156
156
  <span class="method-name">currency</span><span class="method-args">(amount)</span>
157
157
  </a>
158
158
  </div>
159
159
 
160
160
  <div class="method-description">
161
161
  <p><a class="source-toggle" href="#"
162
- onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
163
- <div class="method-source-code" id="M000016-source">
162
+ onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
163
+ <div class="method-source-code" id="M000017-source">
164
164
  <pre>
165
165
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 29</span>
166
166
  29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">currency</span>(<span class="ruby-identifier">amount</span>)
@@ -171,19 +171,19 @@
171
171
  </div>
172
172
  </div>
173
173
 
174
- <div id="method-M000014" class="method-detail">
175
- <a name="M000014"></a>
174
+ <div id="method-M000015" class="method-detail">
175
+ <a name="M000015"></a>
176
176
 
177
177
  <div class="method-heading">
178
- <a href="#M000014" class="method-signature">
178
+ <a href="#M000015" class="method-signature">
179
179
  <span class="method-name">date</span><span class="method-args">(time, type)</span>
180
180
  </a>
181
181
  </div>
182
182
 
183
183
  <div class="method-description">
184
184
  <p><a class="source-toggle" href="#"
185
- onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
186
- <div class="method-source-code" id="M000014-source">
185
+ onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
186
+ <div class="method-source-code" id="M000015-source">
187
187
  <pre>
188
188
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 21</span>
189
189
  21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">date</span>(<span class="ruby-identifier">time</span>, <span class="ruby-identifier">type</span>)
@@ -194,19 +194,19 @@
194
194
  </div>
195
195
  </div>
196
196
 
197
- <div id="method-M000013" class="method-detail">
198
- <a name="M000013"></a>
197
+ <div id="method-M000014" class="method-detail">
198
+ <a name="M000014"></a>
199
199
 
200
200
  <div class="method-heading">
201
- <a href="#M000013" class="method-signature">
201
+ <a href="#M000014" class="method-signature">
202
202
  <span class="method-name">getimg</span><span class="method-args">(key)</span>
203
203
  </a>
204
204
  </div>
205
205
 
206
206
  <div class="method-description">
207
207
  <p><a class="source-toggle" href="#"
208
- onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
209
- <div class="method-source-code" id="M000013-source">
208
+ onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
209
+ <div class="method-source-code" id="M000014-source">
210
210
  <pre>
211
211
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 17</span>
212
212
  17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getimg</span>(<span class="ruby-identifier">key</span>)
@@ -217,19 +217,19 @@
217
217
  </div>
218
218
  </div>
219
219
 
220
- <div id="method-M000012" class="method-detail">
221
- <a name="M000012"></a>
220
+ <div id="method-M000013" class="method-detail">
221
+ <a name="M000013"></a>
222
222
 
223
223
  <div class="method-heading">
224
- <a href="#M000012" class="method-signature">
224
+ <a href="#M000013" class="method-signature">
225
225
  <span class="method-name">gets</span><span class="method-args">(key)</span>
226
226
  </a>
227
227
  </div>
228
228
 
229
229
  <div class="method-description">
230
230
  <p><a class="source-toggle" href="#"
231
- onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
232
- <div class="method-source-code" id="M000012-source">
231
+ onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
232
+ <div class="method-source-code" id="M000013-source">
233
233
  <pre>
234
234
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 13</span>
235
235
  13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gets</span>(<span class="ruby-identifier">key</span>)
@@ -240,19 +240,19 @@
240
240
  </div>
241
241
  </div>
242
242
 
243
- <div id="method-M000015" class="method-detail">
244
- <a name="M000015"></a>
243
+ <div id="method-M000016" class="method-detail">
244
+ <a name="M000016"></a>
245
245
 
246
246
  <div class="method-heading">
247
- <a href="#M000015" class="method-signature">
247
+ <a href="#M000016" class="method-signature">
248
248
  <span class="method-name">number</span><span class="method-args">(num)</span>
249
249
  </a>
250
250
  </div>
251
251
 
252
252
  <div class="method-description">
253
253
  <p><a class="source-toggle" href="#"
254
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
255
- <div class="method-source-code" id="M000015-source">
254
+ onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
255
+ <div class="method-source-code" id="M000016-source">
256
256
  <pre>
257
257
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 25</span>
258
258
  25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">number</span>(<span class="ruby-identifier">num</span>)
@@ -80,12 +80,12 @@
80
80
  <h3 class="section-bar">Methods</h3>
81
81
 
82
82
  <div class="name-list">
83
- <a href="#M000005">l10n_context</a>&nbsp;&nbsp;
84
- <a href="#M000010">l10n_currency</a>&nbsp;&nbsp;
85
- <a href="#M000008">l10n_date</a>&nbsp;&nbsp;
86
- <a href="#M000007">l10n_getimg</a>&nbsp;&nbsp;
87
- <a href="#M000006">l10n_gets</a>&nbsp;&nbsp;
88
- <a href="#M000009">l10n_number</a>&nbsp;&nbsp;
83
+ <a href="#M000006">l10n_context</a>&nbsp;&nbsp;
84
+ <a href="#M000011">l10n_currency</a>&nbsp;&nbsp;
85
+ <a href="#M000009">l10n_date</a>&nbsp;&nbsp;
86
+ <a href="#M000008">l10n_getimg</a>&nbsp;&nbsp;
87
+ <a href="#M000007">l10n_gets</a>&nbsp;&nbsp;
88
+ <a href="#M000010">l10n_number</a>&nbsp;&nbsp;
89
89
  </div>
90
90
  </div>
91
91
 
@@ -113,19 +113,19 @@
113
113
  <div id="methods">
114
114
  <h3 class="section-bar">Public Instance methods</h3>
115
115
 
116
- <div id="method-M000005" class="method-detail">
117
- <a name="M000005"></a>
116
+ <div id="method-M000006" class="method-detail">
117
+ <a name="M000006"></a>
118
118
 
119
119
  <div class="method-heading">
120
- <a href="#M000005" class="method-signature">
120
+ <a href="#M000006" class="method-signature">
121
121
  <span class="method-name">l10n_context</span><span class="method-args">(view_sym, lang = session[:lang] || :en) {|ctx| ...}</span>
122
122
  </a>
123
123
  </div>
124
124
 
125
125
  <div class="method-description">
126
126
  <p><a class="source-toggle" href="#"
127
- onclick="toggleCode('M000005-source');return false;">[Source]</a></p>
128
- <div class="method-source-code" id="M000005-source">
127
+ onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
128
+ <div class="method-source-code" id="M000006-source">
129
129
  <pre>
130
130
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 34</span>
131
131
  34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">l10n_context</span>(<span class="ruby-identifier">view_sym</span>, <span class="ruby-identifier">lang</span> = <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:lang</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">:en</span>)
@@ -137,11 +137,11 @@
137
137
  </div>
138
138
  </div>
139
139
 
140
- <div id="method-M000010" class="method-detail">
141
- <a name="M000010"></a>
140
+ <div id="method-M000011" class="method-detail">
141
+ <a name="M000011"></a>
142
142
 
143
143
  <div class="method-heading">
144
- <a href="#M000010" class="method-signature">
144
+ <a href="#M000011" class="method-signature">
145
145
  <span class="method-name">l10n_currency</span><span class="method-args">(amount, lang = session[:lang] || :en)</span>
146
146
  </a>
147
147
  </div>
@@ -176,8 +176,8 @@ Returns:
176
176
  the multibyte version of the formatted currency
177
177
  </pre>
178
178
  <p><a class="source-toggle" href="#"
179
- onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
180
- <div class="method-source-code" id="M000010-source">
179
+ onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
180
+ <div class="method-source-code" id="M000011-source">
181
181
  <pre>
182
182
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 135</span>
183
183
  135: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">l10n_currency</span>(<span class="ruby-identifier">amount</span>, <span class="ruby-identifier">lang</span> = <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:lang</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">:en</span>)
@@ -188,11 +188,11 @@ Returns:
188
188
  </div>
189
189
  </div>
190
190
 
191
- <div id="method-M000008" class="method-detail">
192
- <a name="M000008"></a>
191
+ <div id="method-M000009" class="method-detail">
192
+ <a name="M000009"></a>
193
193
 
194
194
  <div class="method-heading">
195
- <a href="#M000008" class="method-signature">
195
+ <a href="#M000009" class="method-signature">
196
196
  <span class="method-name">l10n_date</span><span class="method-args">(time, type, lang = session[:lang] || :en)</span>
197
197
  </a>
198
198
  </div>
@@ -230,8 +230,8 @@ Returns:
230
230
  the multibyte version of the formatted date
231
231
  </pre>
232
232
  <p><a class="source-toggle" href="#"
233
- onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
234
- <div class="method-source-code" id="M000008-source">
233
+ onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
234
+ <div class="method-source-code" id="M000009-source">
235
235
  <pre>
236
236
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 95</span>
237
237
  95: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">l10n_date</span>(<span class="ruby-identifier">time</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">lang</span> = <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:lang</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">:en</span>)
@@ -242,11 +242,11 @@ Returns:
242
242
  </div>
243
243
  </div>
244
244
 
245
- <div id="method-M000007" class="method-detail">
246
- <a name="M000007"></a>
245
+ <div id="method-M000008" class="method-detail">
246
+ <a name="M000008"></a>
247
247
 
248
248
  <div class="method-heading">
249
- <a href="#M000007" class="method-signature">
249
+ <a href="#M000008" class="method-signature">
250
250
  <span class="method-name">l10n_getimg</span><span class="method-args">(key, view_sym = controller.controller_name, lang = session[:lang] || :en)</span>
251
251
  </a>
252
252
  </div>
@@ -277,8 +277,8 @@ Returns:
277
277
  the multibyte version of the path to the localized image
278
278
  </pre>
279
279
  <p><a class="source-toggle" href="#"
280
- onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
281
- <div class="method-source-code" id="M000007-source">
280
+ onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
281
+ <div class="method-source-code" id="M000008-source">
282
282
  <pre>
283
283
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 73</span>
284
284
  73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">l10n_getimg</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">view_sym</span> = <span class="ruby-identifier">controller</span>.<span class="ruby-identifier">controller_name</span>, <span class="ruby-identifier">lang</span> = <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:lang</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">:en</span>)
@@ -289,11 +289,11 @@ Returns:
289
289
  </div>
290
290
  </div>
291
291
 
292
- <div id="method-M000006" class="method-detail">
293
- <a name="M000006"></a>
292
+ <div id="method-M000007" class="method-detail">
293
+ <a name="M000007"></a>
294
294
 
295
295
  <div class="method-heading">
296
- <a href="#M000006" class="method-signature">
296
+ <a href="#M000007" class="method-signature">
297
297
  <span class="method-name">l10n_gets</span><span class="method-args">(key, view_sym = controller.controller_name, lang = session[:lang] || :en)</span>
298
298
  </a>
299
299
  </div>
@@ -324,8 +324,8 @@ Returns:
324
324
  the multibyte version of the localized string
325
325
  </pre>
326
326
  <p><a class="source-toggle" href="#"
327
- onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
328
- <div class="method-source-code" id="M000006-source">
327
+ onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
328
+ <div class="method-source-code" id="M000007-source">
329
329
  <pre>
330
330
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 54</span>
331
331
  54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">l10n_gets</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">view_sym</span> = <span class="ruby-identifier">controller</span>.<span class="ruby-identifier">controller_name</span>, <span class="ruby-identifier">lang</span> = <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:lang</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">:en</span>)
@@ -336,11 +336,11 @@ Returns:
336
336
  </div>
337
337
  </div>
338
338
 
339
- <div id="method-M000009" class="method-detail">
340
- <a name="M000009"></a>
339
+ <div id="method-M000010" class="method-detail">
340
+ <a name="M000010"></a>
341
341
 
342
342
  <div class="method-heading">
343
- <a href="#M000009" class="method-signature">
343
+ <a href="#M000010" class="method-signature">
344
344
  <span class="method-name">l10n_number</span><span class="method-args">(num, lang = session[:lang] || :en)</span>
345
345
  </a>
346
346
  </div>
@@ -375,8 +375,8 @@ Returns:
375
375
  the multibyte version of the formatted number
376
376
  </pre>
377
377
  <p><a class="source-toggle" href="#"
378
- onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
379
- <div class="method-source-code" id="M000009-source">
378
+ onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
379
+ <div class="method-source-code" id="M000010-source">
380
380
  <pre>
381
381
  <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 115</span>
382
382
  115: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">l10n_number</span>(<span class="ruby-identifier">num</span>, <span class="ruby-identifier">lang</span> = <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:lang</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">:en</span>)