Skip to content

Commit 2a48749

Browse files
committed
Add update_txconfig target to Makefile
1 parent 4b30660 commit 2a48749

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ endif
9393
done
9494

9595

96+
.PHONY: update_txconfig
97+
update_txconfig:
98+
curl -L https://rawgit.com/python-doc-ja/cpython-doc-catalog/catalog-$(BRANCH)/Doc/locales/.tx/config |\
99+
grep --invert-match '^file_filter = *' |\
100+
sed -e 's/source_file = pot\/\(.*\)\.pot/trans.zh_TW = \1.po/' |\
101+
sed -n 'w .tx/config'
102+
103+
96104
.PHONY: fuzzy
97105
fuzzy:
98106
for file in *.po */*.po; do echo $$(msgattrib --only-fuzzy --no-obsolete "$$file" | grep -c '#, fuzzy') $$file; done | grep -v ^0 | sort -gr

0 commit comments

Comments
 (0)