summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2007-07-09 08:31:45 +0000
committerYaohan Chen <yaohan.chen@gmail.com>2007-07-09 08:31:45 +0000
commit069d8c8dd5ab841cc5efcfeae1cdc2e7f93c2976 (patch)
tree49df20137605bccaeff99ef4340c0d3551f090f7 /Rakefile
parent47fd0312cf67aab35ba3cfd3ef898f83b09a7f0f (diff)
integrated ruby-gettext
modified a few files to allow translated messages created gettext template file initialized gettext files for Japanese and Simplified Chinese
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 6ad7f1bf..7dc69e5f 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}/**/*.{rb,rhtml}"), "rbot")
+end
+
+desc "Create mo-files"
+task :makemo do
+ require 'gettext/utils'
+ GetText.create_mofiles(true)
+end