root/Rakefile @ 6c7c4fde
ccab26de | Marc Dequènes (Duck) | APP_ROOT = File.dirname(File.expand_path(__FILE__))
|
|
Dir.chdir(APP_ROOT)
|
|||
7cae0102 | Marc Dequènes (Duck) | $: << "./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
|
|||
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
|
|||
["Postman"].each do |component|
|
|||
ccab26de | Marc Dequènes (Duck) | GetText.update_pofiles("cyborghood_" + component.downcase,
|
|
7cae0102 | Marc Dequènes (Duck) | component.downcase,
|
|
CyborgHood::PRODUCT + " " + CyborgHood::VERSION)
|
|||
end
|
|||
end
|
|||
end
|