Sha256: 91b9355d01b737feb9eaff5421b70196e308221fea5e206074cbf947e97f99c8

Contents?: true

Size: 1.04 KB

Versions: 2

Compression:

Stored size: 1.04 KB

Contents

module Ecm
  module CmsCore
    module Generators
      class LocalesGenerator < ::Rails::Generators::Base
        source_root File.expand_path('../../../../../../config/locales', __FILE__)
        desc "Installs the needed locales"

        
        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           
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ecm_cms_core-0.0.8 lib/generators/ecm/cms_core/locales/locales_generator.rb
ecm_cms_core-0.0.7 lib/generators/ecm/cms_core/locales/locales_generator.rb