1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 04:36:34 +01:00
falkonOfficial/scripts/translations_update.sh

27 lines
647 B
Bash
Raw Normal View History

#!/bin/bash
ARGUMENTS=""
if [ "$1" == "-no-obsolete" ]; then
ARGUMENTS="-no-obsolete"
fi
# circular inclusions workaround - we comment that buggy line
2012-02-23 22:18:02 +01:00
sed -i 's/include(3rdparty/##temp/g' ../src/lib/lib.pro
cd ../src/lib/
rm ../../translations/empty.ts
lupdate $ARGUMENTS lib.pro -ts ../../translations/empty.ts
cd -
# uncomment it now
2012-02-23 22:18:02 +01:00
sed -i 's/##temp/include(3rdparty/g' ../src/lib/lib.pro
# it is needed to double <numerusform></numerusform> for transifex
awk '{ print $0; \
if (index($0, "<numerusform></numerusform>")) \
print $0; \
}' ../translations/empty.ts > tmp.ts
mv tmp.ts ../translations/empty.ts
2013-01-21 22:38:31 +01:00
exit 0