Commit 011db1bbadeb4146487bee32f0c8d633c1f42515
Exists in
master
and in
29 other branches
Merge commit 'refs/merge-requests/163' of git://gitorious.org/noosfero/noosfero …
…into merge-requests/163
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
lib/tasks/doc.rake
... | ... | @@ -123,9 +123,7 @@ namespace :noosfero do |
123 | 123 | task :rebuild => [:clean, :build] |
124 | 124 | |
125 | 125 | def percent_translated(po_file) |
126 | - if !File.exists?(po_file) | |
127 | - raise "#{po_file}: not found" | |
128 | - end | |
126 | + return 0 unless File.exists?(po_file) | |
129 | 127 | output = `LANG=C msgfmt --output /dev/null --statistics #{po_file} 2>&1` |
130 | 128 | puts output |
131 | 129 | translated = (output =~ /([0-9]+) translated messages/) ? $1.to_i : 0 | ... | ... |