Commit 9fcc5cb515f47862c682cf92e49f8bd7ef7a3fe1
1 parent
ba5ae5b5
Exists in
master
and in
9 other branches
updatepo: fix check to remove empty .pot files
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/tasks/gettext.rake
... | ... | @@ -98,7 +98,7 @@ Dir.glob('plugins/*').each do |plugindir| |
98 | 98 | } |
99 | 99 | ) |
100 | 100 | plugin_pot = File.join(po_root, "#{plugin}.pot") |
101 | - if File.exists?(plugin_pot) && system("LANG=C msgfmt --statistics --output /dev/null #{plugin_pot} 2>&1 | grep -q '^0 translated messages.'") | |
101 | + if File.exists?(plugin_pot) && system("LANG=C msgfmt --statistics --output /dev/null #{plugin_pot} 2>&1 | grep -q '^0 translated messages.$'") | |
102 | 102 | rm_f plugin_pot |
103 | 103 | end |
104 | 104 | sh 'find', po_root, '-type', 'd', '-empty', '-delete' | ... | ... |