|
|
|
require 'gettext/utils'
|
|
require 'mycyma'
|
|
|
|
|
|
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(MyCyma::Info::app_name,
|
|
Dir.glob("{app,lib}/**/*.{rb,rhtml}"),
|
|
MyCyma::Info::versioned_name)
|
|
end
|
|
end
|
|
|