]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
rename plugin_files to source_files in rgettext_proc
authorYaohan Chen <yaohan.chen@gmail.com>
Mon, 23 Jun 2008 01:08:16 +0000 (21:08 -0400)
committerYaohan Chen <yaohan.chen@gmail.com>
Mon, 23 Jun 2008 01:09:43 +0000 (21:09 -0400)
because the proc is used for non plugin files too

Rakefile

index 5011b66eab65d4b485a590592132a9278ed5c54b..6b321fdc166d400fafa8911e802bdc92a885b292 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -39,9 +39,9 @@ PLUGIN_FILES = FileList['data/rbot/plugins/**/*.rb']
 NON_PLUGIN_FILES = FileList["{lib,bin,data}/**/*.{rb,rhtml}"] - PLUGIN_FILES
 rgettext_proc = proc do |t|
   require 'gettext/utils'
-  plugin_files, pot_file = t.prerequisites, t.name
-  puts "#{plugin_files.join(', ')} => #{pot_file}"
-  GetText.rgettext(plugin_files, pot_file)
+  source_files, pot_file = t.prerequisites, t.name
+  puts "#{source_files.join(', ')} => #{pot_file}"
+  GetText.rgettext(source_files, pot_file)
 end
 
 # generate pot file for non-plugin files