summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2008-07-07 15:27:46 -0400
committerYaohan Chen <yaohan.chen@gmail.com>2008-07-07 15:27:46 -0400
commit901564e1cb54985213014e376c6e7ab626505077 (patch)
tree382a034b57f30d2ad5cf7bc3324e1fb470117e45
parentfda5bee254ef5b97b2ff0e69741cf2f04d2d4b29 (diff)
generate mo files only from existing po files, instead of for each plugin
-rw-r--r--Rakefile7
1 files changed, 3 insertions, 4 deletions
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')
+