diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2009-06-10 03:39:02 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2009-06-10 03:39:02 +0000 |
commit | 724cf4760520101105076c77161ff55fe4d0ddfd (patch) | |
tree | 7e93c668bf16c8d3d4cf3b8ed58c03711c1605d6 /lib/generators/redmine_plugin | |
parent | 97383f78d0347ee1d97d438e35695da7e49eb641 (diff) | |
download | redmine-724cf4760520101105076c77161ff55fe4d0ddfd.tar.gz redmine-724cf4760520101105076c77161ff55fe4d0ddfd.zip |
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
Diffstat (limited to 'lib/generators/redmine_plugin')
-rw-r--r-- | lib/generators/redmine_plugin/USAGE | 2 | ||||
-rw-r--r-- | lib/generators/redmine_plugin/redmine_plugin_generator.rb | 2 | ||||
-rw-r--r-- | lib/generators/redmine_plugin/templates/en_rails_i18n.yml | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/lib/generators/redmine_plugin/USAGE b/lib/generators/redmine_plugin/USAGE index 65a45d163..2037ae143 100644 --- a/lib/generators/redmine_plugin/USAGE +++ b/lib/generators/redmine_plugin/USAGE @@ -16,3 +16,5 @@ Example: create vendor/plugins/redmine_meetings/README create vendor/plugins/redmine_meetings/init.rb create vendor/plugins/redmine_meetings/lang/en.yml + create vendor/plugins/redmine_meetings/config/locales/en.yml + create vendor/plugins/redmine_meetings/test/test_helper.rb diff --git a/lib/generators/redmine_plugin/redmine_plugin_generator.rb b/lib/generators/redmine_plugin/redmine_plugin_generator.rb index bd161a5d7..9b0db2255 100644 --- a/lib/generators/redmine_plugin/redmine_plugin_generator.rb +++ b/lib/generators/redmine_plugin/redmine_plugin_generator.rb @@ -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 diff --git a/lib/generators/redmine_plugin/templates/en_rails_i18n.yml b/lib/generators/redmine_plugin/templates/en_rails_i18n.yml new file mode 100644 index 000000000..c55090a95 --- /dev/null +++ b/lib/generators/redmine_plugin/templates/en_rails_i18n.yml @@ -0,0 +1,3 @@ +# English strings go here for Rails i18n +en: + my_label: "My label" |