Commit 572be1cd7005a85ce3ab5c91cd51faff71cf32f9

Authored by Antonio Terceiro
1 parent 62c5418f

Compiling translations in git-upgrade script

lib/tasks/translation.rake
... ... @@ -4,5 +4,8 @@ namespace :noosfero do
4 4 desc 'Update all translation files'
5 5 task :update => ['updatepo', 'noosfero:doc:rebuild']
6 6  
  7 + desc 'Compiles all translations'
  8 + task :compile => ['makemo', 'noosfero:doc:build']
  9 +
7 10 end
8 11 end
... ...
script/git-upgrade
... ... @@ -52,7 +52,8 @@ upgrade_code(){
52 52  
53 53 git pull --quiet
54 54  
55   - rake makemo 2>/dev/null || (echo "Translations compilation failed; run manually to check"; false)
  55 + say "Compiling translations"
  56 + rake noosfero:translations:compile 2>/dev/null || (echo "Translations compilation failed; run manually to check"; false)
56 57 }
57 58  
58 59 upgrade_database(){
... ...