locale_rails 0.1.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. data/ChangeLog +10 -4
  2. data/{README → README.rdoc} +6 -1
  3. data/Rakefile +8 -7
  4. data/lib/locale_rails.rb +3 -1
  5. data/lib/locale_rails/action_controller.rb +4 -130
  6. data/lib/locale_rails/action_controller/base.rb +85 -0
  7. data/lib/locale_rails/action_controller/caching.rb +49 -0
  8. data/lib/locale_rails/action_controller/test_process.rb +44 -0
  9. data/lib/locale_rails/action_view.rb +10 -12
  10. data/lib/locale_rails/i18n.rb +20 -1
  11. data/lib/locale_rails/version.rb +3 -3
  12. data/replace.rb +21 -0
  13. data/sample/app/views/samples/index.html.erb +14 -5
  14. data/sample/app/views/samples/index.pt.html.erb +16 -0
  15. data/sample/app/views/samples/index_uz_UZ.html.erb +4 -3
  16. data/sample/config/environment.rb +1 -1
  17. data/sample/config/locales/en.yml +2 -0
  18. data/sample/config/locales/ja.yml +2 -0
  19. data/sample/db/development.sqlite3 +0 -0
  20. data/sample/db/schema.rb +10 -0
  21. data/sample/db/test.sqlite3 +0 -0
  22. data/sample/log/development.log +1492 -2273
  23. metadata +17 -47
  24. data/NEWS +0 -7
  25. data/doc/classes/ActionController/Base.html +0 -442
  26. data/doc/classes/ActionController/Caching.html +0 -348
  27. data/doc/classes/ActionController/Caching/Fragments.html +0 -424
  28. data/doc/classes/ActionView/Base.html +0 -422
  29. data/doc/classes/I18n.html +0 -492
  30. data/doc/classes/Locale.html +0 -364
  31. data/doc/created.rid +0 -1
  32. data/doc/files/ChangeLog.html +0 -355
  33. data/doc/files/README.html +0 -409
  34. data/doc/files/lib/locale_rails/action_controller_rb.html +0 -349
  35. data/doc/files/lib/locale_rails/action_view_rb.html +0 -349
  36. data/doc/files/lib/locale_rails/i18n_rb.html +0 -342
  37. data/doc/files/lib/locale_rails/version_rb.html +0 -342
  38. data/doc/files/lib/locale_rails_rb.html +0 -349
  39. data/doc/fr_class_index.html +0 -7
  40. data/doc/fr_file_index.html +0 -8
  41. data/doc/fr_method_index.html +0 -11
  42. data/doc/index.html +0 -1
  43. data/doc/rdoc-style.css +0 -320
  44. data/locale_rails-0.1.0.gem +0 -0
  45. data/sample/app/views/samples/#cookie.rb# +0 -3
  46. data/sample/db/production.sqlite3 +0 -0
  47. data/sample/log/production.log +0 -80
@@ -1,7 +0,0 @@
1
-
2
- <a href="classes/ActionController/Base.html">ActionController::Base<br/></a>
3
- <a href="classes/ActionController/Caching.html">ActionController::Caching<br/></a>
4
- <a href="classes/ActionController/Caching/Fragments.html">ActionController::Caching::Fragments<br/></a>
5
- <a href="classes/ActionView/Base.html">ActionView::Base<br/></a>
6
- <a href="classes/I18n.html">I18n<br/></a>
7
- <a href="classes/Locale.html">Locale<br/></a>
@@ -1,8 +0,0 @@
1
-
2
- <a href="files/ChangeLog.html">ChangeLog<br/></a>
3
- <a href="files/README.html">README<br/></a>
4
- <a href="files/lib/locale_rails_rb.html">lib/locale_rails.rb<br/></a>
5
- <a href="files/lib/locale_rails/action_controller_rb.html">lib/locale_rails/action_controller.rb<br/></a>
6
- <a href="files/lib/locale_rails/action_view_rb.html">lib/locale_rails/action_view.rb<br/></a>
7
- <a href="files/lib/locale_rails/i18n_rb.html">lib/locale_rails/i18n.rb<br/></a>
8
- <a href="files/lib/locale_rails/version_rb.html">lib/locale_rails/version.rb<br/></a>
@@ -1,11 +0,0 @@
1
-
2
- <a href="classes/ActionView/Base.html#M000006">_pick_template_with_locale (ActionView::Base)<br/></a>
3
- <a href="classes/ActionView/Base.html#M000005">_pick_template_with_locale_main (ActionView::Base)<br/></a>
4
- <a href="classes/ActionController/Base.html#M000004">after_init_locale (ActionController::Base)<br/></a>
5
- <a href="classes/ActionController/Base.html#M000003">before_init_locale (ActionController::Base)<br/></a>
6
- <a href="classes/I18n.html#M000010">candidates (I18n)<br/></a>
7
- <a href="classes/ActionController/Caching/Fragments.html#M000002">expire_fragment_with_locale (ActionController::Caching::Fragments)<br/></a>
8
- <a href="classes/ActionController/Caching/Fragments.html#M000001">fragment_cache_key_with_locale (ActionController::Caching::Fragments)<br/></a>
9
- <a href="classes/I18n.html#M000009">locale= (I18n)<br/></a>
10
- <a href="classes/I18n.html#M000007">supported_locales (I18n)<br/></a>
11
- <a href="classes/I18n.html#M000008">supported_locales= (I18n)<br/></a>
@@ -1 +0,0 @@
1
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Ruby-Locale for Ruby on Rails</title><link type="text/css" href="rdoc-style.css" media="screen" rel="stylesheet"/><meta content="0;url=files/README.html" http-equiv="refresh"/></head><body><div id="container"><div class="curve" id="preheader_curve_0"></div><div class="curve" id="preheader_curve_1"></div><div class="curve" id="preheader_curve_2"></div><div class="curve" id="preheader_curve_3"></div><div class="curve" id="preheader_curve_4"></div><div class="curve" id="preheader_curve_5"></div><div id="header"><span id="title"><p>&nbsp;</p><h1>Ruby Documentation</h1></span></div><div class="clear"></div><div id="redirect"><a href="files/README.html"><h1>Redirect</h1></a></div></div></body></html>
@@ -1,320 +0,0 @@
1
-
2
- /*;
3
- Allison 2 template;
4
- Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.;
5
- */;
6
-
7
- /* default styles */
8
-
9
- * {
10
- margin: 0;
11
- padding: 0;
12
- border: none;
13
- }
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
- .clear {
25
- clear: both;
26
- }
27
-
28
- a {
29
- color: #304878;
30
- font-weight: bold;
31
- text-decoration: none;
32
- }
33
-
34
- a:hover {
35
- text-decoration: underline;
36
- }
37
-
38
- html, body {
39
- color: #000;
40
- font-size: 13px;
41
- font-family: helvetica, verdana, sans;
42
- background-color: #fff;
43
- text-align: center;
44
- margin: 0;
45
- padding: 0;
46
- }
47
-
48
- p, ul, ol {
49
- line-height: 16px;
50
- } li {
51
- margin: 3px;
52
- _margin-left: 40px;
53
- } p, pre, table, ol, ul {
54
- margin: 16px;
55
- } #item_name {
56
- margin-top: -8px;
57
- }
58
-
59
- h1 {
60
- font-size: 22px;
61
- margin-top: 16px;
62
- } h2, h3 {
63
- font-size: 18px;
64
- margin: 6px;
65
- margin-right: 0;
66
- padding-top: 12px;
67
- }
68
-
69
- /* center everything */
70
-
71
- #container {
72
- margin: 20px auto 0 auto;
73
- width: 900px;
74
- text-align: left;
75
- }
76
-
77
- /* header stuff */
78
-
79
- #header {
80
- padding: 6px;
81
- padding-top: 3px;
82
- width: 888px;
83
- height: 52px;
84
- _height: 58px;
85
- margin-bottom: 12px;
86
- vertical-align: baseline;
87
- background-color: #181848;
88
- overflow: hidden;
89
- } .curve {
90
- background-color: #181848;
91
- margin: 0;
92
- padding: 0;
93
- height: 1px;
94
- overflow: hidden /* again, ie problem */;
95
- }
96
-
97
-
98
-
99
-
100
-
101
- #preheader_curve_5{border-left: 1px solid #fff; border-right: 1px solid #fff; width: 898px; _width: 888px; }
102
- #preheader_curve_4{border-left: 1px solid #fff; border-right: 1px solid #fff; width: 898px; _width: 888px; }
103
- #preheader_curve_3{border-left: 2px solid #fff; border-right: 2px solid #fff; width: 896px; _width: 888px; }
104
- #preheader_curve_2{border-left: 3px solid #fff; border-right: 3px solid #fff; width: 894px; _width: 888px; }
105
- #preheader_curve_1{border-left: 4px solid #fff; border-right: 4px solid #fff; width: 892px; _width: 888px; }
106
- #preheader_curve_0{border-left: 6px solid #fff; border-right: 6px solid #fff; width: 888px; _width: 888px; }
107
-
108
- #header h1 {
109
- color: #fff;
110
- font-size: 30px;
111
- margin: 4px 0 0 0;
112
- } #header p {
113
- margin: 0;
114
- padding: 0;
115
- padding-left: 3px;
116
- font-size: 16px;
117
- color: #fff;
118
- } #header a {
119
- color: #fff;
120
- text-decoration: none;
121
- font-weight: bold;
122
- }
123
-
124
- /* basic layout and navigation bars */
125
-
126
- #left {
127
- background-color: #181848;
128
- width: 220px;
129
- float: left;
130
- _width: 208px;
131
- margin-bottom: 24px;
132
- } #left a {
133
- line-height: 14px;
134
- }
135
-
136
- /* navigation bar colors and text styles */
137
-
138
- .navigation {
139
- width: 196px;
140
- margin: 6px;
141
- padding: 6px;
142
- text-align: left;
143
- background-color: #fff;
144
- overflow: hidden;
145
- } .navigation h3 {
146
- font-weight: bold;
147
- margin-bottom: 5px;
148
- } .navigation span, .navigation a {
149
- margin-left: 6px;
150
- } #includes .navigation span, #includes .navigation a {
151
- margin-left: 0;
152
- } .darker {
153
- background-color: #e4ebed;
154
- } #spacer {
155
- background-color: #fff;
156
- height: 18px;
157
- display: none;
158
- }
159
-
160
- /* content area */
161
-
162
- #content {
163
- padding: 20px;
164
- width: 640px;
165
- float: left;
166
- min-height: 450px;
167
- margin: 0;
168
- margin-bottom: -4px;
169
- } #content img {
170
- padding-top: 6px;
171
- padding-bottom: 12px;
172
- }
173
-
174
- #content h1, h2 {
175
- border-top: 1px solid #e4ebed;
176
- } #content h1 {
177
- padding-top: 18px;
178
- } #content #item_name { /* why does this need to be fully qualified? */
179
- padding-top: 0;
180
- border: none;
181
- }
182
-
183
- /* footer */
184
-
185
- #footer {
186
- text-align: center;
187
- background-color: #fff;
188
- padding: 18px;
189
- border-top: 1px solid #e4ebed;
190
- color: #ccd5dc;
191
- } #footer a {
192
- font-weight: normal;
193
- color: #ccd5dc;
194
- }
195
-
196
- /* for that dumb redirect index page I can't avoid */
197
-
198
- #redirect {
199
- text-align: center;
200
- } #redirect a {
201
- color: #181848;
202
- }
203
-
204
- /* tables */
205
-
206
- table {
207
- width: 585px;
208
- margin-right: 0;
209
- border-collapse: collapse;
210
- border: 1px solid #e4ebed;
211
- } td, th {
212
- background-color: #fff;
213
- text-align: left;
214
- padding: 6px;
215
- line-height: 14px;
216
- font-size: 13px;
217
- } td.normal {
218
- font-family: Courier, Courier New, monospace;
219
- font-size: 12px;
220
- } td.highlight {
221
- color: #304878;
222
- }
223
-
224
- /* method_block details */
225
-
226
- div.method_block {
227
- border-bottom: 1px solid #e4ebed;
228
- margin-left: 20px;
229
- margin-bottom: -17px;
230
- margin-top: 17px;
231
- } div.method_block h3 {
232
- color: #181848;
233
- margin-left: 0;
234
- padding: 0;
235
- } #content div.method_block h1, #content #description h1 {
236
- margin-left: 6px;
237
- color: #ccd5dc;
238
- } div.method_block a.small { /* where is this used? */
239
- font-size: 3px;
240
- line-height: 3px;
241
- }
242
-
243
- /* index includes on the navigation bar */
244
-
245
- div.index a {
246
- font-size: 13px;
247
- } #method {
248
- display: none;
249
- } #file, #class {
250
- display: block;
251
- } div.list_header {
252
- float: left;
253
- } div.list_header_link {
254
- float: right;
255
- padding-top: 3px;
256
- } div.list_header_link a {
257
- font-weight: normal;
258
- } div.navigation h3, .list_header_link {
259
- margin: 0;
260
- margin-top: 6px;
261
- margin-bottom: 6px;
262
- padding: 0;
263
- }
264
-
265
- .index label {
266
- font-size: 13px;
267
- } .index form input {
268
- width: 136px;
269
- } .index form {
270
- margin-bottom: 6px;
271
- }
272
-
273
- ol, ul {
274
- margin-left: 6px;
275
- }
276
-
277
- p.source_link a {
278
- text-align: right;
279
- font-weight: normal;
280
- } div.source {
281
- display: none;
282
- } pre, tt {
283
- color: #181848;
284
- font-weight: normal;
285
- font-family: Courier, Courier New, monospace;
286
- font-size: 12px;
287
- } pre {
288
- line-height: 14px;
289
- margin-left: 12px;
290
- overflow: auto;
291
- /* next 4 lines because IE sucks */
292
- _position: relative;
293
- _width: 587px;
294
- _overflow-x:scroll;
295
- _overflow-y:visible;
296
- } b tt, tt b {
297
- font-weight: bold;
298
- } div.source g {
299
- margin-left: 0;
300
- } p.source_link {
301
- text-align: center;
302
- }
303
-
304
- /* source code highlighting */
305
-
306
- .source pre {
307
- color: black;
308
- }
309
- pre .ruby-value, pre .ruby-symbol {
310
- color: #1104bb;
311
- } pre .ruby-value.str, pre .ruby-node {
312
- color: #181848;
313
- } pre .ruby-ivar, pre .ruby-cvar {
314
- } pre .ruby-comment {
315
- color: #009500;
316
- } pre .ruby-constant {
317
- color: #cd8802;
318
- } pre .ruby-keyword {
319
- color: #8d04aa;
320
- }
Binary file
@@ -1,3 +0,0 @@
1
- <p>
2
-
3
- </p>
File without changes
@@ -1,80 +0,0 @@
1
-
2
-
3
- Processing SamplesController#index (for 127.0.0.1 at 2008-11-24 21:40:05) [GET]
4
- Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--7cecde90ce50560b7db576de57d351f7e77d3231
5
- Parameters: {"action"=>"index", "controller"=>"samples"}
6
- Rendering template within layouts/samples
7
- Rendering samples/index
8
- Completed in 23ms (View: 18, DB: 0) | 200 OK [http://localhost/samples]
9
-
10
-
11
- Processing SamplesController#set_cookie (for 127.0.0.1 at 2008-11-24 21:40:10) [GET]
12
- Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--7cecde90ce50560b7db576de57d351f7e77d3231
13
- Parameters: {"action"=>"set_cookie", "id"=>"fr", "controller"=>"samples"}
14
- Cookie set: lang=fr; path=/
15
- Redirected to actionindex
16
- Completed in 7ms (DB: 0) | 302 Found [http://localhost/samples/set_cookie/fr]
17
-
18
-
19
- Processing SamplesController#index (for 127.0.0.1 at 2008-11-24 21:40:10) [GET]
20
- Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsGOgtub3RpY2UiHUNvb2tpZSBsYW5nIHZhbHVlIGlzOiBmcgY6CkB1c2VkewY7BkY=--9129a41fe206009307f4424ed7fff2f58c2515c7
21
- Parameters: {"action"=>"index", "controller"=>"samples"}
22
- Rendering template within layouts/samples
23
- Rendering samples/index
24
- Completed in 23ms (View: 20, DB: 0) | 200 OK [http://localhost/samples]
25
-
26
-
27
- Processing SamplesController#index (for 127.0.0.1 at 2008-11-24 21:40:16) [GET]
28
- Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsGOgtub3RpY2UiHUNvb2tpZSBsYW5nIHZhbHVlIGlzOiBmcgY6CkB1c2VkewY7BlQ=--74764438c74618f05d01033974f617f311a0ad31
29
- Parameters: {"action"=>"index", "controller"=>"samples"}
30
- Rendering template within layouts/samples
31
- Rendering samples/index
32
- Completed in 19ms (View: 17, DB: 0) | 200 OK [http://localhost/samples]
33
-
34
-
35
- Processing SamplesController#set_cookie (for 127.0.0.1 at 2008-11-24 21:40:21) [GET]
36
- Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--7cecde90ce50560b7db576de57d351f7e77d3231
37
- Parameters: {"action"=>"set_cookie", "id"=>"ja_JP", "controller"=>"samples"}
38
- Cookie set: lang=ja_JP; path=/
39
- Redirected to actionindex
40
- Completed in 4ms (DB: 0) | 302 Found [http://localhost/samples/set_cookie/ja_JP]
41
-
42
-
43
- Processing SamplesController#index (for 127.0.0.1 at 2008-11-24 21:40:21) [GET]
44
- Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsGOgtub3RpY2UiIENvb2tpZSBsYW5nIHZhbHVlIGlzOiBqYV9KUAY6CkB1c2VkewY7BkY=--c700c88b5042ff1a5c23292bb6d67abdaa8998c6
45
- Parameters: {"action"=>"index", "controller"=>"samples"}
46
- Rendering template within layouts/samples
47
- Rendering samples/index
48
- Completed in 20ms (View: 18, DB: 0) | 200 OK [http://localhost/samples]
49
-
50
-
51
- Processing SamplesController#index (for 127.0.0.1 at 2008-11-24 21:40:33) [GET]
52
- Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsGOgtub3RpY2UiIENvb2tpZSBsYW5nIHZhbHVlIGlzOiBqYV9KUAY6CkB1c2VkewY7BlQ=--c5ce8251c879f27b4a55e90c44caa7e811ec2e69
53
- Parameters: {"action"=>"index", "controller"=>"samples"}
54
- Rendering template within layouts/samples
55
- Rendering samples/index
56
- Completed in 20ms (View: 18, DB: 0) | 200 OK [http://localhost/samples]
57
-
58
-
59
- Processing SamplesController#set_cookie (for 127.0.0.1 at 2008-11-24 21:40:39) [GET]
60
- Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA==--7cecde90ce50560b7db576de57d351f7e77d3231
61
- Parameters: {"action"=>"set_cookie", "id"=>"pt_BR", "controller"=>"samples"}
62
- Cookie set: lang=pt_BR; path=/
63
- Redirected to actionindex
64
- Completed in 3ms (DB: 0) | 302 Found [http://localhost/samples/set_cookie/pt_BR]
65
-
66
-
67
- Processing SamplesController#index (for 127.0.0.1 at 2008-11-24 21:40:39) [GET]
68
- Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsGOgtub3RpY2UiIENvb2tpZSBsYW5nIHZhbHVlIGlzOiBwdF9CUgY6CkB1c2VkewY7BkY=--b4f8cce7beccfb502800a6f55b4af14fcacb20f4
69
- Parameters: {"action"=>"index", "controller"=>"samples"}
70
- Rendering template within layouts/samples
71
- Rendering samples/index
72
- Completed in 21ms (View: 18, DB: 0) | 200 OK [http://localhost/samples]
73
-
74
-
75
- Processing SamplesController#index (for 127.0.0.1 at 2008-11-24 21:40:44) [GET]
76
- Session ID: BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsGOgtub3RpY2UiIENvb2tpZSBsYW5nIHZhbHVlIGlzOiBwdF9CUgY6CkB1c2VkewY7BlQ=--e4fa3d119fdaafa66a780a391203228712898f11
77
- Parameters: {"action"=>"index", "controller"=>"samples"}
78
- Rendering template within layouts/samples
79
- Rendering samples/index
80
- Completed in 22ms (View: 19, DB: 0) | 200 OK [http://localhost/samples]