We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 024e238 commit 44b1745Copy full SHA for 44b1745
from_cn.sh
@@ -0,0 +1,14 @@
1
+#!/bin/sh
2
+
3
+fp=$1
4
+python_docs_zh_cn=../python-docs-zh-cn
5
6
+opencc -i $python_docs_zh_cn/$fp -c s2twp.json -o /tmp/tmp.po
7
+pofilter --nonotes --excludefilter unchanged --excludefilter untranslated /tmp/tmp.po | msgattrib --set-fuzzy -o /tmp/tmp.po
8
+pomerge -t $python_docs_zh_cn/$fp -i /tmp/tmp.po -o /tmp/tmp.po
9
10
+pofilter --nonotes --excludefilter untranslated $fp /tmp/tmp2.po
11
+pomerge -t /tmp/tmp.po -i /tmp/tmp2.po -o /tmp/tmp3.po
12
+msgcat --lang zh_TW /tmp/tmp3.po -o $fp
13
14
+rm /tmp/tmp.po /tmp/tmp2.po /tmp/tmp3.po
0 commit comments