root/Rakefile @ b696db6e
7cae0102 | Marc Dequènes (Duck) | Dir.chdir(File.dirname(File.expand_path(__FILE__)))
|
|
$: << "./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::PRODUCT,
|
|||
Dir.glob("lib/**/*.{rb,rhtml}"),
|
|||
CyborgHood::PRODUCT + " " + CyborgHood::VERSION)
|
|||
# temporary component listing
|
|||
["Postman"].each do |component|
|
|||
GetText.update_pofiles(CyborgHood::PRODUCT + "_" + component,
|
|||
component.downcase,
|
|||
CyborgHood::PRODUCT + " " + CyborgHood::VERSION)
|
|||
end
|
|||
end
|
|||
end
|