root/lib/tasks/gettext.rake @ 6ee71201
b689e231 | Marc Dequènes (Duck) | ||
require 'mycyma'
|
|||
d83df960 | Marc Dequènes (Duck) | namespace :i18n do
|
|
desc "Create mo-files for l10n"
|
|||
task :makemo do
|
|||
1caaf4a7 | Marc Dequènes (Duck) | require 'gettext/utils'
|
|
d83df960 | Marc Dequènes (Duck) | GetText.create_mofiles(true, "po", "locale")
|
|
end
|
|||
b689e231 | Marc Dequènes (Duck) | ||
d83df960 | Marc Dequènes (Duck) | desc "Update pot/po files to match new version."
|
|
task :updatepo do
|
|||
1caaf4a7 | Marc Dequènes (Duck) | require 'gettext/utils'
|
|
d83df960 | Marc Dequènes (Duck) | GetText.update_pofiles(MyCyma::Info::app_name,
|
|
Dir.glob("{app,lib}/**/*.{rb,rhtml}"),
|
|||
MyCyma::Info::versioned_name)
|
|||
end
|
|||
b689e231 | Marc Dequènes (Duck) | end
|