Class: Ecm::CmsCore::Generators::LocalesGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/ecm/cms_core/locales/locales_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_localesObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/generators/ecm/cms_core/locales/locales_generator.rb', line 9

def generate_locales
  copy_file "ecm.cms_core.en.yml", "config/locales/ecm.cms_core.en.yml"
  copy_file "ecm.cms_core.forms.en.yml", "config/locales/ecm.cms_core.forms.en.yml"
  copy_file "ecm.cms_core.folder.en.yml", "config/locales/ecm.cms_core.folder.en.yml"
  copy_file "ecm.cms_core.template.en.yml", "config/locales/ecm.cms_core.template.en.yml"
  
  copy_file "ecm.cms_core.de.yml", "config/locales/ecm.cms_core.de.yml"
  copy_file "ecm.cms_core.forms.de.yml", "config/locales/ecm.cms_core.forms.de.yml"
  copy_file "ecm.cms_core.folder.de.yml", "config/locales/ecm.cms_core.folder.de.yml"
  copy_file "ecm.cms_core.template.de.yml", "config/locales/ecm.cms_core.template.de.yml"
end