Decrease PO files for python projects

Remove untranslated strings and location information from PO files. The
location information is still in the POT files as reference for easy
regeneration using "msgmerge POTFILE POFILE -o COMPLETEPOFILE".

This moves the git add command to the end since compress_po_files
changes the files.

Change-Id: I8d9f80276085ffe4dd614960457637330ca28370
This commit is contained in:
Andreas Jaeger 2015-04-23 21:22:59 +02:00
parent edd6e518b5
commit 5c5989f1e5

View File

@ -69,8 +69,6 @@ for level in $LEVELS ; do
fi
done
# Add all changed files to git.
git add $PROJECT/locale/*
# Filter out commits we do not want.
filter_commits
@ -78,5 +76,13 @@ filter_commits
# Remove obsolete files.
cleanup_po_files "$PROJECT"
# Compress downloaded po files, this needs to be done after
# cleanup_po_files since that function needs to have information the
# number of untranslated strings.
compress_po_files "$PROJECT"
# Now add all changed files to git.
git add $PROJECT/locale/*
# Propose patch to gerrit if there are changes.
send_patch