#14 new
Yaroslav Markin

Fix en-US.yml paddings for ActiveRecord

Reported by Yaroslav Markin | September 1st, 2008 @ 12:22 PM

Padding that is currently in Rails Edge is wrong:

Code does lookups for activerecord.models/attributes not activerecord.errors.models/attributes

Proof:

@activerecord base.rb L1250@:


        I18n.translate(defaults.shift, options.merge(:default => defaults, :scope => [:activerecord, :attributes]))

@active_record_helper L198@:


              object_name = I18n.t(object_name, :default => object_name, :scope => [:activerecord, :models], :count => 1)

Comments and changes to this ticket

  • Yaroslav Markin

    Yaroslav Markin September 1st, 2008 @ 12:25 PM

    Patch breaks ActiveRecord tests (24 failures)

  • Yaroslav Markin

    Yaroslav Markin September 1st, 2008 @ 12:26 PM

    For instance,

    
     18) Failure:
    test_validates_inclusion_of(ValidationsTest)
        [./test/cases/validations_test.rb:625:in `test_validates_inclusion_of'
         ./test/cases/../../../activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `__send__'
         ./test/cases/../../../activesupport/lib/active_support/testing/setup_and_teardown.rb:94:in `run']:
    <"is not included in the list"> expected but was
    <"custom message">.
    
  • Yaroslav Markin

    Yaroslav Markin September 1st, 2008 @ 08:30 PM

    Wontfix: works as intented, Iain is going to document key behavior for activerecord translation, I believe.

  • Catherine Miller

    Catherine Miller September 30th, 2020 @ 08:06 PM

    I am new to the blog and someone who has a very basic knowledge of all the coding and all would find it hard to understand what you have shared here. infertility treatment in ernakulam I would request you all to be more considerate and include some more details so that everyone could understand it.

  • nocis

    nocis November 15th, 2020 @ 11:57 PM

    Schools are the most important and primary institutions where children are being sent to get an education. Without schools the concept of imparting vitutors.com properly is very weak. The role of primary as well as secondary schools is very much important.

  • shanterr

    shanterr January 5th, 2021 @ 09:10 AM

    Nice to see this post here. Quickpayportal is a very safe way to pay Medical bill online. You should log in Quick Pay Portal at www.quickpayportal.com to pay bills easily. Quickpayportal is the most used website in the USA by the patient to pay Hospital and Doctors Bills. This quickpayportal greatly helps for and make all your payments done without any stress.

  • lookpong

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Repository for collecting Locale data for Ruby on Rails I18n as well as other interesting, Rails related I18n stuff

People watching this ticket

Attachments

Pages