# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/switchtower.rake, and they will automatically be available to Rake.

require 'rake'

require 'gettext/utils'
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("gettext_plugin", Dir.glob("lib/*.{rb,rhtml}"),
                         "gettext_plugin 1.2.0")
end

