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.
Files changed (62) hide show
  1. metadata +2 -63
  2. data/doc/classes/ActiveSupport.html +0 -101
  3. data/doc/classes/Mack.html +0 -194
  4. data/doc/classes/Mack/Localization/Configuration.html +0 -118
  5. data/doc/classes/Mack/Localization/DateFormatEngine/BP.html +0 -217
  6. data/doc/classes/Mack/Localization/DateFormatEngine/Base.html +0 -237
  7. data/doc/classes/Mack/Localization/DateFormatEngine/DE.html +0 -217
  8. data/doc/classes/Mack/Localization/DateFormatEngine/EN.html +0 -218
  9. data/doc/classes/Mack/Localization/DateFormatEngine/ES.html +0 -217
  10. data/doc/classes/Mack/Localization/DateFormatEngine/FR.html +0 -217
  11. data/doc/classes/Mack/Localization/DateFormatEngine/IT.html +0 -217
  12. data/doc/classes/Mack/Localization/Errors/FormatEngineNotFound.html +0 -153
  13. data/doc/classes/Mack/Localization/Errors/InvalidArgument.html +0 -146
  14. data/doc/classes/Mack/Localization/Errors/InvalidConfiguration.html +0 -117
  15. data/doc/classes/Mack/Localization/Errors/InvalidMethodName.html +0 -153
  16. data/doc/classes/Mack/Localization/Errors/LanguageFileNotFound.html +0 -152
  17. data/doc/classes/Mack/Localization/Errors/UnknownStringKey.html +0 -153
  18. data/doc/classes/Mack/Localization/Errors/UnsupportedEncoding.html +0 -153
  19. data/doc/classes/Mack/Localization/Errors/UnsupportedFeature.html +0 -152
  20. data/doc/classes/Mack/Localization/Errors/UnsupportedLanguage.html +0 -153
  21. data/doc/classes/Mack/Localization/FormatEngineRegistry.html +0 -245
  22. data/doc/classes/Mack/Localization/Formatter.html +0 -392
  23. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/BP.html +0 -196
  24. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/Base.html +0 -250
  25. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/DE.html +0 -196
  26. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/EN.html +0 -196
  27. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/ES.html +0 -196
  28. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/FR.html +0 -196
  29. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/IT.html +0 -196
  30. data/doc/classes/Mack/Localization/Translator.html +0 -275
  31. data/doc/classes/Mack/ViewHelpers/L10NHelpers.html +0 -402
  32. data/doc/classes/Mack/ViewHelpers/L10NHelpers/Context.html +0 -278
  33. data/doc/classes/Object.html +0 -236
  34. data/doc/created.rid +0 -1
  35. data/doc/files/README.html +0 -107
  36. data/doc/files/lib/mack-localization/configuration_rb.html +0 -110
  37. data/doc/files/lib/mack-localization/content_cache_rb.html +0 -101
  38. data/doc/files/lib/mack-localization/errors_rb.html +0 -101
  39. data/doc/files/lib/mack-localization/format_engine/df_engines/base_rb.html +0 -101
  40. data/doc/files/lib/mack-localization/format_engine/df_engines/bp_rb.html +0 -101
  41. data/doc/files/lib/mack-localization/format_engine/df_engines/de_rb.html +0 -101
  42. data/doc/files/lib/mack-localization/format_engine/df_engines/en_rb.html +0 -101
  43. data/doc/files/lib/mack-localization/format_engine/df_engines/es_rb.html +0 -101
  44. data/doc/files/lib/mack-localization/format_engine/df_engines/fr_rb.html +0 -101
  45. data/doc/files/lib/mack-localization/format_engine/df_engines/it_rb.html +0 -101
  46. data/doc/files/lib/mack-localization/format_engine/engine_registry_rb.html +0 -101
  47. data/doc/files/lib/mack-localization/format_engine/nc_engines/base_rb.html +0 -101
  48. data/doc/files/lib/mack-localization/format_engine/nc_engines/bp_rb.html +0 -101
  49. data/doc/files/lib/mack-localization/format_engine/nc_engines/de_rb.html +0 -101
  50. data/doc/files/lib/mack-localization/format_engine/nc_engines/en_rb.html +0 -101
  51. data/doc/files/lib/mack-localization/format_engine/nc_engines/es_rb.html +0 -101
  52. data/doc/files/lib/mack-localization/format_engine/nc_engines/fr_rb.html +0 -101
  53. data/doc/files/lib/mack-localization/format_engine/nc_engines/it_rb.html +0 -101
  54. data/doc/files/lib/mack-localization/formatter_rb.html +0 -101
  55. data/doc/files/lib/mack-localization/helpers/view_helpers/l10n_helpers_rb.html +0 -101
  56. data/doc/files/lib/mack-localization/translator_rb.html +0 -101
  57. data/doc/files/lib/mack-localization_rb.html +0 -144
  58. data/doc/fr_class_index.html +0 -58
  59. data/doc/fr_file_index.html +0 -49
  60. data/doc/fr_method_index.html +0 -109
  61. data/doc/index.html +0 -24
  62. data/doc/rdoc-style.css +0 -208
@@ -1,402 +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>Module: Mack::ViewHelpers::L10NHelpers</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>Module</strong></td>
53
- <td class="class-name-in-header">Mack::ViewHelpers::L10NHelpers</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../files/lib/mack-localization/helpers/view_helpers/l10n_helpers_rb.html">
59
- lib/mack-localization/helpers/view_helpers/l10n_helpers.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- </table>
66
- </div>
67
- <!-- banner header -->
68
-
69
- <div id="bodyContent">
70
-
71
-
72
-
73
- <div id="contextContent">
74
-
75
-
76
-
77
- </div>
78
-
79
- <div id="method-list">
80
- <h3 class="section-bar">Methods</h3>
81
-
82
- <div class="name-list">
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
- </div>
90
- </div>
91
-
92
- </div>
93
-
94
-
95
- <!-- if includes -->
96
-
97
- <div id="section">
98
-
99
- <div id="class-list">
100
- <h3 class="section-bar">Classes and Modules</h3>
101
-
102
- Class <a href="L10NHelpers/Context.html" class="link">Mack::ViewHelpers::L10NHelpers::Context</a><br />
103
-
104
- </div>
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- <!-- if method_list -->
113
- <div id="methods">
114
- <h3 class="section-bar">Public Instance methods</h3>
115
-
116
- <div id="method-M000006" class="method-detail">
117
- <a name="M000006"></a>
118
-
119
- <div class="method-heading">
120
- <a href="#M000006" class="method-signature">
121
- <span class="method-name">l10n_context</span><span class="method-args">(view_sym, lang = session[:lang] || :en) {|ctx| ...}</span>
122
- </a>
123
- </div>
124
-
125
- <div class="method-description">
126
- <p><a class="source-toggle" href="#"
127
- onclick="toggleCode('M000006-source');return false;">[Source]</a></p>
128
- <div class="method-source-code" id="M000006-source">
129
- <pre>
130
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 34</span>
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>)
132
- 35: <span class="ruby-identifier">ctx</span> = <span class="ruby-constant">Context</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">view_sym</span>, <span class="ruby-identifier">lang</span>)
133
- 36: <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">ctx</span>
134
- 37: <span class="ruby-keyword kw">end</span>
135
- </pre>
136
- </div>
137
- </div>
138
- </div>
139
-
140
- <div id="method-M000011" class="method-detail">
141
- <a name="M000011"></a>
142
-
143
- <div class="method-heading">
144
- <a href="#M000011" class="method-signature">
145
- <span class="method-name">l10n_currency</span><span class="method-args">(amount, lang = session[:lang] || :en)</span>
146
- </a>
147
- </div>
148
-
149
- <div class="method-description">
150
- <p>
151
- View helper method to format the currency based on the given language code
152
- </p>
153
- <p>
154
- params:
155
- </p>
156
- <pre>
157
- amount - the amount of money
158
- lang - language code
159
- </pre>
160
- <p>
161
- See:
162
- </p>
163
- <pre>
164
- Mack::Localization::Formatter.currency_format
165
- </pre>
166
- <p>
167
- Example:
168
- </p>
169
- <pre>
170
- l10n_currency(10000, :en) produces &quot;$10,000.00&quot;
171
- </pre>
172
- <p>
173
- Returns:
174
- </p>
175
- <pre>
176
- the multibyte version of the formatted currency
177
- </pre>
178
- <p><a class="source-toggle" href="#"
179
- onclick="toggleCode('M000011-source');return false;">[Source]</a></p>
180
- <div class="method-source-code" id="M000011-source">
181
- <pre>
182
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 135</span>
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>)
184
- 136: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">l10n_formatter</span>.<span class="ruby-identifier">currency_format</span>(<span class="ruby-identifier">amount</span>, <span class="ruby-identifier">lang</span>)
185
- 137: <span class="ruby-keyword kw">end</span>
186
- </pre>
187
- </div>
188
- </div>
189
- </div>
190
-
191
- <div id="method-M000009" class="method-detail">
192
- <a name="M000009"></a>
193
-
194
- <div class="method-heading">
195
- <a href="#M000009" class="method-signature">
196
- <span class="method-name">l10n_date</span><span class="method-args">(time, type, lang = session[:lang] || :en)</span>
197
- </a>
198
- </div>
199
-
200
- <div class="method-description">
201
- <p>
202
- View helper method to format the specified date based on the given language
203
- code
204
- </p>
205
- <p>
206
- params:
207
- </p>
208
- <pre>
209
- time - the date to be formatted
210
- type - :short, :medium, :long
211
- lang - language code
212
- </pre>
213
- <p>
214
- See:
215
- </p>
216
- <pre>
217
- Mack::Localization::Formatter.date_format
218
- </pre>
219
- <p>
220
- Example:
221
- </p>
222
- <pre>
223
- aTime = Time.local(2008, &quot;jan&quot;, 1)
224
- l10n_date(aTime, :short, :en) produces &quot;Jan 01, 2008&quot;
225
- </pre>
226
- <p>
227
- Returns:
228
- </p>
229
- <pre>
230
- the multibyte version of the formatted date
231
- </pre>
232
- <p><a class="source-toggle" href="#"
233
- onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
234
- <div class="method-source-code" id="M000009-source">
235
- <pre>
236
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 95</span>
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>)
238
- 96: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">l10n_formatter</span>.<span class="ruby-identifier">date_format</span>(<span class="ruby-identifier">time</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">lang</span>)
239
- 97: <span class="ruby-keyword kw">end</span>
240
- </pre>
241
- </div>
242
- </div>
243
- </div>
244
-
245
- <div id="method-M000008" class="method-detail">
246
- <a name="M000008"></a>
247
-
248
- <div class="method-heading">
249
- <a href="#M000008" class="method-signature">
250
- <span class="method-name">l10n_getimg</span><span class="method-args">(key, view_sym = controller.controller_name, lang = session[:lang] || :en)</span>
251
- </a>
252
- </div>
253
-
254
- <div class="method-description">
255
- <p>
256
- View helper method to get the localized image path in the given view_sym
257
- path and language using the specified key.
258
- </p>
259
- <p>
260
- params:
261
- </p>
262
- <pre>
263
- key - lookup key
264
- view_sym - tell the system where to look for the content file
265
- lang - the language code
266
- </pre>
267
- <p>
268
- See:
269
- </p>
270
- <pre>
271
- Mack::Localization::Translator.getimg
272
- </pre>
273
- <p>
274
- Returns:
275
- </p>
276
- <pre>
277
- the multibyte version of the path to the localized image
278
- </pre>
279
- <p><a class="source-toggle" href="#"
280
- onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
281
- <div class="method-source-code" id="M000008-source">
282
- <pre>
283
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 73</span>
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>)
285
- 74: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">l10n_translator</span>.<span class="ruby-identifier">getimg</span>(<span class="ruby-identifier">view_sym</span>.<span class="ruby-identifier">to_sym</span>, <span class="ruby-identifier">key</span>, <span class="ruby-identifier">lang</span>)
286
- 75: <span class="ruby-keyword kw">end</span>
287
- </pre>
288
- </div>
289
- </div>
290
- </div>
291
-
292
- <div id="method-M000007" class="method-detail">
293
- <a name="M000007"></a>
294
-
295
- <div class="method-heading">
296
- <a href="#M000007" class="method-signature">
297
- <span class="method-name">l10n_gets</span><span class="method-args">(key, view_sym = controller.controller_name, lang = session[:lang] || :en)</span>
298
- </a>
299
- </div>
300
-
301
- <div class="method-description">
302
- <p>
303
- View helper method to get the localized string in the given view_sym path
304
- and language using the specified key.
305
- </p>
306
- <p>
307
- params:
308
- </p>
309
- <pre>
310
- key - lookup key
311
- view_sym - tell the system where to look for the content file
312
- lang - the language code
313
- </pre>
314
- <p>
315
- See:
316
- </p>
317
- <pre>
318
- Mack::Localization::Translator.getimg
319
- </pre>
320
- <p>
321
- Returns:
322
- </p>
323
- <pre>
324
- the multibyte version of the localized string
325
- </pre>
326
- <p><a class="source-toggle" href="#"
327
- onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
328
- <div class="method-source-code" id="M000007-source">
329
- <pre>
330
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 54</span>
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>)
332
- 55: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">l10n_translator</span>.<span class="ruby-identifier">gets</span>(<span class="ruby-identifier">view_sym</span>.<span class="ruby-identifier">to_sym</span>, <span class="ruby-identifier">key</span>, <span class="ruby-identifier">lang</span>)
333
- 56: <span class="ruby-keyword kw">end</span>
334
- </pre>
335
- </div>
336
- </div>
337
- </div>
338
-
339
- <div id="method-M000010" class="method-detail">
340
- <a name="M000010"></a>
341
-
342
- <div class="method-heading">
343
- <a href="#M000010" class="method-signature">
344
- <span class="method-name">l10n_number</span><span class="method-args">(num, lang = session[:lang] || :en)</span>
345
- </a>
346
- </div>
347
-
348
- <div class="method-description">
349
- <p>
350
- View helper method to format the number based on the given language code
351
- </p>
352
- <p>
353
- params:
354
- </p>
355
- <pre>
356
- num - the number to be formatted
357
- lang - language code
358
- </pre>
359
- <p>
360
- See:
361
- </p>
362
- <pre>
363
- Mack::Localization::Formatter.number_format
364
- </pre>
365
- <p>
366
- Example:
367
- </p>
368
- <pre>
369
- l10n_number(10000, :en) produces &quot;10,000.00&quot;
370
- </pre>
371
- <p>
372
- Returns:
373
- </p>
374
- <pre>
375
- the multibyte version of the formatted number
376
- </pre>
377
- <p><a class="source-toggle" href="#"
378
- onclick="toggleCode('M000010-source');return false;">[Source]</a></p>
379
- <div class="method-source-code" id="M000010-source">
380
- <pre>
381
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 115</span>
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>)
383
- 116: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">l10n_formatter</span>.<span class="ruby-identifier">number_format</span>(<span class="ruby-identifier">num</span>, <span class="ruby-identifier">lang</span>)
384
- 117: <span class="ruby-keyword kw">end</span>
385
- </pre>
386
- </div>
387
- </div>
388
- </div>
389
-
390
-
391
- </div>
392
-
393
-
394
- </div>
395
-
396
-
397
- <div id="validator-badges">
398
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
399
- </div>
400
-
401
- </body>
402
- </html>
@@ -1,278 +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::ViewHelpers::L10NHelpers::Context</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::ViewHelpers::L10NHelpers::Context</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../../../files/lib/mack-localization/helpers/view_helpers/l10n_helpers_rb.html">
59
- lib/mack-localization/helpers/view_helpers/l10n_helpers.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="../../../Object.html">
69
- Object
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="#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
- </div>
98
- </div>
99
-
100
- </div>
101
-
102
-
103
- <!-- if includes -->
104
- <div id="includes">
105
- <h3 class="section-bar">Included Modules</h3>
106
-
107
- <div id="includes-list">
108
- <span class="include-name"><a href="../L10NHelpers.html">Mack::ViewHelpers::L10NHelpers</a></span>
109
- </div>
110
- </div>
111
-
112
- <div id="section">
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
- <!-- if method_list -->
122
- <div id="methods">
123
- <h3 class="section-bar">Public Class methods</h3>
124
-
125
- <div id="method-M000012" class="method-detail">
126
- <a name="M000012"></a>
127
-
128
- <div class="method-heading">
129
- <a href="#M000012" class="method-signature">
130
- <span class="method-name">new</span><span class="method-args">(view_sym, lang)</span>
131
- </a>
132
- </div>
133
-
134
- <div class="method-description">
135
- <p><a class="source-toggle" href="#"
136
- onclick="toggleCode('M000012-source');return false;">[Source]</a></p>
137
- <div class="method-source-code" id="M000012-source">
138
- <pre>
139
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 8</span>
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>)
141
- 9: <span class="ruby-ivar">@view_sym</span> = <span class="ruby-identifier">view_sym</span>
142
- 10: <span class="ruby-ivar">@lang</span> = <span class="ruby-identifier">lang</span>
143
- 11: <span class="ruby-keyword kw">end</span>
144
- </pre>
145
- </div>
146
- </div>
147
- </div>
148
-
149
- <h3 class="section-bar">Public Instance methods</h3>
150
-
151
- <div id="method-M000017" class="method-detail">
152
- <a name="M000017"></a>
153
-
154
- <div class="method-heading">
155
- <a href="#M000017" class="method-signature">
156
- <span class="method-name">currency</span><span class="method-args">(amount)</span>
157
- </a>
158
- </div>
159
-
160
- <div class="method-description">
161
- <p><a class="source-toggle" href="#"
162
- onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
163
- <div class="method-source-code" id="M000017-source">
164
- <pre>
165
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 29</span>
166
- 29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">currency</span>(<span class="ruby-identifier">amount</span>)
167
- 30: <span class="ruby-identifier">l10n_currency</span>(<span class="ruby-identifier">amount</span>, <span class="ruby-ivar">@lang</span>)
168
- 31: <span class="ruby-keyword kw">end</span>
169
- </pre>
170
- </div>
171
- </div>
172
- </div>
173
-
174
- <div id="method-M000015" class="method-detail">
175
- <a name="M000015"></a>
176
-
177
- <div class="method-heading">
178
- <a href="#M000015" class="method-signature">
179
- <span class="method-name">date</span><span class="method-args">(time, type)</span>
180
- </a>
181
- </div>
182
-
183
- <div class="method-description">
184
- <p><a class="source-toggle" href="#"
185
- onclick="toggleCode('M000015-source');return false;">[Source]</a></p>
186
- <div class="method-source-code" id="M000015-source">
187
- <pre>
188
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 21</span>
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>)
190
- 22: <span class="ruby-identifier">l10n_date</span>(<span class="ruby-identifier">time</span>, <span class="ruby-identifier">type</span>, <span class="ruby-ivar">@lang</span>)
191
- 23: <span class="ruby-keyword kw">end</span>
192
- </pre>
193
- </div>
194
- </div>
195
- </div>
196
-
197
- <div id="method-M000014" class="method-detail">
198
- <a name="M000014"></a>
199
-
200
- <div class="method-heading">
201
- <a href="#M000014" class="method-signature">
202
- <span class="method-name">getimg</span><span class="method-args">(key)</span>
203
- </a>
204
- </div>
205
-
206
- <div class="method-description">
207
- <p><a class="source-toggle" href="#"
208
- onclick="toggleCode('M000014-source');return false;">[Source]</a></p>
209
- <div class="method-source-code" id="M000014-source">
210
- <pre>
211
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 17</span>
212
- 17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getimg</span>(<span class="ruby-identifier">key</span>)
213
- 18: <span class="ruby-identifier">l10n_getimg</span>(<span class="ruby-identifier">key</span>, <span class="ruby-ivar">@view_sym</span>, <span class="ruby-ivar">@lang</span>)
214
- 19: <span class="ruby-keyword kw">end</span>
215
- </pre>
216
- </div>
217
- </div>
218
- </div>
219
-
220
- <div id="method-M000013" class="method-detail">
221
- <a name="M000013"></a>
222
-
223
- <div class="method-heading">
224
- <a href="#M000013" class="method-signature">
225
- <span class="method-name">gets</span><span class="method-args">(key)</span>
226
- </a>
227
- </div>
228
-
229
- <div class="method-description">
230
- <p><a class="source-toggle" href="#"
231
- onclick="toggleCode('M000013-source');return false;">[Source]</a></p>
232
- <div class="method-source-code" id="M000013-source">
233
- <pre>
234
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 13</span>
235
- 13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gets</span>(<span class="ruby-identifier">key</span>)
236
- 14: <span class="ruby-identifier">l10n_gets</span>(<span class="ruby-identifier">key</span>, <span class="ruby-ivar">@view_sym</span>, <span class="ruby-ivar">@lang</span>)
237
- 15: <span class="ruby-keyword kw">end</span>
238
- </pre>
239
- </div>
240
- </div>
241
- </div>
242
-
243
- <div id="method-M000016" class="method-detail">
244
- <a name="M000016"></a>
245
-
246
- <div class="method-heading">
247
- <a href="#M000016" class="method-signature">
248
- <span class="method-name">number</span><span class="method-args">(num)</span>
249
- </a>
250
- </div>
251
-
252
- <div class="method-description">
253
- <p><a class="source-toggle" href="#"
254
- onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
255
- <div class="method-source-code" id="M000016-source">
256
- <pre>
257
- <span class="ruby-comment cmt"># File lib/mack-localization/helpers/view_helpers/l10n_helpers.rb, line 25</span>
258
- 25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">number</span>(<span class="ruby-identifier">num</span>)
259
- 26: <span class="ruby-identifier">l10n_number</span>(<span class="ruby-identifier">num</span>, <span class="ruby-ivar">@lang</span>)
260
- 27: <span class="ruby-keyword kw">end</span>
261
- </pre>
262
- </div>
263
- </div>
264
- </div>
265
-
266
-
267
- </div>
268
-
269
-
270
- </div>
271
-
272
-
273
- <div id="validator-badges">
274
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
275
- </div>
276
-
277
- </body>
278
- </html>