]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
generate mo files only from existing po files, instead of for each plugin
authorYaohan Chen <yaohan.chen@gmail.com>
Mon, 7 Jul 2008 19:27:46 +0000 (15:27 -0400)
committerYaohan Chen <yaohan.chen@gmail.com>
Mon, 7 Jul 2008 19:27:46 +0000 (15:27 -0400)
Rakefile

index bf08c83f6670723963cc7b35c4f838c860aa5423..b24955523bcd4b4b9c07f8141dd1a7c7ada56019 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -209,8 +209,7 @@ task :buildext do
 end
 
 desc 'Generate mo files'
-task :makemo => LOCALES.map {|l|
-  ["data/locale/#{l}/LC_MESSAGES/rbot.mo"] +
-  PLUGIN_BASENAMES.map {|n| "data/locale/#{l}/LC_MESSAGES/rbot-#{n}.mo"}
-}.flatten
+task :makemo =>
+  FileList['po/*/*.po'].pathmap('%{^po,data/locale}d/LC_MESSAGES/%n.mo')
+