diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2008-06-07 15:48:53 -0400 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2008-06-07 15:50:45 -0400 |
commit | dd64d68b79cc41d3457c4abb6e2ec998b9721df8 (patch) | |
tree | bc9602676d3e328928cc6f0a829821367ed5884e /Rakefile | |
parent | caffbfa94b84569fb64ed6ecb68f9ca960deca2a (diff) |
add wrapper for msgmerge to workaround gettext bug with "empty" pot files
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -37,6 +37,12 @@ end desc "Update pot/po files." task :updatepo do + # ruby-gettext treats empty output from msgmerge as error, causing this task to + # fail. we provide a wrapper to work around it. see bin/msgmerge-wrapper.rb for + # details + ENV['REAL_MSGMERGE_PATH'] = ENV['MSGMERGE_PATH'] + ENV['MSGMERGE_PATH'] = 'bin/msgmerge-wrapper.rb' + require 'gettext/utils' plugin_files = Dir.glob('data/rbot/plugins/**/*.rb') # all except plugin files use the rbot textdomain |