diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2008-06-22 21:07:32 -0400 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2008-06-22 21:09:43 -0400 |
commit | afe998c0200ae87873fb015e151ecd925f544665 (patch) | |
tree | 6afab84d0c8746f3484f7f4ac9ecee3d6d2b3040 /Rakefile | |
parent | 5b255f53971ebbd542ec762940c850b0a4438b55 (diff) |
make gettext tasks output files being regenerated and sources
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -40,6 +40,7 @@ NON_PLUGIN_FILES = FileList["{lib,bin,data}/**/*.{rb,rhtml}"] - PLUGIN_FILES rgettext_proc = proc do |t| require 'gettext/utils' plugin_files, pot_file = t.prerequisites, t.name + puts "#{plugin_files.join(', ')} => #{pot_file}" GetText.rgettext(plugin_files, pot_file) end @@ -60,6 +61,7 @@ ENV['MSGMERGE_PATH'] = ENV['MSGMERGE_WRAPPER_PATH'] || 'ruby msgmerge-wrapper.rb rule(%r'^po/.+/.+\.po$' => proc {|fn| fn.pathmap '%{^po/.+/,po/}X.pot'}) do |t| require 'gettext/utils' po_file, pot_file = t.name, t.source + puts "#{pot_file} => #{po_file}" GetText.msgmerge po_file, pot_file, 'rbot' end @@ -70,6 +72,7 @@ rule(%r'^data/locale/.+/LC_MESSAGES/.+\.mo$' => proc {|fn| fn.pathmap('%d') ] }) do |t| po_file, mo_file = t.source, t.name + puts "#{po_file} => #{mo_file}" require 'gettext/utils' GetText.rmsgfmt po_file, mo_file end |