summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2008-06-07 15:48:53 -0400
committerYaohan Chen <yaohan.chen@gmail.com>2008-06-07 15:50:45 -0400
commitdd64d68b79cc41d3457c4abb6e2ec998b9721df8 (patch)
treebc9602676d3e328928cc6f0a829821367ed5884e /Rakefile
parentcaffbfa94b84569fb64ed6ecb68f9ca960deca2a (diff)
add wrapper for msgmerge to workaround gettext bug with "empty" pot files
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index b44ca95f..c1bc780e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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