Added the Rails i18n language file to the plugin generator.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2785 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis
2009-06-10 03:39:02 +00:00
parent 97383f78d0
commit 724cf47605
3 changed files with 7 additions and 0 deletions
@@ -20,11 +20,13 @@ class RedminePluginGenerator < Rails::Generator::NamedBase
m.directory "#{plugin_path}/assets/javascripts"
m.directory "#{plugin_path}/assets/stylesheets"
m.directory "#{plugin_path}/lang"
m.directory "#{plugin_path}/config/locales"
m.directory "#{plugin_path}/test"
m.template 'README.rdoc', "#{plugin_path}/README.rdoc"
m.template 'init.rb.erb', "#{plugin_path}/init.rb"
m.template 'en.yml', "#{plugin_path}/lang/en.yml"
m.template 'en_rails_i18n.yml', "#{plugin_path}/config/locales/en.yml"
m.template 'test_helper.rb.erb', "#{plugin_path}/test/test_helper.rb"
end
end