0
我將r18n-rails gem安裝到我的應用中,並使用語言環境(:title_en,:title_ua)將模型添加到模型中。r18n上的Ruby on rails應用本地化
安裝這個寶石後,我有問題:標籤翻譯。
translation missing: ru.default
r18n gem如何使用i18n yml文件? 我YML文件 -
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
但添加後,我有問題,啓動服務器: 'r18n-core/yaml_loader.rb:42:in expand_path':can not Convert Class to String(TypeError)' My environment.rb:http://pastie.org/2089192 – Pyrchev