pull_from_transifex.sh 667 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. # Run this script from the root directory to get the latest translations from transifex :
  3. # ./data/po/pull_from_transifex.sh
  4. cd ./data/po
  5. export PATH=$PATH:`pwd`
  6. if [ -d "transifex/translations/supertuxkart.supertuxkartpot" ]; then
  7. cd transifex
  8. else
  9. echo "==== Performing initial checkout ===="
  10. mkdir -p transifex
  11. cd transifex
  12. tx init
  13. tx set --auto-remote http://www.transifex.net/projects/p/supertuxkart/
  14. fi
  15. echo "==== Pulling all translations ===="
  16. tx pull --all
  17. echo "==== Copying files ===="
  18. ls ./translations/supertuxkart.supertuxkartpot/*.po
  19. cp -R ./translations/supertuxkart.supertuxkartpot/*.po ..
  20. echo "==== Done ===="