Revision d83df960
Added by Marc Dequènes about 16 years ago
- ID d83df96011330aef5d3ad2287b4ffcc48482b072
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
[evol] move i18n rake tasks into an adequate namespace