new file: scripts/tx-sync.sh
-tx pull $* > /dev/null &&
-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 (<>) {
translators=$(while read mode pofile; do
translator=$(git diff --cached -- ${pofile} | perl -le '
while (<>) {
git commit -em "Update translations from Transifex
Many thanks to:
git commit -em "Update translations from Transifex
Many thanks to:
--- /dev/null
+#!/usr/bin/env bash
+quasselsrc=/usr/src/quassel
+localpobranch=i18n-tx-sync
+
+pushd "$quasselsrc" && (
+ currb=$(git name-rev --name-only HEAD)
+ git checkout -q $localpobranch && (
+ EDITOR=/bin/true VISUAL=/usr/bin/editor "$quasselsrc"/po/pull-from-transifex.sh -f &&
+ git push -q
+ ); git checkout -q "$currb"
+); popd