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,196 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Mack::Localization::NumberAndCurrencyFormatEngine::IT</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Mack::Localization::NumberAndCurrencyFormatEngine::IT</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../../files/lib/localization/format_engine/nc_engines/it_rb.html">
59
+ lib/localization/format_engine/nc_engines/it.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ <a href="Base.html">
69
+ Base
70
+ </a>
71
+ </td>
72
+ </tr>
73
+ </table>
74
+ </div>
75
+ <!-- banner header -->
76
+
77
+ <div id="bodyContent">
78
+
79
+
80
+
81
+ <div id="contextContent">
82
+
83
+
84
+
85
+ </div>
86
+
87
+ <div id="method-list">
88
+ <h3 class="section-bar">Methods</h3>
89
+
90
+ <div class="name-list">
91
+ <a href="#M000046">delimiter</a>&nbsp;&nbsp;
92
+ <a href="#M000048">separator</a>&nbsp;&nbsp;
93
+ <a href="#M000047">unit</a>&nbsp;&nbsp;
94
+ </div>
95
+ </div>
96
+
97
+ </div>
98
+
99
+
100
+ <!-- if includes -->
101
+
102
+ <div id="section">
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+ <!-- if method_list -->
112
+ <div id="methods">
113
+ <h3 class="section-bar">Public Instance methods</h3>
114
+
115
+ <div id="method-M000046" class="method-detail">
116
+ <a name="M000046"></a>
117
+
118
+ <div class="method-heading">
119
+ <a href="#M000046" class="method-signature">
120
+ <span class="method-name">delimiter</span><span class="method-args">()</span>
121
+ </a>
122
+ </div>
123
+
124
+ <div class="method-description">
125
+ <p><a class="source-toggle" href="#"
126
+ onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
127
+ <div class="method-source-code" id="M000046-source">
128
+ <pre>
129
+ <span class="ruby-comment cmt"># File lib/localization/format_engine/nc_engines/it.rb, line 5</span>
130
+ 5: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delimiter</span>
131
+ 6: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;.&quot;</span>
132
+ 7: <span class="ruby-keyword kw">end</span>
133
+ </pre>
134
+ </div>
135
+ </div>
136
+ </div>
137
+
138
+ <div id="method-M000048" class="method-detail">
139
+ <a name="M000048"></a>
140
+
141
+ <div class="method-heading">
142
+ <a href="#M000048" class="method-signature">
143
+ <span class="method-name">separator</span><span class="method-args">()</span>
144
+ </a>
145
+ </div>
146
+
147
+ <div class="method-description">
148
+ <p><a class="source-toggle" href="#"
149
+ onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
150
+ <div class="method-source-code" id="M000048-source">
151
+ <pre>
152
+ <span class="ruby-comment cmt"># File lib/localization/format_engine/nc_engines/it.rb, line 13</span>
153
+ 13: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">separator</span>
154
+ 14: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;,&quot;</span>
155
+ 15: <span class="ruby-keyword kw">end</span>
156
+ </pre>
157
+ </div>
158
+ </div>
159
+ </div>
160
+
161
+ <div id="method-M000047" class="method-detail">
162
+ <a name="M000047"></a>
163
+
164
+ <div class="method-heading">
165
+ <a href="#M000047" class="method-signature">
166
+ <span class="method-name">unit</span><span class="method-args">()</span>
167
+ </a>
168
+ </div>
169
+
170
+ <div class="method-description">
171
+ <p><a class="source-toggle" href="#"
172
+ onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
173
+ <div class="method-source-code" id="M000047-source">
174
+ <pre>
175
+ <span class="ruby-comment cmt"># File lib/localization/format_engine/nc_engines/it.rb, line 9</span>
176
+ 9: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">unit</span>
177
+ 10: <span class="ruby-keyword kw">return</span> <span class="ruby-value str">&quot;€&quot;</span>
178
+ 11: <span class="ruby-keyword kw">end</span>
179
+ </pre>
180
+ </div>
181
+ </div>
182
+ </div>
183
+
184
+
185
+ </div>
186
+
187
+
188
+ </div>
189
+
190
+
191
+ <div id="validator-badges">
192
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
193
+ </div>
194
+
195
+ </body>
196
+ </html>
@@ -0,0 +1,275 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Mack::Localization::Translator</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Mack::Localization::Translator</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/lib/localization/translator_rb.html">
59
+ lib/localization/translator.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="#M000073">getimg</a>&nbsp;&nbsp;
92
+ <a href="#M000072">gets</a>&nbsp;&nbsp;
93
+ <a href="#M000075">irregular</a>&nbsp;&nbsp;
94
+ <a href="#M000074">pluralize</a>&nbsp;&nbsp;
95
+ </div>
96
+ </div>
97
+
98
+ </div>
99
+
100
+
101
+ <!-- if includes -->
102
+ <div id="includes">
103
+ <h3 class="section-bar">Included Modules</h3>
104
+
105
+ <div id="includes-list">
106
+ <span class="include-name">Singleton</span>
107
+ </div>
108
+ </div>
109
+
110
+ <div id="section">
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+ <!-- if method_list -->
120
+ <div id="methods">
121
+ <h3 class="section-bar">Public Instance methods</h3>
122
+
123
+ <div id="method-M000073" class="method-detail">
124
+ <a name="M000073"></a>
125
+
126
+ <div class="method-heading">
127
+ <a href="#M000073" class="method-signature">
128
+ <span class="method-name">getimg</span><span class="method-args">(view_sym, key, lang)</span>
129
+ </a>
130
+ </div>
131
+
132
+ <div class="method-description">
133
+ <p><a class="source-toggle" href="#"
134
+ onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
135
+ <div class="method-source-code" id="M000073-source">
136
+ <pre>
137
+ <span class="ruby-comment cmt"># File lib/localization/translator.rb, line 41</span>
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>)
139
+ 42: <span class="ruby-identifier">raise</span> <span class="ruby-constant">UnsupportedFeature</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;getimg&quot;</span>)
140
+ 43: <span class="ruby-keyword kw">end</span>
141
+ </pre>
142
+ </div>
143
+ </div>
144
+ </div>
145
+
146
+ <div id="method-M000072" class="method-detail">
147
+ <a name="M000072"></a>
148
+
149
+ <div class="method-heading">
150
+ <a href="#M000072" class="method-signature">
151
+ <span class="method-name">gets</span><span class="method-args">(view_sym, key, lang)</span>
152
+ </a>
153
+ </div>
154
+
155
+ <div class="method-description">
156
+ <p>
157
+ Get the localized string for the specified language using the given key in
158
+ the view_sym namespace. The view symbol is how the system knows where to
159
+ locate the content file. By default the localization of the file is in
160
+ [app_directory]/lang/views/[view_sym]/content_[lang].yml
161
+ </p>
162
+ <p>
163
+ params:
164
+ </p>
165
+ <pre>
166
+ view_sym -- which view is the key located in?
167
+ key -- the lookup key
168
+ lang -- the language
169
+ </pre>
170
+ <p>
171
+ returns:
172
+ </p>
173
+ <pre>
174
+ the multibyte version of the string
175
+ </pre>
176
+ <p>
177
+ raise:
178
+ </p>
179
+ <pre>
180
+ UnsupportedLanguage if the specified language is not defined in the 'supported_languages' array
181
+ UnknownStringKey if the key specified is not defined in the content file
182
+ </pre>
183
+ <p>
184
+ see also:
185
+ </p>
186
+ <pre>
187
+ l10n_gets in view_helpers
188
+ </pre>
189
+ <p><a class="source-toggle" href="#"
190
+ onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
191
+ <div class="method-source-code" id="M000072-source">
192
+ <pre>
193
+ <span class="ruby-comment cmt"># File lib/localization/translator.rb, line 26</span>
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>)
195
+ 27: <span class="ruby-identifier">view_name</span> = <span class="ruby-identifier">view_sym</span>.<span class="ruby-identifier">to_s</span>
196
+ 28: <span class="ruby-identifier">base_lang</span> = <span class="ruby-identifier">l10n_config</span>.<span class="ruby-identifier">base_language</span>
197
+ 29: <span class="ruby-identifier">base_lang</span> = <span class="ruby-identifier">lang</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">lang</span>.<span class="ruby-identifier">nil?</span>
198
+ 30:
199
+ 31: <span class="ruby-identifier">raise</span> <span class="ruby-constant">UnsupportedLanguage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">base_lang</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">l10n_config</span>.<span class="ruby-identifier">supported_languages</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">base_lang</span>)
200
+ 32:
201
+ 33: <span class="ruby-identifier">cache_key</span> = <span class="ruby-node">&quot;#{view_sym}_#{base_lang}_content&quot;</span>
202
+ 34: <span class="ruby-identifier">path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">l10n_config</span>.<span class="ruby-identifier">base_directory</span>, <span class="ruby-value str">&quot;views&quot;</span>, <span class="ruby-node">&quot;#{view_name}&quot;</span>, <span class="ruby-node">&quot;content_#{base_lang}.yml&quot;</span>)
203
+ 35: <span class="ruby-identifier">content_hash</span> = <span class="ruby-identifier">load_content_hash</span>(<span class="ruby-identifier">cache_key</span>, <span class="ruby-identifier">base_lang</span>, <span class="ruby-identifier">path</span>)
204
+ 36:
205
+ 37: <span class="ruby-identifier">raise</span> <span class="ruby-constant">UnknownStringKey</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">key</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">content_hash</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">nil</span>
206
+ 38: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">u</span>(<span class="ruby-identifier">content_hash</span>[<span class="ruby-identifier">key</span>])
207
+ 39: <span class="ruby-keyword kw">end</span>
208
+ </pre>
209
+ </div>
210
+ </div>
211
+ </div>
212
+
213
+ <div id="method-M000075" class="method-detail">
214
+ <a name="M000075"></a>
215
+
216
+ <div class="method-heading">
217
+ <a href="#M000075" class="method-signature">
218
+ <span class="method-name">irregular</span><span class="method-args">(key, lang, num)</span>
219
+ </a>
220
+ </div>
221
+
222
+ <div class="method-description">
223
+ <p><a class="source-toggle" href="#"
224
+ onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
225
+ <div class="method-source-code" id="M000075-source">
226
+ <pre>
227
+ <span class="ruby-comment cmt"># File lib/localization/translator.rb, line 50</span>
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>)
229
+ 51: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">u</span>(<span class="ruby-identifier">inflect</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">lang</span>, <span class="ruby-identifier">num</span>, <span class="ruby-identifier">:irregular</span>))
230
+ 52: <span class="ruby-keyword kw">end</span>
231
+ </pre>
232
+ </div>
233
+ </div>
234
+ </div>
235
+
236
+ <div id="method-M000074" class="method-detail">
237
+ <a name="M000074"></a>
238
+
239
+ <div class="method-heading">
240
+ <a href="#M000074" class="method-signature">
241
+ <span class="method-name">pluralize</span><span class="method-args">(key, lang, num)</span>
242
+ </a>
243
+ </div>
244
+
245
+ <div class="method-description">
246
+ <p>
247
+ REVIEW: inflection&#8230; should localized inflection use the same
248
+ inflection engine as the english counterpart?
249
+ </p>
250
+ <p><a class="source-toggle" href="#"
251
+ onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
252
+ <div class="method-source-code" id="M000074-source">
253
+ <pre>
254
+ <span class="ruby-comment cmt"># File lib/localization/translator.rb, line 46</span>
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>)
256
+ 47: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">u</span>(<span class="ruby-identifier">inflect</span>(<span class="ruby-identifier">key</span>, <span class="ruby-identifier">lang</span>, <span class="ruby-identifier">num</span>, <span class="ruby-identifier">:plural</span>))
257
+ 48: <span class="ruby-keyword kw">end</span>
258
+ </pre>
259
+ </div>
260
+ </div>
261
+ </div>
262
+
263
+
264
+ </div>
265
+
266
+
267
+ </div>
268
+
269
+
270
+ <div id="validator-badges">
271
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
272
+ </div>
273
+
274
+ </body>
275
+ </html>