Sha256: 4da3950000962b2f18c796fa4b9c9c640a3de31178a79a8a8cbafe13037f29fd

Contents?: true

Size: 623 Bytes

Versions: 15

Compression:

Stored size: 623 Bytes

Contents

module Ecm
  module News
    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.news.en.yml', 'config/locales/ecm.news.en.yml'
          copy_file 'ecm.news.de.yml', 'config/locales/ecm.news.de.yml'
          copy_file 'ecm.news.item.en.yml', 'config/locales/ecm.news.item.en.yml'
          copy_file 'ecm.news.item.de.yml', 'config/locales/ecm.news.item.de.yml'
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ecm_news2-5.2.0 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-5.1.0 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-5.0.1 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-5.0.0 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-4.0.0 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-3.0.0 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-2.0.11 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-2.0.10 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-2.0.9 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-2.0.8 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-2.0.5 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-2.0.4 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-2.0.3 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-2.0.2 lib/generators/ecm/news/locales/locales_generator.rb
ecm_news2-2.0.1 lib/generators/ecm/news/locales/locales_generator.rb