diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/transifexpull.sh | 6 |
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 |