diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2007-07-09 08:31:45 +0000 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2007-07-09 08:31:45 +0000 |
commit | 069d8c8dd5ab841cc5efcfeae1cdc2e7f93c2976 (patch) | |
tree | 49df20137605bccaeff99ef4340c0d3551f090f7 /Rakefile | |
parent | 47fd0312cf67aab35ba3cfd3ef898f83b09a7f0f (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-- | Rakefile | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |