#8 new
Yaroslav Markin

User translations loading breaks default translations

Reported by Yaroslav Markin | September 1st, 2008 @ 11:57 AM

  1. Have a Rails application with a Model and error_messages_for. I'm using restful_auth register form.
  2. Have this in config/initializers

puts "** Loading locales"
Dir[File.join(Rails.root, "config", "locale", "**/*")].each do |file|
  I18n.load_translations(file)
end
  1. Have any *.yml translation file in config/locale

I am using ru-RU as my default locale.

  1. Play with that yml file:

ru-RU:
  activerecord:

Gives


translation missing: ru-RU, activerecord, errors, template, header
translation missing: ru-RU, activerecord, errors, template, body
Login translation missing: ru-RU, activerecord, errors, models, user, attributes, login, blank

ru-RU:
  activerecord:
    errors:
      messages:

Gives


Login translation missing: ru-RU, activerecord, errors, models, user, attributes, login, blank
(a bit better)

ru-RU:
  activerecord:
    errors:
      messages:
      models:
      attributes:

Gives the same.

Comments and changes to this ticket

  • Yaroslav Markin

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

    Discovered that

    
    ru-RU:
      activerecord:
        models:
          user: "Пользователь"
          attributes:
    
    

    Does not give any errors at all.

  • John Smith

    John Smith December 17th, 2020 @ 12:36 PM

    I Ride Bus is the snappiest and least demanding approach to lease a bus. Get and analyze moment cites on charter buses and minibusses from one side of the country to the other. For successful and proficient charter bus rental arrangements that permit you to securely and dependably travel anyplace inside the United States, Iridebus is the best approach! With unrivaled admittance to a tremendous organization of charter bus rental service merchants, we will consistently assist you with finding the best vehicle for your gathering, regardless of whether it's a 24 to 35 traveler minibus or a 49 to 57 traveler mentor bus.

  • yter dgd

    yter dgd August 11th, 2024 @ 05:16 PM

    shopping in-store provides the opportunity for immediate purchase and gratification. Unlike online shopping, where delivery times can vary, visiting a local vape store allows customers to walk out with their products in hand ecigarettes canada. This immediate access is especially beneficial for those who need to replenish their supplies quickly or want to try out a new product right away.

  • liam smith

    liam smith August 19th, 2024 @ 02:05 PM

    When user translations are loading, it can sometimes disrupt the display of default translations. cox customer support billing This issue occurs if the system struggles to integrate new translations in real-time, causing temporary inconsistencies. Ensure that translation updates are completed before viewing to avoid breaking the default content and maintain a smooth user experience.

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 »

Internationalization API for Ruby.

This library is used in Ruby on Rails but also suited for use in other contexts.

People watching this ticket

Attachments

Pages