Activerecord I18N Defaults plugin

Plugin details

ActiveRecord i18n Defaults is a Rails 2.2 plugin that lets you define translations for common attributes used in more that one model.

Websitehttp://www.diegocarrion.com/ Repositorygit://github.com/dcrec1/activerecord_i18n_defaults.git Author Diego Carrion Tags i18n LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install git://github.com/dcrec1/activerecord_i18n_defaults.git

USAGE
================
Define your ActiveRecord default attributes like this:

en-US:
  activerecord:
    attributes:
      _all:
        login: "Login" 
      admin:
        login: "Custom Login" 
      user:
        name: "Name"


Then use the I18n API as usual. If an attribute for a model is not found, it will be searched in _all atributes.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, about 1 year ago