projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PR-540] Add a new feature flag
[quassel.git]
/
po
/
pull-from-transifex.sh
diff --git
a/po/pull-from-transifex.sh
b/po/pull-from-transifex.sh
index
bd513e6
..
edc2b35
100755
(executable)
--- a/
po/pull-from-transifex.sh
+++ b/
po/pull-from-transifex.sh
@@
-1,7
+1,10
@@
#!/bin/bash
#!/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 (<>) {
translators=$(while read mode pofile; do
translator=$(git diff --cached -- ${pofile} | perl -le '
while (<>) {
@@
-18,8
+21,15
@@
git add po/*.po && (
echo " - ${lang}: ${translator}"
done < <(git status --porcelain po/*.po | egrep '^[AM] '))
echo " - ${lang}: ${translator}"
done < <(git status --porcelain po/*.po | egrep '^[AM] '))
- git commit -em "Update translations from Transifex
+ git commit -m "Update translations from Transifex
+
+ $(for i in po/*.po; do
+ msgfmt --statistics $i
+ done |&
+ perl -ne '/([0-9]+) translated/ and $translated+=$1;
+ END { printf("%d translated messages", $translated); }'
+ )
Many thanks to:
Many thanks to:
-${translators}"
po/*.po
+${translators}"
)
)