Project

General

Profile

Download (750 Bytes) Statistics
| Branch: | Tag: | Revision:
APP_ROOT = File.dirname(File.expand_path(__FILE__))
Dir.chdir(APP_ROOT)
$: << "./lib"

ENV['LC_ALL'] = "C"

require 'rake'
require 'gettext/utils'
require 'lib/cyborghood/base.rb'

namespace :i18n do
desc "Create mo-files for l10n"
task :makemo do
GetText.create_mofiles(true, "po", "locale")
end

desc "Update pot/po files to match new version."
task :updatepo do
GetText.update_pofiles("cyborghood",
Dir.glob("lib/**/*.{rb,rhtml}"),
CyborgHood::PRODUCT + " " + CyborgHood::VERSION)
# temporary component listing
["Postman"].each do |component|
GetText.update_pofiles("cyborghood_" + component.downcase,
component.downcase,
CyborgHood::PRODUCT + " " + CyborgHood::VERSION)
end
end
end
(3-3/7)