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.
- data/doc/classes/Mack.html +194 -0
- data/doc/classes/Mack/Localization/Configuration.html +118 -0
- data/doc/classes/Mack/Localization/ContentCache.html +111 -0
- data/doc/classes/Mack/Localization/DateFormatEngine/BP.html +217 -0
- data/doc/classes/Mack/Localization/DateFormatEngine/Base.html +237 -0
- data/doc/classes/Mack/Localization/DateFormatEngine/DE.html +217 -0
- data/doc/classes/Mack/Localization/DateFormatEngine/EN.html +218 -0
- data/doc/classes/Mack/Localization/DateFormatEngine/ES.html +217 -0
- data/doc/classes/Mack/Localization/DateFormatEngine/FR.html +217 -0
- data/doc/classes/Mack/Localization/DateFormatEngine/IT.html +217 -0
- data/doc/classes/Mack/Localization/Errors/FormatEngineNotFound.html +153 -0
- data/doc/classes/Mack/Localization/Errors/InvalidArgument.html +146 -0
- data/doc/classes/Mack/Localization/Errors/InvalidConfiguration.html +117 -0
- data/doc/classes/Mack/Localization/Errors/InvalidMethodName.html +153 -0
- data/doc/classes/Mack/Localization/Errors/LanguageFileNotFound.html +117 -0
- data/doc/classes/Mack/Localization/Errors/UnknownStringKey.html +153 -0
- data/doc/classes/Mack/Localization/Errors/UnsupportedEncoding.html +153 -0
- data/doc/classes/Mack/Localization/Errors/UnsupportedFeature.html +152 -0
- data/doc/classes/Mack/Localization/Errors/UnsupportedLanguage.html +153 -0
- data/doc/classes/Mack/Localization/FormatEngineRegistry.html +245 -0
- data/doc/classes/Mack/Localization/Formatter.html +392 -0
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/BP.html +196 -0
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/Base.html +250 -0
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/DE.html +196 -0
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/EN.html +196 -0
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/ES.html +196 -0
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/FR.html +196 -0
- data/doc/classes/Mack/Localization/NumberAndCurrencyFormatEngine/IT.html +196 -0
- data/doc/classes/Mack/Localization/Translator.html +275 -0
- data/doc/classes/Mack/ViewHelpers/L10NHelpers.html +402 -0
- data/doc/classes/Mack/ViewHelpers/L10NHelpers/Context.html +278 -0
- data/doc/classes/Object.html +236 -0
- data/doc/created.rid +1 -0
- data/doc/files/README.html +107 -0
- data/doc/files/lib/localization/configuration_rb.html +110 -0
- data/doc/files/lib/localization/content_cache_rb.html +101 -0
- data/doc/files/lib/localization/errors_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/df_engines/base_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/df_engines/bp_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/df_engines/de_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/df_engines/en_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/df_engines/es_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/df_engines/fr_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/df_engines/it_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/engine_registry_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/nc_engines/base_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/nc_engines/bp_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/nc_engines/de_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/nc_engines/en_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/nc_engines/es_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/nc_engines/fr_rb.html +101 -0
- data/doc/files/lib/localization/format_engine/nc_engines/it_rb.html +101 -0
- data/doc/files/lib/localization/formatter_rb.html +101 -0
- data/doc/files/lib/localization/helpers/view_helpers/l10n_helpers_rb.html +101 -0
- data/doc/files/lib/localization/translator_rb.html +101 -0
- data/doc/files/lib/mack-localization_rb.html +109 -0
- data/doc/fr_class_index.html +58 -0
- data/doc/fr_file_index.html +49 -0
- data/doc/fr_method_index.html +107 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- metadata +65 -12
@@ -0,0 +1,194 @@
|
|
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</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</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/errors_rb.html">
|
67
|
+
lib/localization/errors.rb
|
68
|
+
</a>
|
69
|
+
<br />
|
70
|
+
<a href="../files/lib/localization/format_engine/df_engines/base_rb.html">
|
71
|
+
lib/localization/format_engine/df_engines/base.rb
|
72
|
+
</a>
|
73
|
+
<br />
|
74
|
+
<a href="../files/lib/localization/format_engine/df_engines/bp_rb.html">
|
75
|
+
lib/localization/format_engine/df_engines/bp.rb
|
76
|
+
</a>
|
77
|
+
<br />
|
78
|
+
<a href="../files/lib/localization/format_engine/df_engines/de_rb.html">
|
79
|
+
lib/localization/format_engine/df_engines/de.rb
|
80
|
+
</a>
|
81
|
+
<br />
|
82
|
+
<a href="../files/lib/localization/format_engine/df_engines/en_rb.html">
|
83
|
+
lib/localization/format_engine/df_engines/en.rb
|
84
|
+
</a>
|
85
|
+
<br />
|
86
|
+
<a href="../files/lib/localization/format_engine/df_engines/es_rb.html">
|
87
|
+
lib/localization/format_engine/df_engines/es.rb
|
88
|
+
</a>
|
89
|
+
<br />
|
90
|
+
<a href="../files/lib/localization/format_engine/df_engines/fr_rb.html">
|
91
|
+
lib/localization/format_engine/df_engines/fr.rb
|
92
|
+
</a>
|
93
|
+
<br />
|
94
|
+
<a href="../files/lib/localization/format_engine/df_engines/it_rb.html">
|
95
|
+
lib/localization/format_engine/df_engines/it.rb
|
96
|
+
</a>
|
97
|
+
<br />
|
98
|
+
<a href="../files/lib/localization/format_engine/engine_registry_rb.html">
|
99
|
+
lib/localization/format_engine/engine_registry.rb
|
100
|
+
</a>
|
101
|
+
<br />
|
102
|
+
<a href="../files/lib/localization/format_engine/nc_engines/base_rb.html">
|
103
|
+
lib/localization/format_engine/nc_engines/base.rb
|
104
|
+
</a>
|
105
|
+
<br />
|
106
|
+
<a href="../files/lib/localization/format_engine/nc_engines/bp_rb.html">
|
107
|
+
lib/localization/format_engine/nc_engines/bp.rb
|
108
|
+
</a>
|
109
|
+
<br />
|
110
|
+
<a href="../files/lib/localization/format_engine/nc_engines/de_rb.html">
|
111
|
+
lib/localization/format_engine/nc_engines/de.rb
|
112
|
+
</a>
|
113
|
+
<br />
|
114
|
+
<a href="../files/lib/localization/format_engine/nc_engines/en_rb.html">
|
115
|
+
lib/localization/format_engine/nc_engines/en.rb
|
116
|
+
</a>
|
117
|
+
<br />
|
118
|
+
<a href="../files/lib/localization/format_engine/nc_engines/es_rb.html">
|
119
|
+
lib/localization/format_engine/nc_engines/es.rb
|
120
|
+
</a>
|
121
|
+
<br />
|
122
|
+
<a href="../files/lib/localization/format_engine/nc_engines/fr_rb.html">
|
123
|
+
lib/localization/format_engine/nc_engines/fr.rb
|
124
|
+
</a>
|
125
|
+
<br />
|
126
|
+
<a href="../files/lib/localization/format_engine/nc_engines/it_rb.html">
|
127
|
+
lib/localization/format_engine/nc_engines/it.rb
|
128
|
+
</a>
|
129
|
+
<br />
|
130
|
+
<a href="../files/lib/localization/formatter_rb.html">
|
131
|
+
lib/localization/formatter.rb
|
132
|
+
</a>
|
133
|
+
<br />
|
134
|
+
<a href="../files/lib/localization/helpers/view_helpers/l10n_helpers_rb.html">
|
135
|
+
lib/localization/helpers/view_helpers/l10n_helpers.rb
|
136
|
+
</a>
|
137
|
+
<br />
|
138
|
+
<a href="../files/lib/localization/translator_rb.html">
|
139
|
+
lib/localization/translator.rb
|
140
|
+
</a>
|
141
|
+
<br />
|
142
|
+
</td>
|
143
|
+
</tr>
|
144
|
+
|
145
|
+
</table>
|
146
|
+
</div>
|
147
|
+
<!-- banner header -->
|
148
|
+
|
149
|
+
<div id="bodyContent">
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
<div id="contextContent">
|
154
|
+
|
155
|
+
<div id="description">
|
156
|
+
<p>
|
157
|
+
<a href="Mack.html">Mack</a> Localization‘s main configuration. When
|
158
|
+
loaded it will try to load localization.yml file from
|
159
|
+
{config_dir}/localization/ inside the application directory. If the file
|
160
|
+
doesn‘t exist then it will just load default configuration.
|
161
|
+
</p>
|
162
|
+
|
163
|
+
</div>
|
164
|
+
|
165
|
+
|
166
|
+
</div>
|
167
|
+
|
168
|
+
|
169
|
+
</div>
|
170
|
+
|
171
|
+
|
172
|
+
<!-- if includes -->
|
173
|
+
|
174
|
+
<div id="section">
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<!-- if method_list -->
|
184
|
+
|
185
|
+
|
186
|
+
</div>
|
187
|
+
|
188
|
+
|
189
|
+
<div id="validator-badges">
|
190
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
</body>
|
194
|
+
</html>
|
@@ -0,0 +1,118 @@
|
|
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::Localization::Configuration</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::Localization::Configuration</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
|
+
</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
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
|
83
|
+
<!-- if includes -->
|
84
|
+
|
85
|
+
<div id="section">
|
86
|
+
|
87
|
+
|
88
|
+
<div id="constants-list">
|
89
|
+
<h3 class="section-bar">Constants</h3>
|
90
|
+
|
91
|
+
<div class="name-list">
|
92
|
+
<table summary="Constants">
|
93
|
+
<tr class="top-aligned-row context-row">
|
94
|
+
<td class="context-item-name">L10N_DEFAULTS</td>
|
95
|
+
<td>=</td>
|
96
|
+
<td class="context-item-value">{ "base_language" => "en", "supported_languages" => %w{bp en fr it de es}, "char_encoding" => 'us-ascii', "dynamic_translation" => false, "base_directory" => File.join(Mack.root, "app", "lang"), "content_expiry" => 3600</td>
|
97
|
+
</tr>
|
98
|
+
</table>
|
99
|
+
</div>
|
100
|
+
</div>
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<!-- if method_list -->
|
108
|
+
|
109
|
+
|
110
|
+
</div>
|
111
|
+
|
112
|
+
|
113
|
+
<div id="validator-badges">
|
114
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
115
|
+
</div>
|
116
|
+
|
117
|
+
</body>
|
118
|
+
</html>
|
@@ -0,0 +1,111 @@
|
|
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::ContentCache</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::ContentCache</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../../files/lib/localization/content_cache_rb.html">
|
59
|
+
lib/localization/content_cache.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
|
+
Cachetastic::Caches::Base
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
|
89
|
+
<!-- if includes -->
|
90
|
+
|
91
|
+
<div id="section">
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<!-- if method_list -->
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
|
105
|
+
|
106
|
+
<div id="validator-badges">
|
107
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
</body>
|
111
|
+
</html>
|
@@ -0,0 +1,217 @@
|
|
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::DateFormatEngine::BP</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::DateFormatEngine::BP</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/df_engines/bp_rb.html">
|
59
|
+
lib/localization/format_engine/df_engines/bp.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="#M000029">date_format_template</a>
|
92
|
+
<a href="#M000030">days_of_week</a>
|
93
|
+
<a href="#M000031">months</a>
|
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-M000029" class="method-detail">
|
116
|
+
<a name="M000029"></a>
|
117
|
+
|
118
|
+
<div class="method-heading">
|
119
|
+
<a href="#M000029" class="method-signature">
|
120
|
+
<span class="method-name">date_format_template</span><span class="method-args">(type)</span>
|
121
|
+
</a>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div class="method-description">
|
125
|
+
<p><a class="source-toggle" href="#"
|
126
|
+
onclick="toggleCode('M000029-source');return false;">[Source]</a></p>
|
127
|
+
<div class="method-source-code" id="M000029-source">
|
128
|
+
<pre>
|
129
|
+
<span class="ruby-comment cmt"># File lib/localization/format_engine/df_engines/bp.rb, line 6</span>
|
130
|
+
6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">date_format_template</span>(<span class="ruby-identifier">type</span>)
|
131
|
+
7: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"df_hash"</span>) <span class="ruby-keyword kw">do</span>
|
132
|
+
8: <span class="ruby-identifier">df_hash</span> = {
|
133
|
+
9: <span class="ruby-identifier">:df_short</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"dd/mm/yyyy"</span>,
|
134
|
+
10: <span class="ruby-identifier">:df_medium</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"DD, dd MM, yyyy"</span>,
|
135
|
+
11: <span class="ruby-identifier">:df_long</span> =<span class="ruby-operator">></span> <span class="ruby-value str">"DD, dd MM, yyyy"</span>
|
136
|
+
12: }
|
137
|
+
13: <span class="ruby-keyword kw">end</span>
|
138
|
+
14: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"df_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
139
|
+
15: <span class="ruby-keyword kw">end</span>
|
140
|
+
</pre>
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
</div>
|
144
|
+
|
145
|
+
<div id="method-M000030" class="method-detail">
|
146
|
+
<a name="M000030"></a>
|
147
|
+
|
148
|
+
<div class="method-heading">
|
149
|
+
<a href="#M000030" class="method-signature">
|
150
|
+
<span class="method-name">days_of_week</span><span class="method-args">(type)</span>
|
151
|
+
</a>
|
152
|
+
</div>
|
153
|
+
|
154
|
+
<div class="method-description">
|
155
|
+
<p><a class="source-toggle" href="#"
|
156
|
+
onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
|
157
|
+
<div class="method-source-code" id="M000030-source">
|
158
|
+
<pre>
|
159
|
+
<span class="ruby-comment cmt"># File lib/localization/format_engine/df_engines/bp.rb, line 17</span>
|
160
|
+
17: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">days_of_week</span>(<span class="ruby-identifier">type</span>)
|
161
|
+
18: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"dow_hash"</span>) <span class="ruby-keyword kw">do</span>
|
162
|
+
19: <span class="ruby-identifier">dow_hash</span> = {
|
163
|
+
20: <span class="ruby-identifier">:dow_short</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{S T Q Q S S D}</span>,
|
164
|
+
21: <span class="ruby-identifier">:dow_medium</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Seg Ter Qua Qui Sex Sáb Dom}</span>,
|
165
|
+
22: <span class="ruby-identifier">:dow_long</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Segunda Terça Quarta Quinta Sexta Sábado Domingo}</span>
|
166
|
+
23: }
|
167
|
+
24: <span class="ruby-keyword kw">end</span>
|
168
|
+
25: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"dow_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
169
|
+
26: <span class="ruby-keyword kw">end</span>
|
170
|
+
</pre>
|
171
|
+
</div>
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
|
175
|
+
<div id="method-M000031" class="method-detail">
|
176
|
+
<a name="M000031"></a>
|
177
|
+
|
178
|
+
<div class="method-heading">
|
179
|
+
<a href="#M000031" class="method-signature">
|
180
|
+
<span class="method-name">months</span><span class="method-args">(type)</span>
|
181
|
+
</a>
|
182
|
+
</div>
|
183
|
+
|
184
|
+
<div class="method-description">
|
185
|
+
<p><a class="source-toggle" href="#"
|
186
|
+
onclick="toggleCode('M000031-source');return false;">[Source]</a></p>
|
187
|
+
<div class="method-source-code" id="M000031-source">
|
188
|
+
<pre>
|
189
|
+
<span class="ruby-comment cmt"># File lib/localization/format_engine/df_engines/bp.rb, line 28</span>
|
190
|
+
28: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">months</span>(<span class="ruby-identifier">type</span>)
|
191
|
+
29: <span class="ruby-identifier">hash</span> = <span class="ruby-identifier">ivar_cache</span>(<span class="ruby-value str">"m_hash"</span>) <span class="ruby-keyword kw">do</span>
|
192
|
+
30: <span class="ruby-identifier">m_hash</span> = {
|
193
|
+
31: <span class="ruby-identifier">:month_short</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Jan Fev Mar Abr Mai Jun Jul Ago Set Out Nov Dez}</span>,
|
194
|
+
32: <span class="ruby-identifier">:month_medium</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Jan Fev Mar Abr Mai Jun Jul Ago Set Out Nov Dez}</span>,
|
195
|
+
33: <span class="ruby-identifier">:month_long</span> =<span class="ruby-operator">></span> <span class="ruby-node">%w{Janeiro Fevereiro Março Abril Maio Junho Julho Agosto Setembro Outubro Novembro Dezembro}</span>
|
196
|
+
34: }
|
197
|
+
35: <span class="ruby-keyword kw">end</span>
|
198
|
+
36: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">hash</span>[<span class="ruby-node">"month_#{type}"</span>.<span class="ruby-identifier">to_sym</span>]
|
199
|
+
37: <span class="ruby-keyword kw">end</span>
|
200
|
+
</pre>
|
201
|
+
</div>
|
202
|
+
</div>
|
203
|
+
</div>
|
204
|
+
|
205
|
+
|
206
|
+
</div>
|
207
|
+
|
208
|
+
|
209
|
+
</div>
|
210
|
+
|
211
|
+
|
212
|
+
<div id="validator-badges">
|
213
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
214
|
+
</div>
|
215
|
+
|
216
|
+
</body>
|
217
|
+
</html>
|