Commit 65a895e9 by Calen Pennington

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

parent c7bf2821
...@@ -7,11 +7,8 @@ namespace :i18n do ...@@ -7,11 +7,8 @@ namespace :i18n do
sh(File.join(REPO_ROOT, "i18n", "extract.py")) sh(File.join(REPO_ROOT, "i18n", "extract.py"))
end end
desc "Compile localizable strings from sources. With optional flag 'extract', will extract strings first." desc "Compile localizable strings from sources, extracting strings first."
task :generate => "i18n:validate:gettext" do task :generate => "i18n:extract" do
if ARGV.last.downcase == 'extract'
Rake::Task["i18n:extract"].execute
end
sh(File.join(REPO_ROOT, "i18n", "generate.py")) sh(File.join(REPO_ROOT, "i18n", "generate.py"))
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment