summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2008-06-06 16:41:20 -0400
committerYaohan Chen <yaohan.chen@gmail.com>2008-06-06 16:41:20 -0400
commitb233d010765808cfbf34dc763ab9013968212981 (patch)
tree459c8e9d57b9a841da1dadefb983dbe61f7e4fa3 /Rakefile
parent33c336af346dc08b4f4f4951dd6eae7150cef481 (diff)
Revert "each plugin uses its own po file"
This reverts commit 33c336af346dc08b4f4f4951dd6eae7150cef481.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 1 insertions, 9 deletions
diff --git a/Rakefile b/Rakefile
index b44ca95f..f0a42717 100644
--- a/Rakefile
+++ b/Rakefile
@@ -38,15 +38,7 @@ end
desc "Update pot/po files."
task :updatepo do
require 'gettext/utils'
- plugin_files = Dir.glob('data/rbot/plugins/**/*.rb')
- # all except plugin files use the rbot textdomain
- GetText.update_pofiles("rbot",
- Dir.glob("{lib,bin,data}/**/*.{rb,rhtml}") - plugin_files, "rbot")
- # each plugin uses its own textdomain
- plugin_files.each do |f|
- basename = File.basename(f, '.rb')
- GetText.update_pofiles("rbot-#{basename}", f, 'rbot')
- end
+ GetText.update_pofiles("rbot", Dir.glob("{lib,bin,data}/**/*.{rb,rhtml}"), "rbot")
end
desc "Create mo-files"