updatePot.sh 481 Bytes
Newer Older
AlmAck's avatar
AlmAck committed
1 2 3 4
#!/bin/bash
#
# Execute this script whenever you change, add or remove translatable strings in your code.
#
5
# For help, see https://chakraos.org/wiki/index.php?title=Transifex
AlmAck's avatar
AlmAck committed
6 7 8 9 10 11 12 13

translationsFolder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
rootDir=$translationsFolder/..
projectName="akabei"

lupdate $rootDir/* -ts $translationsFolder/$projectName.ts
ts2po $translationsFolder/$projectName.ts -o $translationsFolder/$projectName.pot
rm $translationsFolder/$projectName.ts