
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.
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.