3 tx pull -a $* > /dev/null &&
6 done | sort > po/LINGUAS &&
7 git add po/*.po po/LINGUAS && (
8 translators=$(while read mode pofile; do
9 translator=$(git diff --cached -- ${pofile} | perl -le '
11 if (/^(?:\+(?:#|.*?:)|[ +]"Last-Translator:) *(.*?)(<[^@>]+@[^>]+>)/p) {
12 $xltrs{$2} = $1 unless $xltrs{$2};
13 last if $& =~ /Last-Translator:/;
16 push(@out, $n.$e) while (($e, $n) = each %xltrs);
17 print(join(", ", @out));
21 echo " - ${lang}: ${translator}"
22 done < <(git status --porcelain po/*.po | egrep '^[AM] '))
24 git commit -em "Update translations from Transifex