This project is archived and is in readonly mode.
Changeset [a25ef06956725f5c4c8833f86f61f1f12c4323e2] by José Valim
Revision a25ef06956725f5c4c8833f86f61f1f12c4323e2,
committed by José Valim
· January 7th, 2010 @ 02:31 PM
Allow to specify default attributes names translation in I18n
yml files.
For example, you could easily specify :created_at and :updated_at
translations as:
en:
attributes:
created_at: "Created at"
updated_at: "Updated at"
This configuration is built on ActiveModel, so it means those
translations are
shared between different ORMs as well (but always as a
fallback).
http://github.com/rails/rails/commit/a25ef06956725f5c4c8833f86f61f1...
3 changed files
-
M
activemodel/lib/active_model/translation.rb -
M
activemodel/test/cases/translation_test.rb -
M
activerecord/lib/active_record/locale/en.yml