Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Adds translated form labels to Rails 2.2
branch: master

This branch is even with iain:master


latest commit 9f820e24ec
iain authored
Failed to load latest commit information.
lib last commit?
spec last commit?
tasks last commit?
Rakefile last commit?
init.rb last commit?
install.rb last commit?
uninstall.rb last commit?



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:

  1. Run:
./script/plugin install git://


In your translation file:

en-US: activerecord: attributes: topic: name: A nice name

In 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

Something went wrong with that request. Please try again.