mack-localization 0.7.0.1 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/classes/Mack/Localization/Configuration.html +1 -1
- data/doc/classes/Mack/Localization/DateFormatEngine/BP.html +18 -18
- data/doc/classes/Mack/Localization/DateFormatEngine/Base.html +24 -24
- data/doc/classes/Mack/Localization/DateFormatEngine/DE.html +18 -18
- data/doc/classes/Mack/Localization/DateFormatEngine/EN.html +18 -18
- data/doc/classes/Mack/Localization/DateFormatEngine/ES.html +18 -18
- data/doc/classes/Mack/Localization/DateFormatEngine/FR.html +18 -18
- data/doc/classes/Mack/Localization/DateFormatEngine/IT.html +18 -18
- data/doc/classes/Mack/Localization/Errors/FormatEngineNotFound.html +6 -6
- data/doc/classes/Mack/Localization/Errors/InvalidArgument.html +6 -6
- data/doc/classes/Mack/Localization/Errors/InvalidMethodName.html +6 -6
- data/doc/classes/Mack/Localization/Errors/LanguageFileNotFound.html +6 -6
- data/doc/classes/Mack/Localization/Errors/UnknownStringKey.html +6 -6
- data/doc/classes/Mack/Localization/Errors/UnsupportedEncoding.html +6 -6
- data/doc/classes/Mack/Localization/Errors/UnsupportedFeature.html +6 -6
- data/doc/classes/Mack/Localization/Errors/UnsupportedLanguage.html +6 -6
- data/doc/classes/Mack/Localization/FormatEngineRegistry.html +18 -18
- data/doc/classes/Mack/Localization/Formatter.html +36 -36
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/BP.html +18 -18
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/Base.html +30 -30
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/DE.html +18 -18
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/EN.html +18 -18
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/ES.html +18 -18
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/FR.html +18 -18
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/IT.html +18 -18
- data/doc/classes/Mack/Localization/Translator.html +24 -24
- data/doc/created.rid +1 -1
- data/doc/files/README.html +1 -1
- data/doc/files/lib/mack-localization/configuration_rb.html +1 -1
- data/doc/files/lib/mack-localization/content_cache_rb.html +1 -1
- data/doc/files/lib/mack-localization/errors_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/df_engines/base_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/df_engines/bp_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/df_engines/de_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/df_engines/en_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/df_engines/es_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/df_engines/fr_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/df_engines/it_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/engine_registry_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/nc_engines/base_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/nc_engines/bp_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/nc_engines/de_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/nc_engines/en_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/nc_engines/es_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/nc_engines/fr_rb.html +1 -1
- data/doc/files/lib/mack-localization/format_engine/nc_engines/it_rb.html +1 -1
- data/doc/files/lib/mack-localization/formatter_rb.html +1 -1
- data/doc/files/lib/mack-localization/helpers/view_helpers/l10n_helpers_rb.html +1 -1
- data/doc/files/lib/mack-localization/translator_rb.html +1 -1
- data/doc/files/lib/mack-localization_rb.html +1 -1
- data/doc/fr_method_index.html +66 -66
- data/lib/mack-localization/configuration.rb +2 -2
- metadata +2 -2
@@ -88,9 +88,9 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
91
|
+
<a href="#M000049">date_format_template</a>
|
92
|
+
<a href="#M000050">days_of_week</a>
|
93
|
+
<a href="#M000051">months</a>
|
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-
|
116
|
-
<a name="
|
115
|
+
<div id="method-M000049" class="method-detail">
|
116
|
+
<a name="M000049"></a>
|
117
117
|
|
118
118
|
<div class="method-heading">
|
119
|
-
<a href="#
|
119
|
+
<a href="#M000049" class="method-signature">
|
120
120
|
<span class="method-name">date_format_template</span><span class="method-args">(type)</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('
|
127
|
-
<div class="method-source-code" id="
|
126
|
+
onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
|
127
|
+
<div class="method-source-code" id="M000049-source">
|
128
128
|
<pre>
|
129
129
|
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/it.rb, line 6</span>
|
130
130
|
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">date_format_template</span>(<span class="ruby-identifier">type</span>)
|
@@ -142,19 +142,19 @@
|
|
142
142
|
</div>
|
143
143
|
</div>
|
144
144
|
|
145
|
-
<div id="method-
|
146
|
-
<a name="
|
145
|
+
<div id="method-M000050" class="method-detail">
|
146
|
+
<a name="M000050"></a>
|
147
147
|
|
148
148
|
<div class="method-heading">
|
149
|
-
<a href="#
|
149
|
+
<a href="#M000050" class="method-signature">
|
150
150
|
<span class="method-name">days_of_week</span><span class="method-args">(type)</span>
|
151
151
|
</a>
|
152
152
|
</div>
|
153
153
|
|
154
154
|
<div class="method-description">
|
155
155
|
<p><a class="source-toggle" href="#"
|
156
|
-
onclick="toggleCode('
|
157
|
-
<div class="method-source-code" id="
|
156
|
+
onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
|
157
|
+
<div class="method-source-code" id="M000050-source">
|
158
158
|
<pre>
|
159
159
|
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/it.rb, line 17</span>
|
160
160
|
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">days_of_week</span>(<span class="ruby-identifier">type</span>)
|
@@ -172,19 +172,19 @@
|
|
172
172
|
</div>
|
173
173
|
</div>
|
174
174
|
|
175
|
-
<div id="method-
|
176
|
-
<a name="
|
175
|
+
<div id="method-M000051" class="method-detail">
|
176
|
+
<a name="M000051"></a>
|
177
177
|
|
178
178
|
<div class="method-heading">
|
179
|
-
<a href="#
|
179
|
+
<a href="#M000051" class="method-signature">
|
180
180
|
<span class="method-name">months</span><span class="method-args">(type)</span>
|
181
181
|
</a>
|
182
182
|
</div>
|
183
183
|
|
184
184
|
<div class="method-description">
|
185
185
|
<p><a class="source-toggle" href="#"
|
186
|
-
onclick="toggleCode('
|
187
|
-
<div class="method-source-code" id="
|
186
|
+
onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
|
187
|
+
<div class="method-source-code" id="M000051-source">
|
188
188
|
<pre>
|
189
189
|
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/df_engines/it.rb, line 28</span>
|
190
190
|
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">months</span>(<span class="ruby-identifier">type</span>)
|
@@ -93,7 +93,7 @@ language
|
|
93
93
|
<h3 class="section-bar">Methods</h3>
|
94
94
|
|
95
95
|
<div class="name-list">
|
96
|
-
<a href="#
|
96
|
+
<a href="#M000024">new</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -115,19 +115,19 @@ language
|
|
115
115
|
<div id="methods">
|
116
116
|
<h3 class="section-bar">Public Class methods</h3>
|
117
117
|
|
118
|
-
<div id="method-
|
119
|
-
<a name="
|
118
|
+
<div id="method-M000024" class="method-detail">
|
119
|
+
<a name="M000024"></a>
|
120
120
|
|
121
121
|
<div class="method-heading">
|
122
|
-
<a href="#
|
122
|
+
<a href="#M000024" class="method-signature">
|
123
123
|
<span class="method-name">new</span><span class="method-args">(lang)</span>
|
124
124
|
</a>
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div class="method-description">
|
128
128
|
<p><a class="source-toggle" href="#"
|
129
|
-
onclick="toggleCode('
|
130
|
-
<div class="method-source-code" id="
|
129
|
+
onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
|
130
|
+
<div class="method-source-code" id="M000024-source">
|
131
131
|
<pre>
|
132
132
|
<span class="ruby-comment cmt"># File lib/mack-localization/errors.rb, line 47</span>
|
133
133
|
47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">lang</span>)
|
@@ -86,7 +86,7 @@
|
|
86
86
|
<h3 class="section-bar">Methods</h3>
|
87
87
|
|
88
88
|
<div class="name-list">
|
89
|
-
<a href="#
|
89
|
+
<a href="#M000018">new</a>
|
90
90
|
</div>
|
91
91
|
</div>
|
92
92
|
|
@@ -108,19 +108,19 @@
|
|
108
108
|
<div id="methods">
|
109
109
|
<h3 class="section-bar">Public Class methods</h3>
|
110
110
|
|
111
|
-
<div id="method-
|
112
|
-
<a name="
|
111
|
+
<div id="method-M000018" class="method-detail">
|
112
|
+
<a name="M000018"></a>
|
113
113
|
|
114
114
|
<div class="method-heading">
|
115
|
-
<a href="#
|
115
|
+
<a href="#M000018" class="method-signature">
|
116
116
|
<span class="method-name">new</span><span class="method-args">(param_name)</span>
|
117
117
|
</a>
|
118
118
|
</div>
|
119
119
|
|
120
120
|
<div class="method-description">
|
121
121
|
<p><a class="source-toggle" href="#"
|
122
|
-
onclick="toggleCode('
|
123
|
-
<div class="method-source-code" id="
|
122
|
+
onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
|
123
|
+
<div class="method-source-code" id="M000018-source">
|
124
124
|
<pre>
|
125
125
|
<span class="ruby-comment cmt"># File lib/mack-localization/errors.rb, line 62</span>
|
126
126
|
62: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">param_name</span>)
|
@@ -93,7 +93,7 @@ Raise this error when the user is calling method that doesn‘t exist
|
|
93
93
|
<h3 class="section-bar">Methods</h3>
|
94
94
|
|
95
95
|
<div class="name-list">
|
96
|
-
<a href="#
|
96
|
+
<a href="#M000022">new</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -115,19 +115,19 @@ Raise this error when the user is calling method that doesn‘t exist
|
|
115
115
|
<div id="methods">
|
116
116
|
<h3 class="section-bar">Public Class methods</h3>
|
117
117
|
|
118
|
-
<div id="method-
|
119
|
-
<a name="
|
118
|
+
<div id="method-M000022" class="method-detail">
|
119
|
+
<a name="M000022"></a>
|
120
120
|
|
121
121
|
<div class="method-heading">
|
122
|
-
<a href="#
|
122
|
+
<a href="#M000022" class="method-signature">
|
123
123
|
<span class="method-name">new</span><span class="method-args">(method_name)</span>
|
124
124
|
</a>
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div class="method-description">
|
128
128
|
<p><a class="source-toggle" href="#"
|
129
|
-
onclick="toggleCode('
|
130
|
-
<div class="method-source-code" id="
|
129
|
+
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
130
|
+
<div class="method-source-code" id="M000022-source">
|
131
131
|
<pre>
|
132
132
|
<span class="ruby-comment cmt"># File lib/mack-localization/errors.rb, line 56</span>
|
133
133
|
56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">method_name</span>)
|
@@ -92,7 +92,7 @@ Raise this error if a language file is missing
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
95
|
+
<a href="#M000020">new</a>
|
96
96
|
</div>
|
97
97
|
</div>
|
98
98
|
|
@@ -114,19 +114,19 @@ Raise this error if a language file is missing
|
|
114
114
|
<div id="methods">
|
115
115
|
<h3 class="section-bar">Public Class methods</h3>
|
116
116
|
|
117
|
-
<div id="method-
|
118
|
-
<a name="
|
117
|
+
<div id="method-M000020" class="method-detail">
|
118
|
+
<a name="M000020"></a>
|
119
119
|
|
120
120
|
<div class="method-heading">
|
121
|
-
<a href="#
|
121
|
+
<a href="#M000020" class="method-signature">
|
122
122
|
<span class="method-name">new</span><span class="method-args">(lang)</span>
|
123
123
|
</a>
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div class="method-description">
|
127
127
|
<p><a class="source-toggle" href="#"
|
128
|
-
onclick="toggleCode('
|
129
|
-
<div class="method-source-code" id="
|
128
|
+
onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
|
129
|
+
<div class="method-source-code" id="M000020-source">
|
130
130
|
<pre>
|
131
131
|
<span class="ruby-comment cmt"># File lib/mack-localization/errors.rb, line 77</span>
|
132
132
|
77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">lang</span>)
|
@@ -93,7 +93,7 @@ key
|
|
93
93
|
<h3 class="section-bar">Methods</h3>
|
94
94
|
|
95
95
|
<div class="name-list">
|
96
|
-
<a href="#
|
96
|
+
<a href="#M000023">new</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -115,19 +115,19 @@ key
|
|
115
115
|
<div id="methods">
|
116
116
|
<h3 class="section-bar">Public Class methods</h3>
|
117
117
|
|
118
|
-
<div id="method-
|
119
|
-
<a name="
|
118
|
+
<div id="method-M000023" class="method-detail">
|
119
|
+
<a name="M000023"></a>
|
120
120
|
|
121
121
|
<div class="method-heading">
|
122
|
-
<a href="#
|
122
|
+
<a href="#M000023" class="method-signature">
|
123
123
|
<span class="method-name">new</span><span class="method-args">(key)</span>
|
124
124
|
</a>
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div class="method-description">
|
128
128
|
<p><a class="source-toggle" href="#"
|
129
|
-
onclick="toggleCode('
|
130
|
-
<div class="method-source-code" id="
|
129
|
+
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
130
|
+
<div class="method-source-code" id="M000023-source">
|
131
131
|
<pre>
|
132
132
|
<span class="ruby-comment cmt"># File lib/mack-localization/errors.rb, line 38</span>
|
133
133
|
38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">key</span>)
|
@@ -93,7 +93,7 @@ feature is not currently supported yet.
|
|
93
93
|
<h3 class="section-bar">Methods</h3>
|
94
94
|
|
95
95
|
<div class="name-list">
|
96
|
-
<a href="#
|
96
|
+
<a href="#M000025">new</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -115,19 +115,19 @@ feature is not currently supported yet.
|
|
115
115
|
<div id="methods">
|
116
116
|
<h3 class="section-bar">Public Class methods</h3>
|
117
117
|
|
118
|
-
<div id="method-
|
119
|
-
<a name="
|
118
|
+
<div id="method-M000025" class="method-detail">
|
119
|
+
<a name="M000025"></a>
|
120
120
|
|
121
121
|
<div class="method-heading">
|
122
|
-
<a href="#
|
122
|
+
<a href="#M000025" class="method-signature">
|
123
123
|
<span class="method-name">new</span><span class="method-args">(encoding)</span>
|
124
124
|
</a>
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div class="method-description">
|
128
128
|
<p><a class="source-toggle" href="#"
|
129
|
-
onclick="toggleCode('
|
130
|
-
<div class="method-source-code" id="
|
129
|
+
onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
|
130
|
+
<div class="method-source-code" id="M000025-source">
|
131
131
|
<pre>
|
132
132
|
<span class="ruby-comment cmt"># File lib/mack-localization/errors.rb, line 20</span>
|
133
133
|
20: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">encoding</span>)
|
@@ -92,7 +92,7 @@ Raise this error if the method called is not yet implemented
|
|
92
92
|
<h3 class="section-bar">Methods</h3>
|
93
93
|
|
94
94
|
<div class="name-list">
|
95
|
-
<a href="#
|
95
|
+
<a href="#M000019">new</a>
|
96
96
|
</div>
|
97
97
|
</div>
|
98
98
|
|
@@ -114,19 +114,19 @@ Raise this error if the method called is not yet implemented
|
|
114
114
|
<div id="methods">
|
115
115
|
<h3 class="section-bar">Public Class methods</h3>
|
116
116
|
|
117
|
-
<div id="method-
|
118
|
-
<a name="
|
117
|
+
<div id="method-M000019" class="method-detail">
|
118
|
+
<a name="M000019"></a>
|
119
119
|
|
120
120
|
<div class="method-heading">
|
121
|
-
<a href="#
|
121
|
+
<a href="#M000019" class="method-signature">
|
122
122
|
<span class="method-name">new</span><span class="method-args">(feature)</span>
|
123
123
|
</a>
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div class="method-description">
|
127
127
|
<p><a class="source-toggle" href="#"
|
128
|
-
onclick="toggleCode('
|
129
|
-
<div class="method-source-code" id="
|
128
|
+
onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
|
129
|
+
<div class="method-source-code" id="M000019-source">
|
130
130
|
<pre>
|
131
131
|
<span class="ruby-comment cmt"># File lib/mack-localization/errors.rb, line 29</span>
|
132
132
|
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">feature</span>)
|
@@ -93,7 +93,7 @@ language is defined in configuration as an array of language codes.
|
|
93
93
|
<h3 class="section-bar">Methods</h3>
|
94
94
|
|
95
95
|
<div class="name-list">
|
96
|
-
<a href="#
|
96
|
+
<a href="#M000021">new</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -115,19 +115,19 @@ language is defined in configuration as an array of language codes.
|
|
115
115
|
<div id="methods">
|
116
116
|
<h3 class="section-bar">Public Class methods</h3>
|
117
117
|
|
118
|
-
<div id="method-
|
119
|
-
<a name="
|
118
|
+
<div id="method-M000021" class="method-detail">
|
119
|
+
<a name="M000021"></a>
|
120
120
|
|
121
121
|
<div class="method-heading">
|
122
|
-
<a href="#
|
122
|
+
<a href="#M000021" class="method-signature">
|
123
123
|
<span class="method-name">new</span><span class="method-args">(lang)</span>
|
124
124
|
</a>
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div class="method-description">
|
128
128
|
<p><a class="source-toggle" href="#"
|
129
|
-
onclick="toggleCode('
|
130
|
-
<div class="method-source-code" id="
|
129
|
+
onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
|
130
|
+
<div class="method-source-code" id="M000021-source">
|
131
131
|
<pre>
|
132
132
|
<span class="ruby-comment cmt"># File lib/mack-localization/errors.rb, line 10</span>
|
133
133
|
10: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">lang</span>)
|
@@ -88,9 +88,9 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
91
|
+
<a href="#M000079">get_engine</a>
|
92
|
+
<a href="#M000077">new</a>
|
93
|
+
<a href="#M000078">register</a>
|
94
94
|
</div>
|
95
95
|
</div>
|
96
96
|
|
@@ -119,19 +119,19 @@
|
|
119
119
|
<div id="methods">
|
120
120
|
<h3 class="section-bar">Public Class methods</h3>
|
121
121
|
|
122
|
-
<div id="method-
|
123
|
-
<a name="
|
122
|
+
<div id="method-M000077" class="method-detail">
|
123
|
+
<a name="M000077"></a>
|
124
124
|
|
125
125
|
<div class="method-heading">
|
126
|
-
<a href="#
|
126
|
+
<a href="#M000077" class="method-signature">
|
127
127
|
<span class="method-name">new</span><span class="method-args">()</span>
|
128
128
|
</a>
|
129
129
|
</div>
|
130
130
|
|
131
131
|
<div class="method-description">
|
132
132
|
<p><a class="source-toggle" href="#"
|
133
|
-
onclick="toggleCode('
|
134
|
-
<div class="method-source-code" id="
|
133
|
+
onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
|
134
|
+
<div class="method-source-code" id="M000077-source">
|
135
135
|
<pre>
|
136
136
|
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/engine_registry.rb, line 6</span>
|
137
137
|
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -148,11 +148,11 @@
|
|
148
148
|
|
149
149
|
<h3 class="section-bar">Public Instance methods</h3>
|
150
150
|
|
151
|
-
<div id="method-
|
152
|
-
<a name="
|
151
|
+
<div id="method-M000079" class="method-detail">
|
152
|
+
<a name="M000079"></a>
|
153
153
|
|
154
154
|
<div class="method-heading">
|
155
|
-
<a href="#
|
155
|
+
<a href="#M000079" class="method-signature">
|
156
156
|
<span class="method-name">get_engine</span><span class="method-args">(lang, type)</span>
|
157
157
|
</a>
|
158
158
|
</div>
|
@@ -173,8 +173,8 @@ returns the registered engine, or nil if no engine is registered for that
|
|
173
173
|
type/lang
|
174
174
|
</p>
|
175
175
|
<p><a class="source-toggle" href="#"
|
176
|
-
onclick="toggleCode('
|
177
|
-
<div class="method-source-code" id="
|
176
|
+
onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
|
177
|
+
<div class="method-source-code" id="M000079-source">
|
178
178
|
<pre>
|
179
179
|
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/engine_registry.rb, line 42</span>
|
180
180
|
42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_engine</span>(<span class="ruby-identifier">lang</span>, <span class="ruby-identifier">type</span>)
|
@@ -189,11 +189,11 @@ type/lang
|
|
189
189
|
</div>
|
190
190
|
</div>
|
191
191
|
|
192
|
-
<div id="method-
|
193
|
-
<a name="
|
192
|
+
<div id="method-M000078" class="method-detail">
|
193
|
+
<a name="M000078"></a>
|
194
194
|
|
195
195
|
<div class="method-heading">
|
196
|
-
<a href="#
|
196
|
+
<a href="#M000078" class="method-signature">
|
197
197
|
<span class="method-name">register</span><span class="method-args">(lang, type, obj, overwrite = false)</span>
|
198
198
|
</a>
|
199
199
|
</div>
|
@@ -211,8 +211,8 @@ params:
|
|
211
211
|
overwrite - whether or not to overwrite the formatter if it's already registered. default == false
|
212
212
|
</pre>
|
213
213
|
<p><a class="source-toggle" href="#"
|
214
|
-
onclick="toggleCode('
|
215
|
-
<div class="method-source-code" id="
|
214
|
+
onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
|
215
|
+
<div class="method-source-code" id="M000078-source">
|
216
216
|
<pre>
|
217
217
|
<span class="ruby-comment cmt"># File lib/mack-localization/format_engine/engine_registry.rb, line 22</span>
|
218
218
|
22: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">register</span>(<span class="ruby-identifier">lang</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">obj</span>, <span class="ruby-identifier">overwrite</span> = <span class="ruby-keyword kw">false</span>)
|
@@ -88,12 +88,12 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
91
|
+
<a href="#M000074">currency_format</a>
|
92
|
+
<a href="#M000076">currency_format_registry_key</a>
|
93
|
+
<a href="#M000072">date_format</a>
|
94
|
+
<a href="#M000075">date_format_registry_key</a>
|
95
|
+
<a href="#M000071">new</a>
|
96
|
+
<a href="#M000073">number_format</a>
|
97
97
|
</div>
|
98
98
|
</div>
|
99
99
|
|
@@ -122,11 +122,11 @@
|
|
122
122
|
<div id="methods">
|
123
123
|
<h3 class="section-bar">Public Class methods</h3>
|
124
124
|
|
125
|
-
<div id="method-
|
126
|
-
<a name="
|
125
|
+
<div id="method-M000071" class="method-detail">
|
126
|
+
<a name="M000071"></a>
|
127
127
|
|
128
128
|
<div class="method-heading">
|
129
|
-
<a href="#
|
129
|
+
<a href="#M000071" class="method-signature">
|
130
130
|
<span class="method-name">new</span><span class="method-args">()</span>
|
131
131
|
</a>
|
132
132
|
</div>
|
@@ -137,8 +137,8 @@ Initialize the formatter object. Out of the box it will register 5 language
|
|
137
137
|
supports for both the date and currency format
|
138
138
|
</p>
|
139
139
|
<p><a class="source-toggle" href="#"
|
140
|
-
onclick="toggleCode('
|
141
|
-
<div class="method-source-code" id="
|
140
|
+
onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
|
141
|
+
<div class="method-source-code" id="M000071-source">
|
142
142
|
<pre>
|
143
143
|
<span class="ruby-comment cmt"># File lib/mack-localization/formatter.rb, line 12</span>
|
144
144
|
12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
|
@@ -161,11 +161,11 @@ supports for both the date and currency format
|
|
161
161
|
|
162
162
|
<h3 class="section-bar">Public Instance methods</h3>
|
163
163
|
|
164
|
-
<div id="method-
|
165
|
-
<a name="
|
164
|
+
<div id="method-M000074" class="method-detail">
|
165
|
+
<a name="M000074"></a>
|
166
166
|
|
167
167
|
<div class="method-heading">
|
168
|
-
<a href="#
|
168
|
+
<a href="#M000074" class="method-signature">
|
169
169
|
<span class="method-name">currency_format</span><span class="method-args">(num, lang)</span>
|
170
170
|
</a>
|
171
171
|
</div>
|
@@ -200,8 +200,8 @@ examples:
|
|
200
200
|
currency_format(10000.00, :en) will produce "$10,000.00"
|
201
201
|
</pre>
|
202
202
|
<p><a class="source-toggle" href="#"
|
203
|
-
onclick="toggleCode('
|
204
|
-
<div class="method-source-code" id="
|
203
|
+
onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
|
204
|
+
<div class="method-source-code" id="M000074-source">
|
205
205
|
<pre>
|
206
206
|
<span class="ruby-comment cmt"># File lib/mack-localization/formatter.rb, line 91</span>
|
207
207
|
91: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">currency_format</span>(<span class="ruby-identifier">num</span>, <span class="ruby-identifier">lang</span>)
|
@@ -214,11 +214,11 @@ examples:
|
|
214
214
|
</div>
|
215
215
|
</div>
|
216
216
|
|
217
|
-
<div id="method-
|
218
|
-
<a name="
|
217
|
+
<div id="method-M000076" class="method-detail">
|
218
|
+
<a name="M000076"></a>
|
219
219
|
|
220
220
|
<div class="method-heading">
|
221
|
-
<a href="#
|
221
|
+
<a href="#M000076" class="method-signature">
|
222
222
|
<span class="method-name">currency_format_registry_key</span><span class="method-args">()</span>
|
223
223
|
</a>
|
224
224
|
</div>
|
@@ -228,8 +228,8 @@ examples:
|
|
228
228
|
Return the registry key for currency formatter
|
229
229
|
</p>
|
230
230
|
<p><a class="source-toggle" href="#"
|
231
|
-
onclick="toggleCode('
|
232
|
-
<div class="method-source-code" id="
|
231
|
+
onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
|
232
|
+
<div class="method-source-code" id="M000076-source">
|
233
233
|
<pre>
|
234
234
|
<span class="ruby-comment cmt"># File lib/mack-localization/formatter.rb, line 107</span>
|
235
235
|
107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">currency_format_registry_key</span>
|
@@ -240,11 +240,11 @@ Return the registry key for currency formatter
|
|
240
240
|
</div>
|
241
241
|
</div>
|
242
242
|
|
243
|
-
<div id="method-
|
244
|
-
<a name="
|
243
|
+
<div id="method-M000072" class="method-detail">
|
244
|
+
<a name="M000072"></a>
|
245
245
|
|
246
246
|
<div class="method-heading">
|
247
|
-
<a href="#
|
247
|
+
<a href="#M000072" class="method-signature">
|
248
248
|
<span class="method-name">date_format</span><span class="method-args">(time, type, lang)</span>
|
249
249
|
</a>
|
250
250
|
</div>
|
@@ -284,8 +284,8 @@ examples:
|
|
284
284
|
date_format(time, :long, :en) will produce "Tuesday, December 01, 2008"
|
285
285
|
</pre>
|
286
286
|
<p><a class="source-toggle" href="#"
|
287
|
-
onclick="toggleCode('
|
288
|
-
<div class="method-source-code" id="
|
287
|
+
onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
|
288
|
+
<div class="method-source-code" id="M000072-source">
|
289
289
|
<pre>
|
290
290
|
<span class="ruby-comment cmt"># File lib/mack-localization/formatter.rb, line 47</span>
|
291
291
|
47: <span class="ruby-keyword kw">def</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>)
|
@@ -298,11 +298,11 @@ examples:
|
|
298
298
|
</div>
|
299
299
|
</div>
|
300
300
|
|
301
|
-
<div id="method-
|
302
|
-
<a name="
|
301
|
+
<div id="method-M000075" class="method-detail">
|
302
|
+
<a name="M000075"></a>
|
303
303
|
|
304
304
|
<div class="method-heading">
|
305
|
-
<a href="#
|
305
|
+
<a href="#M000075" class="method-signature">
|
306
306
|
<span class="method-name">date_format_registry_key</span><span class="method-args">()</span>
|
307
307
|
</a>
|
308
308
|
</div>
|
@@ -312,8 +312,8 @@ examples:
|
|
312
312
|
Return the registry key for date formatter
|
313
313
|
</p>
|
314
314
|
<p><a class="source-toggle" href="#"
|
315
|
-
onclick="toggleCode('
|
316
|
-
<div class="method-source-code" id="
|
315
|
+
onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
|
316
|
+
<div class="method-source-code" id="M000075-source">
|
317
317
|
<pre>
|
318
318
|
<span class="ruby-comment cmt"># File lib/mack-localization/formatter.rb, line 100</span>
|
319
319
|
100: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">date_format_registry_key</span>
|
@@ -324,11 +324,11 @@ Return the registry key for date formatter
|
|
324
324
|
</div>
|
325
325
|
</div>
|
326
326
|
|
327
|
-
<div id="method-
|
328
|
-
<a name="
|
327
|
+
<div id="method-M000073" class="method-detail">
|
328
|
+
<a name="M000073"></a>
|
329
329
|
|
330
330
|
<div class="method-heading">
|
331
|
-
<a href="#
|
331
|
+
<a href="#M000073" class="method-signature">
|
332
332
|
<span class="method-name">number_format</span><span class="method-args">(num, lang)</span>
|
333
333
|
</a>
|
334
334
|
</div>
|
@@ -363,8 +363,8 @@ examples:
|
|
363
363
|
number_format(10000.00, :en) will produce "10,000.00"
|
364
364
|
</pre>
|
365
365
|
<p><a class="source-toggle" href="#"
|
366
|
-
onclick="toggleCode('
|
367
|
-
<div class="method-source-code" id="
|
366
|
+
onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
|
367
|
+
<div class="method-source-code" id="M000073-source">
|
368
368
|
<pre>
|
369
369
|
<span class="ruby-comment cmt"># File lib/mack-localization/formatter.rb, line 69</span>
|
370
370
|
69: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">number_format</span>(<span class="ruby-identifier">num</span>, <span class="ruby-identifier">lang</span>)
|