State of the Belarusian Free / Open Source translations
Alexander Mikhailian <[email protected]>
| Newsgroups | gmane.comp.internationalization.belarusian |
|---|---|
| Message-ID | <[email protected]> |
Dear All,
While reading the comments about narkomauka vs. taraskievica, as well as the
compendium discussion, I realized that I am lacking statistics on the
Belarusian translation effort.
I thus made a little research with the aim to publish statistics on the
subject.
On May, 29 the Google Code Search query "file:/be\.po$" [1] returned 614 hits.
A little script [2] downloaded 456 .po files containing belarusian
translations. A tarball of these files is available at [3].
It was then a matter of another small scrit [4] to sort the translations by
the last translator and to uniquify the msgstrs.
SUMMARY
There is only a dozen of names in the list of last translators.
Most of the translations are associated with Ales Nyakhaychyk.
A vast majority of translations is indeed in tarasckeivica/classic/alternative
writing.
Ales Nyakhaychyk.po 25840 taraskievica
Alexey Ivaniuk aka Varjat.po 17 ?
Anastasya Larina.po 54 narkomauka
Andrei Darashenka.po 565 narkomauka
Automatically generated.po 475 ?
FULL NAME.po 299 ?
Hleb Rubanau.po 232 narkomauka
Hleb Valoska.po 1469 ?
Ihar Hrachyshka.po 3658 taraskievica
Ihar Viarheichyk.po 385 ?
Pavel Piatruk.po 1008 narkomauka
Robert Ancell.po 86 ?
Smaliakou Zmicier.po 1076 narkomauka
szk.po 253 narkomauka
unknown.po 633 ?
Vital Khilko.po 274 taraskievica
Please feel free to comment on the above stats and to improve them.
[1] http://www.google.com/codesearch?q=+file:/be%5C.po%24
[2] get-be-po.sh
[3] http://www.mova.org/misc/be_po.tar.bz2
[4] sort-po.sh
_______________________________________________
I18n mailing list
[email protected]
http://mova.org/cgi-bin/mailman/listinfo/i18n
sort-po.sh
(application/x-sh, 338 B)
#!/bin/bash for i in *.po do name=`grep -h Last-Translator $i |sed 's/"Last-Translator: \(.*\) <.*/\1/'` mkdir -p "authors/$name" mv $i "authors/$name/" done for i in authors/* do bn=`basename "$i"` cd "$i" msgcat -u *po > "../$bn.po" cd ../../ done for i in authors/*po do echo "$i: " grep msgstr "$i" |wc -l done
get-be-po.sh
(application/x-sh, 2 KB)
#!/bin/bash
TMPDIR=/tmp
MAXRESULTS=50
STARTINDEX=1
ENDINDEX=651
# unpack the tar.gz and store the .po
function targz {
outfile=`basename $packageuri`
wget -O $outfile $packageuri
tar -C $TMPDIR -xzf $outfile $filename
checksum=`sha1sum $TMPDIR/$filename |awk '{print $1}'`
mv $TMPDIR/$filename $checksum.po
}
# unpack the tar.bz2 and store the .po
function tarbz2 {
outfile=`basename $packageuri`
wget -O $outfile $packageuri
tar -C $TMPDIR -xjf $outfile $filename
checksum=`sha1sum $TMPDIR/$filename |awk '{print $1}'`
mv $TMPDIR/$filename $checksum.po
}
# get the .po file over http
function plainpo {
outfile=`basename $filename`
wget -O $outfile $packageuri/$filename
checksum=`sha1sum $outfile |awk '{print $1}'`
mv $outfile $checksum.po
}
function plainsvn {
outfile=`basename $filename`
svn export $packageuri/$filename
checksum=`sha1sum $outfile |awk '{print $1}'`
mv $outfile $checksum.po
}
for i in `seq $STARTINDEX $MAXRESULTS $ENDINDEX`
do
# download the gdata feeds
wget -q -O $i.tmp "http://www.google.com/codesearch/feeds/search?q=file%3A%2Fbe%5C.po%24&start-index=$i&max-results=$MAXRESULTS" && xmllint --format $i.tmp > $i.xml
rm $i.tmp
# exctract the package name and the file name
xsltproc parse-gdata.xsl $i.xml |while read packagename; read packageuri; read filename
do
# guess the package type
# tar.bz2 over http
if [[ $packageuri =~ "^http://.*tar.gz$" ]]
then
echo "Unpacking $packageuri..."
targz
# tar.gz over http
elif [[ $packageuri =~ "^http://.*tar.bz2$" ]]
then
echo "Unpacking $packageuri..."
tarbz2
# plain text file over http
elif [[ $packageuri =~ "^http://" && $filename =~ "\/be\.po$" ]]
then
echo "Unpacking $packageuri..."
plainpo
# file in an svn repository
elif [[ $packageuri =~ "^svn://" && $filename =~ "\/be\.po$" ]]
then
echo "Unpacking $packageuri..."
plainsvn
fi
done
done