diff options
Diffstat (limited to 'bin/transifexpull.sh')
-rwxr-xr-x | bin/transifexpull.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/transifexpull.sh b/bin/transifexpull.sh index ba26a07f1..7415c02fd 100755 --- a/bin/transifexpull.sh +++ b/bin/transifexpull.sh @@ -36,3 +36,9 @@ done for file in $PWD/../plugins/*/localization/*.inc; do do_clean $file done + +# remove empty localization files +for file in $PWD/../program/localization/*/labels.inc; do grep -q -E '\$labels' $file || rm $file; done +for file in $PWD/../program/localization/*/messages.inc; do grep -q -E '\$messages' $file || rm $file; done +for file in $PWD/../plugins/*/localization/*.inc; do grep -q -E '\$(labels|messages)' $file || rm $file; done + |