Project

General

Profile

« Previous | Next » 

Revision d83df960

Added by Marc Dequènes over 15 years ago

  • ID d83df96011330aef5d3ad2287b4ffcc48482b072

[evol] move i18n rake tasks into an adequate namespace

View differences:

lib/tasks/gettext.rake
require 'mycyma'
desc "Create mo-files for L10n"
task :makemo do
GetText.create_mofiles(true, "po", "locale")
end
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)
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

Also available in: Unified diff