#!/bin/bash # 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 /scripts. start=$(date +%s) # Download all translations from transifex.com. cd ../share/translations RESOURCES=`find . -regextype sed -regex ".*/measurements_p[0-9]\{1,2\}\.ts"` cd ../../scripts # Empty means unstable branch MEASUREMENTS_BRANCH='' # For example _05x VALENTINA_BRANCH='' # for example 05x NUMBER=( $RESOURCES ) NUMBER=${#NUMBER[@]} # Certant languages like he_IL and zh_CN are not supported by math parser for ((i=0;i