diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2008-07-07 15:27:46 -0400 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2008-07-07 15:27:46 -0400 |
commit | 901564e1cb54985213014e376c6e7ab626505077 (patch) | |
tree | 382a034b57f30d2ad5cf7bc3324e1fb470117e45 /Rakefile | |
parent | fda5bee254ef5b97b2ff0e69741cf2f04d2d4b29 (diff) |
generate mo files only from existing po files, instead of for each plugin
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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') + |