mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-06-10 20:55:45 +08:00
17 lines
440 B
Bash
Executable file
Vendored
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'
|