Sha256: c5c38ac5f38fca8f9515df7041b5abe9476beef2046087007c6f51b671fa910d
Contents?: true
Size: 809 Bytes
Versions: 32
Compression:
Stored size: 809 Bytes
Contents
h1. 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: ./script/plugin install git://github.com/iain/i18n_label.git h1. Example 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</label> (please ignore the minor problem with html in github) For more information about where to put your translations, visit "my blog":http://iain.nl/2008/09/translating-activerecord/ Copyright (c) 2008 "Iain Hecker":http://iain.nl/, released under the MIT license
Version data entries
32 entries across 32 versions & 3 rubygems