Skip to content

Commit

Permalink
i18n: script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 12, 2014
1 parent 571d47a commit 5ccb1e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
19 changes: 1 addition & 18 deletions scripts/pull_ts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# pull_ts.sh
# ---------------------
# Date : November 2014
# Copyright : (C) 2014 by Tim Sutton
# Copyright : (C) 2014 by Juergen E. Fischer
# Email : jef at norbit dot de
###########################################################################
# #
Expand Down Expand Up @@ -53,28 +53,11 @@ cleanup() {

PATH=$QTDIR/bin:$PATH

if type qmake-qt4 >/dev/null 2>&1; then
QMAKE=qmake-qt4
else
QMAKE=qmake
fi

if ! type pylupdate4 >/dev/null 2>&1; then
echo "pylupdate4 not found"
exit 1
fi

if ! type tx >/dev/null 2>&1; then
echo "tx not found"
exit 1
fi

if type lupdate-qt4 >/dev/null 2>&1; then
LUPDATE=lupdate-qt4
else
LUPDATE=lupdate
fi

trap cleanup EXIT

tar --remove-files -cf i18n/python_ts.tar $(find python -name "*.ts")
Expand Down
2 changes: 1 addition & 1 deletion scripts/push_ts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ $QMAKE -project -o qgis_ts.pro -nopwd src python i18n
echo Updating translations
$LUPDATE -locations none -verbose qgis_ts.pro

echo tx push -s
tx push -s

0 comments on commit 5ccb1e7

Please sign in to comment.