From 63dd809b11f6482af375144f79b1350678dabd99 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Wed, 12 Nov 2014 09:07:25 +0100 Subject: Remove empty labels and translation files --- bin/transifexpull.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3