diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-18 14:23:13 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2008-11-18 14:23:13 +0100 |
commit | d9b92ee11b33fed5c7a94a91415fa846705f7dd3 (patch) | |
tree | b936c0e1b7c9d3fbe8656a1b3a449383dcc00d55 /railties/lib/rails_generator/generators/applications/app/app_generator.rb | |
parent | 75fb8dfb996f5c5d8b64d10ce7b27eeb681d5316 (diff) | |
download | rails-d9b92ee11b33fed5c7a94a91415fa846705f7dd3.tar.gz rails-d9b92ee11b33fed5c7a94a91415fa846705f7dd3.tar.bz2 rails-d9b92ee11b33fed5c7a94a91415fa846705f7dd3.zip |
Added config.i18n settings gatherer to config/environment, auto-loading of all locales in config/locales/*.rb,yml, and config/locales/en.yml as a sample locale [DHH]
Diffstat (limited to 'railties/lib/rails_generator/generators/applications/app/app_generator.rb')
-rw-r--r-- | railties/lib/rails_generator/generators/applications/app/app_generator.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails_generator/generators/applications/app/app_generator.rb b/railties/lib/rails_generator/generators/applications/app/app_generator.rb index 8c9bc63fc6..d68c425871 100644 --- a/railties/lib/rails_generator/generators/applications/app/app_generator.rb +++ b/railties/lib/rails_generator/generators/applications/app/app_generator.rb @@ -65,6 +65,9 @@ class AppGenerator < Rails::Generator::Base m.template "configs/initializers/mime_types.rb", "config/initializers/mime_types.rb" m.template "configs/initializers/new_rails_defaults.rb", "config/initializers/new_rails_defaults.rb" + # Locale + m.template "configs/locales/en.yml", "config/locales/en.yml" + # Environments m.file "environments/boot.rb", "config/boot.rb" m.template "environments/environment.rb", "config/environment.rb", :assigns => { :freeze => options[:freeze], :app_name => @app_name, :app_secret => secret } @@ -143,6 +146,7 @@ class AppGenerator < Rails::Generator::Base app/views/layouts config/environments config/initializers + config/locales db doc lib |