mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-25 17:01:17 -05:00
Query lupdate-qt5 first and fall back to lupdate if it does not exist
This commit is contained in:
parent
fab9f2a9fb
commit
8a0085f0f8
@ -40,8 +40,14 @@ cd "${BASEDIR}/../.."
|
|||||||
|
|
||||||
if $UPDATE; then
|
if $UPDATE; then
|
||||||
echo "Updating source files..."
|
echo "Updating source files..."
|
||||||
lupdate-qt5 -no-ui-lines -disable-heuristic similartext -locations none -no-obsolete src -ts share/translations/keepassx_en.ts
|
|
||||||
lupdate-qt5 -no-ui-lines -disable-heuristic similartext -locations none -pluralonly src -ts share/translations/keepassx_en_plurals.ts
|
LUPDATE=lupdate-qt5
|
||||||
|
command -v $LUPDATE > /dev/null
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
LUPDATE=lupdate
|
||||||
|
fi
|
||||||
|
$LUPDATE -no-ui-lines -disable-heuristic similartext -locations none -no-obsolete src -ts share/translations/keepassx_en.ts
|
||||||
|
$LUPDATE -no-ui-lines -disable-heuristic similartext -locations none -pluralonly src -ts share/translations/keepassx_en_plurals.ts
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user