From 3fd004e2fef3bd7ef2433125a69280bd075fa2b0 Mon Sep 17 00:00:00 2001 From: Steve Strassmann Date: Fri, 26 Apr 2013 16:54:23 -0400 Subject: [PATCH] rake tasks --- rakefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/rakefile b/rakefile index 1f60a18486..fcb9d8149b 100644 --- a/rakefile +++ b/rakefile @@ -480,6 +480,20 @@ task :autodeploy_properties do end end +# --- Internationalization tasks + +desc "Extract localizable strings from sources" +task :extract_dev_strings 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 do + if ARGV.last.downcase == 'extract' + Rake::Task["extract_dev_strings"].execute + end + sh(File.join(REPO_ROOT, "i18n", "generate.py")) +end # --- Develop and public documentation --- desc "Invoke sphinx 'make build' to generate docs."