X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=Rakefile;h=7a6bd81ea6b9eddf05554a796bd317f8408bc33f;hb=09404cd444f9a9acacbffcb917b180454bf95c7e;hp=6ad7f1bf64c6ad9c517633e63e2c4cc3f6763108;hpb=2a27c12fffa359898c5601a211fe19425da82fa6;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/Rakefile b/Rakefile index 6ad7f1bf..7a6bd81e 100644 --- a/Rakefile +++ b/Rakefile @@ -35,3 +35,14 @@ Rake::GemPackageTask.new(spec) do |pkg| pkg.need_tar = true end +desc "Update pot/po files." +task :updatepo do + require 'gettext/utils' + GetText.update_pofiles("rbot", Dir.glob("{lib,bin,data}/**/*.{rb,rhtml}"), "rbot") +end + +desc "Create mo-files" +task :makemo do + require 'gettext/utils' + GetText.create_mofiles(true) +end