
User translations loading breaks default translations
Reported by Yaroslav Markin | September 1st, 2008 @ 11:57 AM
- Have a Rails application with a Model and error_messages_for. I'm using restful_auth register form.
- Have this in
config/initializers
puts "** Loading locales"
Dir[File.join(Rails.root, "config", "locale", "**/*")].each do |file|
I18n.load_translations(file)
end
- Have any
*.yml
translation file inconfig/locale
I am using ru-RU
as my default locale.
- 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 September 1st, 2008 @ 12:28 PM
Discovered that
ru-RU: activerecord: models: user: "Пользователь" attributes:
Does not give any errors at all.
-
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.
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.
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.