Commit e2e83b9a8ee301eeed3bff653072fcd3fee653a4
1 parent
9f350434
Exists in
master
and in
15 other branches
Re-instance updatepo task
The standard gettext:po:update task is leaving duplicated strings in the PO files, what breaks a few gettext-related tools. So after calling gettext:po:update, we will normalize the PO files by removing duplicated strings.
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
lib/tasks/gettext.rake
| ... | ... | @@ -106,4 +106,10 @@ file 'tmp/makemo.stamp' do |t| |
| 106 | 106 | touch t.name |
| 107 | 107 | end |
| 108 | 108 | |
| 109 | +task :updatepo => 'gettext:po:update' do | |
| 110 | + Dir.glob('**/*.po').each do |po| | |
| 111 | + sh "cp #{po} #{po}.tmp && msguniq -o #{po} #{po}.tmp && rm -f #{po}.tmp" | |
| 112 | + end | |
| 113 | +end | |
| 114 | + | |
| 109 | 115 | # vim: ft=ruby | ... | ... |