Sha256: 74eaf363e57819d7342c465a674726eed30ee122de03618b288b87379c0f09e1

Contents?: true

Size: 771 Bytes

Versions: 20

Compression:

Stored size: 771 Bytes

Contents

# These tasks wrap tasks from the gettext-setup gem, used when generating
# translation files. If you want to use a new task in the gettext-setup
# gem, add a wrapper for it here to expose it in the Puppet repo.
namespace :gettext do
  task :load_gettext_tasks do
    spec = Gem::Specification.find_by_name 'gettext-setup'
    load "#{spec.gem_dir}/lib/tasks/gettext.rake"
    GettextSetup.initialize(File.absolute_path('../locales', File.dirname(__FILE__)))
  end

  desc "Generate a new POT file"
  task :generate_pot => :load_gettext_tasks do
    Rake::Task["gettext:pot"].invoke
  end

  desc "Generate a PO file for the given locale"
  task :generate_po, [:language] => :load_gettext_tasks do |t, args|
    Rake::Task["gettext:po"].invoke(args[:language])
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-4.9.4 tasks/i18n.rake
puppet-4.9.4-x86-mingw32 tasks/i18n.rake
puppet-4.9.4-x64-mingw32 tasks/i18n.rake
puppet-4.9.4-universal-darwin tasks/i18n.rake
puppet-4.9.3 tasks/i18n.rake
puppet-4.9.3-x86-mingw32 tasks/i18n.rake
puppet-4.9.3-x64-mingw32 tasks/i18n.rake
puppet-4.9.3-universal-darwin tasks/i18n.rake
puppet-4.9.2 tasks/i18n.rake
puppet-4.9.2-x86-mingw32 tasks/i18n.rake
puppet-4.9.2-x64-mingw32 tasks/i18n.rake
puppet-4.9.2-universal-darwin tasks/i18n.rake
puppet-4.9.1 tasks/i18n.rake
puppet-4.9.1-x86-mingw32 tasks/i18n.rake
puppet-4.9.1-x64-mingw32 tasks/i18n.rake
puppet-4.9.1-universal-darwin tasks/i18n.rake
puppet-4.9.0 tasks/i18n.rake
puppet-4.9.0-x86-mingw32 tasks/i18n.rake
puppet-4.9.0-x64-mingw32 tasks/i18n.rake
puppet-4.9.0-universal-darwin tasks/i18n.rake