Add script to compile translations

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@262 b624d157-de02-0410-bad0-e51aec6abb33
master
sniperbeamer 16 years ago
parent 5e473bedc2
commit daf6eaf535
  1. 21
      translations_release.sh

@ -0,0 +1,21 @@
#!/bin/sh
LRELEASE=""
if [ `which lrelease-qt4` ] ; then
LRELEASE="`which lrelease-qt4`"
elif [ `which lrelease` ] ; then
LRELEASE="`which lrelease`"
fi
if [ "$LRELEASE" = "" ] ; then
echo "Error: lrelease / lrelease-qt4 not found."
exit 1
fi
cd `dirname $0`
rm share/keepassx/i18n/*.qm
cd src
lrelease-qt4 src.pro
mv translations/*.qm ../share/keepassx/i18n
rm ../share/keepassx/i18n/keepassx-xx_XX.qm