From a25ef06956725f5c4c8833f86f61f1f12c4323e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Thu, 7 Jan 2010 02:45:50 +0100 Subject: 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). --- activerecord/lib/active_record/locale/en.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activerecord/lib/active_record/locale') diff --git a/activerecord/lib/active_record/locale/en.yml b/activerecord/lib/active_record/locale/en.yml index 75cdedb442..4115cc8e17 100644 --- a/activerecord/lib/active_record/locale/en.yml +++ b/activerecord/lib/active_record/locale/en.yml @@ -19,6 +19,11 @@ en: # custom blank validation message for login attribute of User model. #models: + # Attributes names common to most models + #attributes: + #created_at: "Created at" + #updated_at: "Updated at" + # ActiveRecord models configuration #activerecord: # Translate model names. Used in Model.human_name(). -- cgit v1.2.3