Run an extract before running generate, so that you have all the necessary files

This commit is contained in:
Calen Pennington
2014-01-22 10:00:44 -05:00
parent c7bf282111
commit 65a895e98e

View File

@@ -7,11 +7,8 @@ namespace :i18n do
sh(File.join(REPO_ROOT, "i18n", "extract.py"))
end
desc "Compile localizable strings from sources. With optional flag 'extract', will extract strings first."
task :generate => "i18n:validate:gettext" do
if ARGV.last.downcase == 'extract'
Rake::Task["i18n:extract"].execute
end
desc "Compile localizable strings from sources, extracting strings first."
task :generate => "i18n:extract" do
sh(File.join(REPO_ROOT, "i18n", "generate.py"))
end