2014-10-06 20:01:08 +02:00
|
|
|
#!/bin/sh
|
2015-10-15 16:55:39 +02:00
|
|
|
# Run this script if you want to find and update all strings in the code.
|
2014-10-06 20:01:08 +02:00
|
|
|
# lupdate doesn't work with recursive *.pro file and without direct pointing to correct *.pro file just update exists strings in code.
|
2015-10-15 16:55:39 +02:00
|
|
|
# Please, run this script from folder <root_folder>/scripts.
|
|
|
|
|
|
|
|
# Download last translations from transifex.com.
|
2015-11-03 21:30:43 +01:00
|
|
|
tx pull --mode=developer -f -s --skip
|
2015-10-15 16:55:39 +02:00
|
|
|
|
|
|
|
# Update local strings
|
2015-08-02 19:39:29 +02:00
|
|
|
lupdate -recursive ../share/translations/translations.pro
|
|
|
|
lupdate -recursive ../share/translations/measurements.pro
|
2015-10-19 22:15:50 +02:00
|
|
|
#clean stale QM files
|
2015-10-18 13:04:37 +02:00
|
|
|
rm -f -v ../share/translations/*.qm
|
2015-10-19 22:15:50 +02:00
|
|
|
# force to run qmake
|
|
|
|
touch -am ../Valentina.pro
|
2015-11-15 20:28:41 +01:00
|
|
|
|
|
|
|
echo Done.
|
|
|
|
echo For updating files run: clean all, qmake, rebuild all.
|