l10n: Switch from pygettext to xgettext

Also add pisi.xml mimetype file. Remove scripts/update-po.sh file.
This commit is contained in:
Metin Akdere
2011-05-31 05:10:58 +00:00
parent 3f3d9e4276
commit 0a121747e3
3 changed files with 80 additions and 14 deletions
-13
View File
@@ -1,13 +0,0 @@
#!/bin/sh
PYTHON_VER=`python -c "import sys; print '%d.%d' % sys.version_info[:2]"`
OPTPARSE_PY=/usr/lib/python$PYTHON_VER/optparse.py
find pisi -iname '*.py' | grep -v pisi/cli/commands.py > exclude
echo "$OPTPARSE_PY" >> exclude
python scripts/pygettext.py -D -X exclude -o po/pisi.pot pisi pisi-cli $OPTPARSE_PY
for lang in po/*.po
do
msgmerge --update --no-wrap --sort-by-file $lang po/pisi.pot
done
rm exclude