0

I recently make a decision to translate my tiny rails app with I18n gem as it described here.
While a testing, as it expected, I got a error messages from activerecord and devise:

translation missing: ru.devise.failure.user.not_found_in_database
translation missing: ru.activerecord.errors.models.user.attributes.name.taken

At this moment I know only one way to set up massages with custom locale - simply copy en.yml file which contains messages into my custom ru.yml, but it's weird way.
Maybe I missed something?

Cheers!

Rasmussen
  • 7
  • 2
  • 1
    Would the `default` option be a good fit for you ? http://stackoverflow.com/a/4244177/919641 . Note that you can also use rails-i18n gem for common translations (https://github.com/svenfuchs/rails-i18n) and, for devise they provide common translations also (https://github.com/plataformatec/devise/wiki/I18n) – pjam Apr 10 '13 at 13:51
  • 1
    And of course you can set up a fallback locale to avoid missing translations http://stackoverflow.com/a/7621851/919641 – pjam Apr 10 '13 at 13:52
  • I'll post my comments as an answer then, feel free to accept them if you want :) – pjam Apr 10 '13 at 16:51

1 Answers1

0

You can use the default option (related question)

I also advise you to look into the rails-18n gem for common translations

Devise provide common translations on their wiki

You can also set up a fallback locale to avoid missing translations (related question)

Community
  • 1
  • 1
pjam
  • 6,356
  • 5
  • 30
  • 40