mack-localization 0.6.0 → 0.6.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/doc/classes/Mack.html +194 -0
  2. data/doc/classes/Mack/Localization/Configuration.html +118 -0
  3. data/doc/classes/Mack/Localization/ContentCache.html +111 -0
  4. data/doc/classes/Mack/Localization/DateFormatEngine/BP.html +217 -0
  5. data/doc/classes/Mack/Localization/DateFormatEngine/Base.html +237 -0
  6. data/doc/classes/Mack/Localization/DateFormatEngine/DE.html +217 -0
  7. data/doc/classes/Mack/Localization/DateFormatEngine/EN.html +218 -0
  8. data/doc/classes/Mack/Localization/DateFormatEngine/ES.html +217 -0
  9. data/doc/classes/Mack/Localization/DateFormatEngine/FR.html +217 -0
  10. data/doc/classes/Mack/Localization/DateFormatEngine/IT.html +217 -0
  11. data/doc/classes/Mack/Localization/Errors/FormatEngineNotFound.html +153 -0
  12. data/doc/classes/Mack/Localization/Errors/InvalidArgument.html +146 -0
  13. data/doc/classes/Mack/Localization/Errors/InvalidConfiguration.html +117 -0
  14. data/doc/classes/Mack/Localization/Errors/InvalidMethodName.html +153 -0
  15. data/doc/classes/Mack/Localization/Errors/LanguageFileNotFound.html +117 -0
  16. data/doc/classes/Mack/Localization/Errors/UnknownStringKey.html +153 -0
  17. data/doc/classes/Mack/Localization/Errors/UnsupportedEncoding.html +153 -0
  18. data/doc/classes/Mack/Localization/Errors/UnsupportedFeature.html +152 -0
  19. data/doc/classes/Mack/Localization/Errors/UnsupportedLanguage.html +153 -0
  20. data/doc/classes/Mack/Localization/FormatEngineRegistry.html +245 -0
  21. data/doc/classes/Mack/Localization/Formatter.html +392 -0
  22. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/BP.html +196 -0
  23. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/Base.html +250 -0
  24. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/DE.html +196 -0
  25. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/EN.html +196 -0
  26. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/ES.html +196 -0
  27. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/FR.html +196 -0
  28. data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/IT.html +196 -0
  29. data/doc/classes/Mack/Localization/Translator.html +275 -0
  30. data/doc/classes/Mack/ViewHelpers/L10NHelpers.html +402 -0
  31. data/doc/classes/Mack/ViewHelpers/L10NHelpers/Context.html +278 -0
  32. data/doc/classes/Object.html +236 -0
  33. data/doc/created.rid +1 -0
  34. data/doc/files/README.html +107 -0
  35. data/doc/files/lib/localization/configuration_rb.html +110 -0
  36. data/doc/files/lib/localization/content_cache_rb.html +101 -0
  37. data/doc/files/lib/localization/errors_rb.html +101 -0
  38. data/doc/files/lib/localization/format_engine/df_engines/base_rb.html +101 -0
  39. data/doc/files/lib/localization/format_engine/df_engines/bp_rb.html +101 -0
  40. data/doc/files/lib/localization/format_engine/df_engines/de_rb.html +101 -0
  41. data/doc/files/lib/localization/format_engine/df_engines/en_rb.html +101 -0
  42. data/doc/files/lib/localization/format_engine/df_engines/es_rb.html +101 -0
  43. data/doc/files/lib/localization/format_engine/df_engines/fr_rb.html +101 -0
  44. data/doc/files/lib/localization/format_engine/df_engines/it_rb.html +101 -0
  45. data/doc/files/lib/localization/format_engine/engine_registry_rb.html +101 -0
  46. data/doc/files/lib/localization/format_engine/nc_engines/base_rb.html +101 -0
  47. data/doc/files/lib/localization/format_engine/nc_engines/bp_rb.html +101 -0
  48. data/doc/files/lib/localization/format_engine/nc_engines/de_rb.html +101 -0
  49. data/doc/files/lib/localization/format_engine/nc_engines/en_rb.html +101 -0
  50. data/doc/files/lib/localization/format_engine/nc_engines/es_rb.html +101 -0
  51. data/doc/files/lib/localization/format_engine/nc_engines/fr_rb.html +101 -0
  52. data/doc/files/lib/localization/format_engine/nc_engines/it_rb.html +101 -0
  53. data/doc/files/lib/localization/formatter_rb.html +101 -0
  54. data/doc/files/lib/localization/helpers/view_helpers/l10n_helpers_rb.html +101 -0
  55. data/doc/files/lib/localization/translator_rb.html +101 -0
  56. data/doc/files/lib/mack-localization_rb.html +109 -0
  57. data/doc/fr_class_index.html +58 -0
  58. data/doc/fr_file_index.html +49 -0
  59. data/doc/fr_method_index.html +107 -0
  60. data/doc/index.html +24 -0
  61. data/doc/rdoc-style.css +208 -0
  62. metadata +65 -12
@@ -0,0 +1,236 @@
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: Object</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">Object</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../files/lib/localization/configuration_rb.html">
59
+ lib/localization/configuration.rb
60
+ </a>
61
+ <br />
62
+ <a href="../files/lib/localization/content_cache_rb.html">
63
+ lib/localization/content_cache.rb
64
+ </a>
65
+ <br />
66
+ <a href="../files/lib/localization/formatter_rb.html">
67
+ lib/localization/formatter.rb
68
+ </a>
69
+ <br />
70
+ <a href="../files/lib/localization/translator_rb.html">
71
+ lib/localization/translator.rb
72
+ </a>
73
+ <br />
74
+ </td>
75
+ </tr>
76
+
77
+ <tr class="top-aligned-row">
78
+ <td><strong>Parent:</strong></td>
79
+ <td>
80
+ <a href="Object.html">
81
+ Object
82
+ </a>
83
+ </td>
84
+ </tr>
85
+ </table>
86
+ </div>
87
+ <!-- banner header -->
88
+
89
+ <div id="bodyContent">
90
+
91
+
92
+
93
+ <div id="contextContent">
94
+
95
+
96
+
97
+ </div>
98
+
99
+ <div id="method-list">
100
+ <h3 class="section-bar">Methods</h3>
101
+
102
+ <div class="name-list">
103
+ <a href="#M000002">l10n_cache</a>&nbsp;&nbsp;
104
+ <a href="#M000001">l10n_config</a>&nbsp;&nbsp;
105
+ <a href="#M000003">l10n_formatter</a>&nbsp;&nbsp;
106
+ <a href="#M000004">l10n_translator</a>&nbsp;&nbsp;
107
+ </div>
108
+ </div>
109
+
110
+ </div>
111
+
112
+
113
+ <!-- if includes -->
114
+
115
+ <div id="section">
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+ <!-- if method_list -->
125
+ <div id="methods">
126
+ <h3 class="section-bar">Public Instance methods</h3>
127
+
128
+ <div id="method-M000002" class="method-detail">
129
+ <a name="M000002"></a>
130
+
131
+ <div class="method-heading">
132
+ <a href="#M000002" class="method-signature">
133
+ <span class="method-name">l10n_cache</span><span class="method-args">()</span>
134
+ </a>
135
+ </div>
136
+
137
+ <div class="method-description">
138
+ <p><a class="source-toggle" href="#"
139
+ onclick="toggleCode('M000002-source');return false;">[Source]</a></p>
140
+ <div class="method-source-code" id="M000002-source">
141
+ <pre>
142
+ <span class="ruby-comment cmt"># File lib/localization/content_cache.rb, line 9</span>
143
+ 9: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">l10n_cache</span>
144
+ 10: <span class="ruby-constant">Mack</span><span class="ruby-operator">::</span><span class="ruby-constant">Localization</span><span class="ruby-operator">::</span><span class="ruby-constant">ContentCache</span>
145
+ 11: <span class="ruby-keyword kw">end</span>
146
+ </pre>
147
+ </div>
148
+ </div>
149
+ </div>
150
+
151
+ <div id="method-M000001" class="method-detail">
152
+ <a name="M000001"></a>
153
+
154
+ <div class="method-heading">
155
+ <a href="#M000001" class="method-signature">
156
+ <span class="method-name">l10n_config</span><span class="method-args">()</span>
157
+ </a>
158
+ </div>
159
+
160
+ <div class="method-description">
161
+ <p>
162
+ Give access to the mack l10n config object from anywhere inside the
163
+ application
164
+ </p>
165
+ <p><a class="source-toggle" href="#"
166
+ onclick="toggleCode('M000001-source');return false;">[Source]</a></p>
167
+ <div class="method-source-code" id="M000001-source">
168
+ <pre>
169
+ <span class="ruby-comment cmt"># File lib/localization/configuration.rb, line 37</span>
170
+ 37: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">l10n_config</span>
171
+ 38: <span class="ruby-identifier">app_config</span>
172
+ 39: <span class="ruby-keyword kw">end</span>
173
+ </pre>
174
+ </div>
175
+ </div>
176
+ </div>
177
+
178
+ <div id="method-M000003" class="method-detail">
179
+ <a name="M000003"></a>
180
+
181
+ <div class="method-heading">
182
+ <a href="#M000003" class="method-signature">
183
+ <span class="method-name">l10n_formatter</span><span class="method-args">()</span>
184
+ </a>
185
+ </div>
186
+
187
+ <div class="method-description">
188
+ <p><a class="source-toggle" href="#"
189
+ onclick="toggleCode('M000003-source');return false;">[Source]</a></p>
190
+ <div class="method-source-code" id="M000003-source">
191
+ <pre>
192
+ <span class="ruby-comment cmt"># File lib/localization/formatter.rb, line 115</span>
193
+ 115: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">l10n_formatter</span>
194
+ 116: <span class="ruby-constant">Mack</span><span class="ruby-operator">::</span><span class="ruby-constant">Localization</span><span class="ruby-operator">::</span><span class="ruby-constant">Formatter</span>.<span class="ruby-identifier">instance</span>
195
+ 117: <span class="ruby-keyword kw">end</span>
196
+ </pre>
197
+ </div>
198
+ </div>
199
+ </div>
200
+
201
+ <div id="method-M000004" class="method-detail">
202
+ <a name="M000004"></a>
203
+
204
+ <div class="method-heading">
205
+ <a href="#M000004" class="method-signature">
206
+ <span class="method-name">l10n_translator</span><span class="method-args">()</span>
207
+ </a>
208
+ </div>
209
+
210
+ <div class="method-description">
211
+ <p><a class="source-toggle" href="#"
212
+ onclick="toggleCode('M000004-source');return false;">[Source]</a></p>
213
+ <div class="method-source-code" id="M000004-source">
214
+ <pre>
215
+ <span class="ruby-comment cmt"># File lib/localization/translator.rb, line 105</span>
216
+ 105: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">l10n_translator</span>
217
+ 106: <span class="ruby-constant">Mack</span><span class="ruby-operator">::</span><span class="ruby-constant">Localization</span><span class="ruby-operator">::</span><span class="ruby-constant">Translator</span>.<span class="ruby-identifier">instance</span>
218
+ 107: <span class="ruby-keyword kw">end</span>
219
+ </pre>
220
+ </div>
221
+ </div>
222
+ </div>
223
+
224
+
225
+ </div>
226
+
227
+
228
+ </div>
229
+
230
+
231
+ <div id="validator-badges">
232
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
233
+ </div>
234
+
235
+ </body>
236
+ </html>
data/doc/created.rid ADDED
@@ -0,0 +1 @@
1
+ Fri, 18 Jul 2008 16:09:57 -0400
@@ -0,0 +1,107 @@
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>File: README</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="fileHeader">
50
+ <h1>README</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>README
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Fri Jul 18 16:07:34 -0400 2008</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <p>
73
+ <a href="../classes/Mack.html">Mack</a>-Localization
74
+ </p>
75
+
76
+ </div>
77
+
78
+
79
+ </div>
80
+
81
+
82
+ </div>
83
+
84
+
85
+ <!-- if includes -->
86
+
87
+ <div id="section">
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+ <!-- if method_list -->
97
+
98
+
99
+ </div>
100
+
101
+
102
+ <div id="validator-badges">
103
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
104
+ </div>
105
+
106
+ </body>
107
+ </html>
@@ -0,0 +1,110 @@
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>File: configuration.rb</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="fileHeader">
50
+ <h1>configuration.rb</h1>
51
+ <table class="header-table">
52
+ <tr class="top-aligned-row">
53
+ <td><strong>Path:</strong></td>
54
+ <td>lib/localization/configuration.rb
55
+ </td>
56
+ </tr>
57
+ <tr class="top-aligned-row">
58
+ <td><strong>Last Update:</strong></td>
59
+ <td>Fri Jul 18 16:07:34 -0400 2008</td>
60
+ </tr>
61
+ </table>
62
+ </div>
63
+ <!-- banner header -->
64
+
65
+ <div id="bodyContent">
66
+
67
+
68
+
69
+ <div id="contextContent">
70
+
71
+ <div id="description">
72
+ <p>
73
+ <a href="../../../classes/Mack.html">Mack</a> Localization&#8216;s main
74
+ configuration. When loaded it will try to load localization.yml file from
75
+ {config_dir}/localization/ inside the application directory. If the file
76
+ doesn&#8216;t exist then it will just load default configuration.
77
+ </p>
78
+
79
+ </div>
80
+
81
+
82
+ </div>
83
+
84
+
85
+ </div>
86
+
87
+
88
+ <!-- if includes -->
89
+
90
+ <div id="section">
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ <!-- if method_list -->
100
+
101
+
102
+ </div>
103
+
104
+
105
+ <div id="validator-badges">
106
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
107
+ </div>
108
+
109
+ </body>
110
+ </html>