Project

General

Profile

« Previous | Next » 

Revision 50ad777d

Added by Bryan Kearney over 9 years ago

Plugins should support i18n. This commit adds the basics, but the engineers need to start translating code

View differences:

Rakefile
puts "Rubocop not loaded"
end
namespace :gettext do
desc "Update pot file"
task :find do
require "hammer_cli_csv/version"
require "hammer_cli_csv/i18n"
require 'gettext/tools'
domain = HammerCLICsv::I18n::LocaleDomain.new
GetText.update_pofiles(domain.domain_name, domain.translated_files, "#{domain.domain_name} #{HammerCLICsv.version}", :po_root => domain.locale_dir)
end
end
task :default do
Rake::Task['rubocop'].execute
end

Also available in: Unified diff