Skip to content

Commit c6cb7b3

Browse files
authored
Removing pot file freshness check (#4576)
1 parent 8ce2486 commit c6cb7b3

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

archinstall/locales/locales_generator.sh

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff 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-
8773
cmd_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

0 commit comments

Comments
 (0)