Ignore node_modules when checking for po files
The translation proposal job for tripleo-ui is currently failing due to
errors in po files under the node_modules directory. However
'node_modules' is only used by nodejs in order to store dependencies,
it doesn't need to be traversed and should be blacklisted.
@@ -591,7 +591,10 @@ function pull_from_zanata {
# translated enough.
zanata-cli -B -e pull
- for i in $(find . -name '*.po' ! -path './.*' -prune | cut -b3-); do
+ # We skip directories starting with '.' because they never contain
+ # translations for the project (in particular, '.tox'). Likewise
+ # 'node_modules' only contains dependencies and should be ignored.
+ for i in $(find . -name '*.po' ! -path './.*' ! -path './node_modules/*' -prune | cut -b3-); do
check_po_file "$i"
# We want new files to be >75% translated. The
# common documents in openstack-manuals have that relaxed to
