valentina/scripts/lupdate.sh
Roman Telezhynskyi 15bc39a789 Lupdate.
--HG--
branch : develop
2016-03-09 10:10:13 +02:00

23 lines
811 B
Bash
Executable file

#!/bin/sh
# Run this script if you want to find and update all strings in the code.
# lupdate doesn't work with recursive *.pro file and without direct pointing to correct *.pro file just update exists strings in code.
# Please, run this script from folder <root_folder>/scripts.
# Download all translations from transifex.com.
# Use if have problems with default way.
#tx pull --mode=developer -f -s --skip
# Download last translations from transifex.com.
tx pull --mode=developer --skip
# Update local strings
lupdate -recursive ../share/translations/translations.pro
lupdate -recursive ../share/translations/measurements.pro
#clean stale QM files
rm -f -v ../share/translations/*.qm
# force to run qmake
touch -am ../Valentina.pro
echo Done.
echo For updating files run: clean all, qmake, rebuild all.