rebuild-translation-sources.sh 440 B

123456789101112131415
  1. # Delete old translation sources
  2. find ./wagtail -iname *.po -iwholename */en/* -delete
  3. # Run makemessages on each app
  4. for d in $(find ./wagtail -iwholename "*/locale/*" | sed 's|\(.*\)/locale.*|\1|' | sort -u);
  5. do
  6. pushd $d
  7. django-admin makemessages --locale=en --ignore=test/* --ignore=tests/* --ignore=tests.py
  8. popd
  9. done
  10. # Extract translatable strings from JavaScript
  11. pushd ./client
  12. node extract-translatable-strings.js
  13. popd