iain / i18n_label
- Source
- Commits
- Network (3)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
README.textile | Sat Sep 13 15:29:38 -0700 2008 | |
| |
Rakefile | Fri Sep 12 12:43:20 -0700 2008 | |
| |
init.rb | Fri Sep 12 12:43:20 -0700 2008 | |
| |
install.rb | Fri Sep 12 12:43:20 -0700 2008 | |
| |
lib/ | Fri Sep 12 12:43:20 -0700 2008 | |
| |
spec/ | Fri Sep 12 12:43:20 -0700 2008 | |
| |
tasks/ | Fri Sep 12 12:43:20 -0700 2008 | |
| |
uninstall.rb | Fri Sep 12 12:43:20 -0700 2008 |
README.textile
I18nLabel
Since labels don’t use I18n in Rails 2.2 (I was too late in submitting the
patch), we’d have to make due with a plugin.
Installation and configuration consists of 1 easy steps:
- Run:
Example
In your translation file:
en-US: activerecord: attributes: topic: name: A nice nameIn your view:
<% form_for @topic do |f| %> <%= f.label :name %> <% end %>The result is:
<label for="topic_name">A nice name (please ignore the minor problem with html in github)For more information about where to put your translations,
visit my blog
Copyright © 2008 Iain Hecker, released under the MIT license
