File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,25 +70,10 @@ cmd_check_no_tr_fstring() {
7070 echo " No tr(f-string) anti-pattern found."
7171}
7272
73- cmd_check_pot_freshness () {
74- # msgcmp (not diff) because base.pot carries legacy stale entries from
75- # --join-existing; diff would always fail until a full cleanup is done.
76- echo " Checking base.pot for missing strings..."
77- find . -type f -iname ' *.py' | sort \
78- | xargs xgettext --no-location --omit-header --keyword=' tr' \
79- -d base -o /tmp/generated.pot
80- if ! msgcmp --use-untranslated locales/base.pot /tmp/generated.pot; then
81- echo " ERROR: base.pot is missing strings - run: locales_generator.sh all" >&2
82- return 1
83- fi
84- echo " base.pot contains all translatable strings."
85- }
86-
8773cmd_check () {
8874 local failed=0
8975 cmd_check_po_syntax || failed=1
9076 cmd_check_no_tr_fstring || failed=1
91- cmd_check_pot_freshness || failed=1
9277 if [ " $failed " -eq 1 ]; then
9378 echo " Some translation checks failed." >&2
9479 exit 1
You can’t perform that action at this time.
0 commit comments