aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/locale
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate and rename the keys for association restrict_dependent_destroyRoque Pinel2015-07-201-2/+2
| | | | | | | | | | | | | | | | | Previously `has_one` and `has_many` associations were using the `one` and `many` keys respectively. Both of these keys have special meaning in I18n (they are considered to be pluralizations) so by renaming them to `has_one` and `has_many` we make the messages more explicit and most importantly they don't clash with linguistical systems that need to validate translation keys (and their pluralizations). The `:'restrict_dependent_destroy.one'` key should be replaced with `:'restrict_dependent_destroy.has_one'`, and `:'restrict_dependent_destroy.many'` with `:'restrict_dependent_destroy.has_many'`. [Roque Pinel & Christopher Dell]
* Move required error message and changelog to Active RecordCarlos Antonio da Silva2015-02-011-0/+1
| | | | | The new association error belongs to Active Record, not Active Model. See #18700 for reference.
* Changed scope for "taken" error message translation to decrease precedenceAndrew DiMichele2012-10-191-1/+5
| | | | | | Moved activerecord.errors.messages.taken to errors.messages.taken so that translations for, e.g., errors.attributes.email.taken don't get overridden. Test that the translation for 'taken' can be overridden
* Fix typoRafael Mendonça França2012-02-011-1/+1
|
* Use human attribute name to show the dependent destroy messageRafael Mendonça França2012-02-011-1/+1
|
* fix has_one, has_many restrict error messageManoj2012-02-011-1/+3
|
* suggested fixes for :dependent => :restrict deprecation.Manoj2012-01-311-1/+1
|
* has_many/has_one, :dependent => :restrict, deprecation added.Manoj2012-01-291-0/+1
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-2/+2
| | | | 's/[ \t]*$//' -i {} \;)
* edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-141-1/+1
| | | | not "ActiveRecord"
* Use %{} syntax in I18n (faster) instead of {{}}.José Valim2010-05-011-2/+2
|
* Drop AR I18n deprecation and simple use errors.messages as fallback.José Valim2010-01-301-12/+12
|
* Allow to specify default attributes names translation in I18n yml files.José Valim2010-01-071-0/+5
| | | | | | | | | | | | 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).
* Errors messages are now moved from :activerecord.errors to simply :errors on ↵José Valim2010-01-071-31/+8
| | | | I18n yml files.
* Use activerecord.errors.format as in Rails 2.3.5.José Valim2010-01-021-0/+3
|
* allow ActiveRecord#RecordInvalid exception message to be localizedSven Fuchs2009-08-261-0/+1
| | | | | | [#2754 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge docrailsPratik Naik2009-01-181-1/+1
|
* use :en as a default locale (in favor of :en-US)Sven Fuchs2008-11-181-1/+1
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Merge docrailsPratik Naik2008-09-131-4/+25
|
* Removed en-US ruby locale in favor of yamlIain Hecker2008-08-201-28/+0
|
* Locale file changed to yamlIain Hecker2008-08-201-0/+33
|
* Cleaned up ActiveRecord i18n scopingIain Hecker2008-08-141-23/+25
|
* switch to using I18n.load_translations instead of requiring plain ruby filesSven Fuchs2008-08-131-23/+24
|
* Renamed lang/ to locale/ because that's what we seem toSven Fuchs2008-06-211-0/+25
standarize on. Also, in future this place can be used for data/code that's not literally translations but conceptually belongs to the locale (like custom pluralization algorithms etc.).