2015-02-15 20:45:52 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Run this script from the root directory to get the latest translations from transifex :
|
|
|
|
# ./data/po/pull_from_transifex.sh
|
|
|
|
|
|
|
|
cd ./data/po
|
|
|
|
export PATH=$PATH:`pwd`
|
|
|
|
|
|
|
|
if [ -d "transifex/translations/supertuxkart.supertuxkartpot" ]; then
|
|
|
|
cd transifex
|
|
|
|
else
|
|
|
|
echo "==== Performing initial checkout ===="
|
|
|
|
mkdir -p transifex
|
|
|
|
cd transifex
|
2019-07-14 06:52:54 -04:00
|
|
|
tx init --skipsetup
|
|
|
|
tx config --auto-remote https://www.transifex.com/projects/p/supertuxkart/
|
2015-02-15 20:45:52 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "==== Pulling all translations ===="
|
|
|
|
tx pull --all
|
|
|
|
|
|
|
|
echo "==== Copying files ===="
|
|
|
|
ls ./translations/supertuxkart.supertuxkartpot/*.po
|
|
|
|
cp -R ./translations/supertuxkart.supertuxkartpot/*.po ..
|
|
|
|
|
|
|
|
echo "==== Done ===="
|