File tree 1 file changed +5
-1
lines changed
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
36
36
perl -ne ' /\/en\// && print' build/docs/locale_changes_po.txt | \
37
37
perl -pe ' s/(.*)en\/LC_MESSAGES(.*)/$1pot$2t/' >> build/docs/locale_changes_po_pot.txt # .pot files
38
38
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
+
39
43
# Remove obsolete entries #~ from .po files
40
44
bash .github/scripts/remove_obsolete_entries.sh
41
45
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 {} ) "
43
47
44
48
popd > /dev/null || exit 1
You can’t perform that action at this time.
0 commit comments