Translations: Cleanup django modules

Remove untranslated and unused po/pot files for django modules - the
same way we do for python projects.

Change-Id: I06e71e29a727a40c960b3721333dda9e0bde7b11
This commit is contained in:
Andreas Jaeger 2016-04-17 21:46:02 +02:00
parent 0af0f35a2a
commit 2e256f8f91

View File

@ -106,10 +106,20 @@ function propose_django {
# Update the .pot file
extract_messages_django "$modulename"
# Now add all changed files to git.
# Note we add them here to not have to differentiate in the functions
# between new files and files already under git control.
git add $modulename/locale/*
# Remove obsolete files.
cleanup_po_files "$modulename"
cleanup_pot_files "$modulename"
# Compress downloaded po files
compress_po_files "$modulename"
# Add all changed files to git
# Some files were changed, add changed files again to git, so that we
# can run git diff properly.
git add $modulename/locale/
}