X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=po%2Fpull-from-transifex.sh;h=44b97666173598f2240482716cbd8c57c8ed0961;hp=bd513e6aef5b068789cc69b8b5e7adaf4c75c680;hb=221b0a8e10afc3f2c9148caf3cb727760a205eb8;hpb=982bfbf8081be22ce7ce08adcf3ba92361ee7ca5 diff --git a/po/pull-from-transifex.sh b/po/pull-from-transifex.sh index bd513e6a..44b97666 100755 --- a/po/pull-from-transifex.sh +++ b/po/pull-from-transifex.sh @@ -1,7 +1,10 @@ #!/bin/bash -tx pull $* && -git add po/*.po && ( +tx pull -a $* > /dev/null && +for po in po/*.po; do + basename "${po%.po}" +done | sort > po/LINGUAS && +git add po/*.po po/LINGUAS && ( translators=$(while read mode pofile; do translator=$(git diff --cached -- ${pofile} | perl -le ' while (<>) { @@ -21,5 +24,5 @@ git add po/*.po && ( git commit -em "Update translations from Transifex Many thanks to: -${translators}" po/*.po +${translators}" )