summaryrefslogtreecommitdiff
path: root/bin/transifexpull.sh
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-01-30 08:59:28 +0100
committerThomas Bruederli <thomas@roundcube.net>2014-01-30 08:59:28 +0100
commit8404fe9e3289107ac7507764691bac221a212255 (patch)
treebea366b3c68ccf53a6e51829ea5e32699b4c9f51 /bin/transifexpull.sh
parentcfc84e984f253c9ed75aa7260419a6032dff5123 (diff)
Updated localizations from Transifex
Diffstat (limited to 'bin/transifexpull.sh')
-rwxr-xr-xbin/transifexpull.sh6
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
+