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