weblate/scripts/update-locales
Michal Čihař 948cd020ba Improve script for updating po files
- it sets Report-Msgid-Bugs-To
- automatically commits to git
2012-07-25 11:19:49 +02:00

17 lines
440 B
Bash
Executable file
Vendored

#!/bin/sh
# Exit on failure
set -e
cd weblate
# Update po files itself
../manage.py makemessages -a -i 'repos/*' -i 'docs/*'
../manage.py makemessages -a -i 'repos/*' -i 'docs/*' -d djangojs
# Fix Report-Msgid-Bugs-To as it gets removed
sed -i 's/"Report-Msgid-Bugs-To:.*/"Report-Msgid-Bugs-To: https:\/\/github.com\/nijel\/weblate\/issues\\n"/' locale/*/*/*.po
# Commit changes
git add locale/*/*/*.po
git commit -m 'Update po files'