From 901564e1cb54985213014e376c6e7ab626505077 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Mon, 7 Jul 2008 15:27:46 -0400 Subject: generate mo files only from existing po files, instead of for each plugin --- Rakefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index bf08c83f..b2495552 100644 --- 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') + -- cgit v1.2.3