Я использую эту ссылку, чтобы поместить логин ссылку на моем приложении:Перевести DEViSE Войти ссылки
https://github.com/plataformatec/devise/wiki/How-To:-Add-sign_in,-sign_out,-and-sign_up-links-to-your-layout-template
Я также добавить файл перевод на французский:
https://gist.github.com/871074
И я спрашиваю рельсы использовать французским по умолчанию:
config.before_configuration do
I18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}').to_s]
I18n.locale = :fr
I18n.default_locale = :fr
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}').to_s]
config.i18n.locale = :fr
# bypasses rails bug with i18n in production\
I18n.reload!
config.i18n.reload!
end
config.i18n.locale = :fr
config.i18n.default_locale = :fr
Но для моих кнопок/метки не переводятся:
<div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
Он пишет «Помни меня», но мне нужен французский перевод.
Что я сделал неправильно?
Спасибо