Sha256: 854820ac1527b450efba869a5633d778284f12310462ede7fbd11d8979eabe9f

Contents?: true

Size: 924 Bytes

Versions: 11

Compression:

Stored size: 924 Bytes

Contents

module Ecm
  module Downloads
    module Generators
      class LocalesGenerator < Rails::Generators::Base
        desc "Copies the locale files to your application"

        source_root File.expand_path('../../../../../../config/locales', __FILE__)

        def generate_locales
          copy_file "ecm.downloads.en.yml", "config/locales/ecm.downloads.en.yml"
          copy_file "ecm.downloads.de.yml", "config/locales/ecm.downloads.de.yml"

          copy_file "ecm.downloads.download_category.en.yml", "config/locales/ecm.downloads.download_category.en.yml"
          copy_file "ecm.downloads.download_category.de.yml", "config/locales/ecm.downloads.download_category.de.yml"


          copy_file "ecm.downloads.download.en.yml", "config/locales/ecm.downloads.download.en.yml"
          copy_file "ecm.downloads.download.de.yml", "config/locales/ecm.downloads.download.de.yml"
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
ecm_downloads2-1.2.2 lib/generators/ecm/downloads/locales/locales_generator.rb
ecm_downloads2-1.2.1 lib/generators/ecm/downloads/locales/locales_generator.rb
ecm_downloads2-1.2.0 lib/generators/ecm/downloads/locales/locales_generator.rb
ecm_downloads2-1.1.1 lib/generators/ecm/downloads/locales/locales_generator.rb
ecm_downloads2-1.1.0 lib/generators/ecm/downloads/locales/locales_generator.rb
ecm_downloads2-1.0.0 lib/generators/ecm/downloads/locales/locales_generator.rb
ecm_downloads-0.0.11.pre lib/generators/ecm/downloads/locales/locales_generator.rb
ecm_downloads-0.0.10.pre lib/generators/ecm/downloads/locales/locales_generator.rb
ecm_downloads-0.0.8.pre lib/generators/ecm/downloads/locales/locales_generator.rb
ecm_downloads-0.0.7.pre lib/generators/ecm/downloads/locales/locales_generator.rb
ecm_downloads-0.0.6.pre lib/generators/ecm/downloads/locales/locales_generator.rb