From 572be1cd7005a85ce3ab5c91cd51faff71cf32f9 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 5 Feb 2010 15:52:37 -0300 Subject: [PATCH] Compiling translations in git-upgrade script --- lib/tasks/translation.rake | 3 +++ script/git-upgrade | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/tasks/translation.rake b/lib/tasks/translation.rake index 9c2e3cf..e210dde 100644 --- a/lib/tasks/translation.rake +++ b/lib/tasks/translation.rake @@ -4,5 +4,8 @@ namespace :noosfero do desc 'Update all translation files' task :update => ['updatepo', 'noosfero:doc:rebuild'] + desc 'Compiles all translations' + task :compile => ['makemo', 'noosfero:doc:build'] + end end diff --git a/script/git-upgrade b/script/git-upgrade index 9a4c465..f1ebf9c 100755 --- a/script/git-upgrade +++ b/script/git-upgrade @@ -52,7 +52,8 @@ upgrade_code(){ git pull --quiet - rake makemo 2>/dev/null || (echo "Translations compilation failed; run manually to check"; false) + say "Compiling translations" + rake noosfero:translations:compile 2>/dev/null || (echo "Translations compilation failed; run manually to check"; false) } upgrade_database(){ -- libgit2 0.21.2