Project

General

Profile

Download (1001 Bytes) Statistics
| Branch: | Tag: | Revision:
d4b5798a Marc Dequènes (Duck)
# to allow in-place run
$: << File.join(File.dirname(__FILE__), ".", "lib")
7cae0102 Marc Dequènes (Duck)
ENV['LC_ALL'] = "C"

require 'rake'
598aa662 Marc Dequènes (Duck)
require 'gettext/tools'
9cceb81a Marc Dequènes (Duck)
require 'cyborghood/base/config_setup'
require 'cyborghood/base/info'
7cae0102 Marc Dequènes (Duck)
namespace :i18n do
598aa662 Marc Dequènes (Duck)
desc "Create mo-files for l10n"
7cae0102 Marc Dequènes (Duck)
task :makemo do
d4b5798a Marc Dequènes (Duck)
GetText.create_mofiles(true, "po", CyborgHood::Config::L10N_DIR)
7cae0102 Marc Dequènes (Duck)
end

desc "Update pot/po files to match new version."
task :updatepo do
ccab26de Marc Dequènes (Duck)
GetText.update_pofiles("cyborghood",
7cae0102 Marc Dequènes (Duck)
Dir.glob("lib/**/*.{rb,rhtml}"),
CyborgHood::PRODUCT + " " + CyborgHood::VERSION)
# temporary component listing
d4b5798a Marc Dequènes (Duck)
["postman"].each do |component|
GetText.update_pofiles("cyborghood_" + component,
File.join(CyborgHood::Config::BIN_DIR, component),
7cae0102 Marc Dequènes (Duck)
CyborgHood::PRODUCT + " " + CyborgHood::VERSION)
end
end
end
ef68cb26 Marc Dequènes (Duck)
namespace :test do
require 'rake/testtask'

Rake::TestTask.new(:spec) do |t|
t.libs.push "spec"
t.test_files = FileList['spec/**/*.rb']
t.verbose = true
end
end