From c25e0d703dbda8c0f5b8127256acd78f4e32fbc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Sun, 11 Apr 2010 11:07:38 +0000 Subject: [PATCH] scripts: Fix update-po.sh script This fixes the untranslated strings in --help output. --- scripts/update-po.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/update-po.sh b/scripts/update-po.sh index 4fc9e533..29c4b681 100755 --- a/scripts/update-po.sh +++ b/scripts/update-po.sh @@ -1,6 +1,9 @@ +#!/bin/sh -find pisi -iname '*.py' | grep -v pisi/cli/commands.py >exclude -python tools/pygettext.py -D -X exclude -o po/pisi.pot pisi pisi-cli scripts /usr/lib/python2.4/optparse.py +PYTHON_VER=`python -c "import sys; print '%d.%d' % sys.version_info[:2]"` + +find pisi -iname '*.py' | grep -v pisi/cli/commands.py > exclude +python scripts/pygettext.py -D -X exclude -o po/pisi.pot pisi pisi-cli /usr/lib/python$PYTHON_VER/optparse.py for lang in po/*.po do msgmerge -U $lang po/pisi.pot