summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-11-12 09:07:25 +0100
committerThomas Bruederli <bruederli@kolabsys.com>2014-11-12 09:07:25 +0100
commit63dd809b11f6482af375144f79b1350678dabd99 (patch)
treeee79d085cfcd6bc11a293f77e236dcc7cf0add44 /bin
parentcc6c7e83b53eb0c33d19b67081a489fb01b6f05e (diff)
Remove empty labels and translation files
Diffstat (limited to 'bin')
-rwxr-xr-xbin/transifexpull.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/transifexpull.sh b/bin/transifexpull.sh
index 7415c02fd..fe978d57d 100755
--- a/bin/transifexpull.sh
+++ b/bin/transifexpull.sh
@@ -6,7 +6,7 @@
# Note: there's a bug in txclib, so if the command below doesn't
# work see https://github.com/transifex/transifex-client/commit/a80320735973dd608b48520bf3b89ad53e2b088b
-tx --debug pull -a --mode translator
+tx --debug pull -a -f --mode translator
PWD=`dirname "$0"`
@@ -18,8 +18,8 @@ do_clean()
echo "Cleaning $1"
# remove untranslated/empty texts
- perl -pi -e "s/^\\\$labels\[[^]]+\]\s+=\s+'';\n//" $1
- perl -pi -e "s/^\\\$messages\[[^]]+\]\s+=\s+'';\n//" $1
+ perl -pi -e "s/^\\\$(labels|messages)\[[^]]+\]\s+=\s+'';\n//" $1
+ perl -pi -e "s/^\\\$(labels|messages)\[[^]]+\]\s+=\s+\"\";\n//" $1
# remove variable initialization
perl -pi -e "s/^\\\$(labels|messages)\s*=\s*array\(\);\n//" $1
# remove (one-line) comments