Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 390
- Log:
Initial import of Canvass, a donations-based poll application.
- Author:
- rool
- Date:
- Mon Mar 21 14:58:04 +0000 2011
- Size:
- 809 Bytes
1 | h1. I18nLabel |
2 | |
3 | Since labels don't use I18n in Rails 2.2 (I was too late in submitting the |
4 | patch), we'd have to make due with a plugin. |
5 | |
6 | Installation and configuration consists of 1 easy steps: |
7 | |
8 | # Run: |
9 | |
10 | ./script/plugin install git://github.com/iain/i18n_label.git |
11 | |
12 | |
13 | h1. Example |
14 | |
15 | In your translation file: |
16 | |
17 | en-US: |
18 | activerecord: |
19 | attributes: |
20 | topic: |
21 | name: A nice name |
22 | |
23 | In your view: |
24 | |
25 | <% form_for @topic do |f| %> |
26 | <%= f.label :name %> |
27 | <% end %> |
28 | |
29 | The result is: |
30 | |
31 | <label for="topic_name">A nice name</label> (please ignore the minor problem with html in github) |
32 | |
33 | |
34 | |
35 | For more information about where to put your translations, |
36 | visit "my blog":http://iain.nl/2008/09/translating-activerecord/ |
37 | |
38 | Copyright (c) 2008 "Iain Hecker":http://iain.nl/, released under the MIT license |