File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,13 @@ cp build/docs/locale_changes_po.txt build/docs/locale_changes_po_pot.txt
3636perl -ne ' /\/en\// && print' build/docs/locale_changes_po.txt | \
3737 perl -pe ' s/(.*)en\/LC_MESSAGES(.*)/$1pot$2t/' >> build/docs/locale_changes_po_pot.txt # .pot files
3838
39+ # Do not create empty translation files
40+ git status locale/es --porcelain | awk ' match($1, "?"){print $2}' | xargs -r rm -rf
41+ git status locale/ja --porcelain | awk ' match($1, "?"){print $2}' | xargs -r rm -rf
42+
3943# Remove obsolete entries #~ from .po files
4044bash .github/scripts/remove_obsolete_entries.sh
4145
42- while read -r f ; do git add " $f " ; done < build/docs/locale_changes_po_pot.txt
46+ cat build/docs/locale_changes_po_pot.txt | xargs -I {} sh -c " (ls {} >> /dev/null 2>&1 && git add {} ) "
4347
4448popd > /dev/null || exit 1
You can’t perform that action at this time.
0 commit comments