Revision 1caaf4a7
Added by Marc Dequènes over 14 years ago
- ID 1caaf4a7394cd47aaf04c28578ee3391fd9062fe
lib/tasks/gettext.rake | ||
---|---|---|
|
||
require 'gettext/utils'
|
||
require 'mycyma'
|
||
|
||
|
||
namespace :i18n do
|
||
desc "Create mo-files for l10n"
|
||
task :makemo do
|
||
require 'gettext/utils'
|
||
GetText.create_mofiles(true, "po", "locale")
|
||
end
|
||
|
||
desc "Update pot/po files to match new version."
|
||
task :updatepo do
|
||
require 'gettext/utils'
|
||
GetText.update_pofiles(MyCyma::Info::app_name,
|
||
Dir.glob("{app,lib}/**/*.{rb,rhtml}"),
|
||
MyCyma::Info::versioned_name)
|
Also available in: Unified diff
[fix] require 'gettext/utils' only in the needed tasks, as it break other tasks (like 'doc:app'