Commit 7644d6b0 authored by Bruno Coudoin's avatar Bruno Coudoin

Taken the code from Jonh Wendell to update our list_translators.sh for git.

parent ab91b4cb
#!/bin/bash #!/bin/sh
# usage: tranlators.sh LAST_RELEASE_TAG # usage: translators.sh <LAST_COMMIT_ID>
# Changed so that the list comes out sorted by .po file name echo "UI translations:"
# Mariano Suárez-Alvarez, Tue Feb 17 16:59:28 ART 2004 git log $1..HEAD --pretty=format:%an --name-only -- po/*.po | sed -e :a -e '$!N;s|\npo/\(.*\)\.po| \(\1\)|;ta' | sort -u | sed '$!N;s/^\n//'
if [ ! $# -eq 1 ] ; then
echo "usage: $0 LAST_RELEASE_TAG"
exit 1;
fi
svn diff -r $1 po/ChangeLog | \
(awk '/\+.*[a-z][a-zA-Z@_]*\.po/ { print gensub ("[:,]", "\n", "g", $3); }' | \
while read file; do
if [ -z "$file" ]; then continue; fi
echo "(${file%%.po})" $(grep "Last-Translator" po/$file | sed -e 's/"Last-Translator: *\(.*\) *<.*/\1/')
done) | sort | uniq | sed -e 's/\((.*)\) \(.*\)/\2 \1/'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment