Commit 572be1cd7005a85ce3ab5c91cd51faff71cf32f9
1 parent
62c5418f
Exists in
master
and in
29 other branches
Compiling translations in git-upgrade script
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
lib/tasks/translation.rake
| @@ -4,5 +4,8 @@ namespace :noosfero do | @@ -4,5 +4,8 @@ namespace :noosfero do | ||
| 4 | desc 'Update all translation files' | 4 | desc 'Update all translation files' |
| 5 | task :update => ['updatepo', 'noosfero:doc:rebuild'] | 5 | task :update => ['updatepo', 'noosfero:doc:rebuild'] |
| 6 | 6 | ||
| 7 | + desc 'Compiles all translations' | ||
| 8 | + task :compile => ['makemo', 'noosfero:doc:build'] | ||
| 9 | + | ||
| 7 | end | 10 | end |
| 8 | end | 11 | end |
script/git-upgrade
| @@ -52,7 +52,8 @@ upgrade_code(){ | @@ -52,7 +52,8 @@ upgrade_code(){ | ||
| 52 | 52 | ||
| 53 | git pull --quiet | 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 | upgrade_database(){ | 59 | upgrade_database(){ |