#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

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