translations: Cleanup po files
Function pull_from_zanata calls check_po_files that removes po files with less than 20 %, so do not use lower limit (8 %) for common files, those will have been removed already. Instead raise to 30 %. Use cleanup_po_files now also for manuals since we use the same routines everywhere. Change-Id: I216c3f7b78441e1dbcea9f90e69fd3ecf00419db
This commit is contained in:
1 parent
1c5f830a40
commit
356f1db8f0
2 files changed
+8
-2
No files matched your search
@@ -559,12 +559,12 @@ function pull_from_zanata {
|
||||
check_po_file "$i"
|
||||
# We want new files to be >75% translated. The
|
||||
# common documents in openstack-manuals have that relaxed to
|
||||
# >8%.
|
||||
# >30%.
|
||||
percentage=75
|
||||
if [ $project = "openstack-manuals" ]; then
|
||||
case "$i" in
|
||||
*common*)
|
||||
percentage=8
|
||||
percentage=30
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
@@ -33,16 +33,20 @@ function propose_manuals {
|
||||
# Compress downloaded po files
|
||||
case "$PROJECT" in
|
||||
openstack-manuals)
|
||||
cleanup_po_files "doc"
|
||||
cleanup_pot_files "doc"
|
||||
compress_po_files "doc"
|
||||
;;
|
||||
api-site)
|
||||
cleanup_po_files "api-quick-start"
|
||||
cleanup_pot_files "api-quick-start"
|
||||
compress_po_files "api-quick-start"
|
||||
cleanup_po_files "firstapp"
|
||||
cleanup_pot_files "firstapp"
|
||||
compress_po_files "firstapp"
|
||||
;;
|
||||
security-doc)
|
||||
cleanup_po_files "security-guide"
|
||||
cleanup_pot_files "security-guide"
|
||||
compress_po_files "security-guide"
|
||||
;;
|
||||
@@ -66,6 +70,8 @@ function propose_training_guides {
|
||||
# Pull updated translations from Zanata.
|
||||
pull_from_zanata "$PROJECT"
|
||||
|
||||
# Cleanup po files
|
||||
cleanup_po_files "doc/upstream-training"
|
||||
# Remove pot files
|
||||
cleanup_pot_files "doc/upstream-training"
|
||||
# Compress downloaded po files
|
||||
|
||||
Reference in new issue
Block a user