use rails-i18n translations
This commit is contained in:
parent
389b45a505
commit
6e5184d796
7 changed files with 24 additions and 776 deletions
|
|
@ -30,7 +30,8 @@ module Foodsoft
|
|||
# config.time_zone = 'Central Time (US & Canada)'
|
||||
|
||||
# Internationalization.
|
||||
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
|
||||
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '*.yml')]
|
||||
config.i18n.available_locales = Pathname.glob(Rails.root.join('config', 'locales', '??{-*,}.yml')).map{|p| p.basename('.yml').to_s }
|
||||
config.i18n.default_locale = :en
|
||||
|
||||
# Configure the default encoding used in templates for Ruby 1.9.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue