Project

General

Profile

Download (817 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'
require 'gettext/utils'
44648f83 Marc Dequènes (Duck)
require 'lib/cyborghood/config_setup'
d4b5798a Marc Dequènes (Duck)
require 'lib/cyborghood/info'
7cae0102 Marc Dequènes (Duck)
namespace :i18n do
desc "Create mo-files for l10n"
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