Ruby on rails app localization by r18n
I'm install the r18n-rails gem to my app and add migrations to model with locales (:title_en, :title_ua).
After installing this gem I have problems with :label translations.
translation missing: ru.default
How can r18n gem use i18n yml files? My yml files are -
con开发者_C百科fig.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
For R18n to work well with rails and i18n, you need to set custom load paths with R18n::Loader::Rails
Find more details here - http://rubydoc.info/gems/r18n-rails-api/0.4.9/file/README.rdoc#Rails_Translations
You may have seen this page as well - seems some good instructions here as well - http://r18n.rubyforge.org/
精彩评论