From: Daniel Albers Date: Sun, 22 Jan 2012 23:12:38 +0000 (+0100) Subject: new file: po/pull-from-transifex.sh X-Git-Tag: 0.8-beta1~44 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=e60960e560a45f4f732dd1066af5ba71c04e60ea new file: po/pull-from-transifex.sh Updates translations via `tx` and commits --- diff --git a/po/pull-from-transifex.sh b/po/pull-from-transifex.sh new file mode 100755 index 00000000..cbefc820 --- /dev/null +++ b/po/pull-from-transifex.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +tx pull && +git add po/*.po && ( + translators=$(while read mode pofile; do + translator=$(perl -ne 's/^"Last-Translator: (.*?)(?:\\n)?"$/\1/ && print $1;' ${pofile}) + lang=${pofile%.po} + lang=${lang#po/} + echo " - ${lang}: ${translator}" + done < <(git status --porcelain po/*.po | egrep '^[AM] ')) + + git commit -m "Update translations from Transifex + +Many thanks to: +${translators}" po/*.po +)