transifex-pull-translations.sh 465 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. set -e
  3. SCRIPTPATH="${BASH_SOURCE[0]}";
  4. pushd `dirname "${SCRIPTPATH}"` > /dev/null
  5. SCRIPTPATH=`pwd`;
  6. popd > /dev/null
  7. fix_po()
  8. {
  9. for FILE in `ls -1 *.po`; do
  10. sed -i '/Report-Msgid-Bugs-To:/c\"Report-Msgid-Bugs-To: https://github.com/synfig/synfig/issues\\n"' "$FILE" || true
  11. done
  12. }
  13. cd "$SCRIPTPATH/.."
  14. tx pull -a --force
  15. cd "$SCRIPTPATH/../synfig-core/po"
  16. fix_po
  17. cd "$SCRIPTPATH/../synfig-studio/po"
  18. fix_po
  19. "$SCRIPTPATH/update-languages.sh"