This repository was archived by the owner on Sep 2, 2018. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork5
Project update
Liang-Bo Wang edited this pageNov 19, 2016 ·6 revisions
使用Transifex client。首先要把帳號、密碼存在~/.transifexrc
中(token 留白即可),
[https://www.transifex.com]hostname = https://www.transifex.comtoken =username = <YOUR USERNAME>password = <YOUR PASSWORD>
接著在Doc/
目錄,自 Transifex 更新本地的翻譯字串。
$ tx pull -l zh-Hant$ tx pull -l zh-Hant -r"python-35-tw.tutorial--*"# only tutorial/* docs
加入版本控制。
$ git add locale/zh-Hant$ git commit -m'Update translation'
$git log --graph --oneline 264d571* 264d571 Added tag v3.5.1 for changeset 37a07cee5969* 6d35e37 Version bump for 3.5.1 final.* 5754c63 Updated pydoc topics for 3.5.1 final.
選擇更新到「Added tag vX.Y.Z for changeset xxx」這個 commit。Changesetxxx
對應到的是 mercurial 上 commit。
$git remote add upstream https://github.com/python/cpython.git$git fetch upstream 3.5$git merge 7aafe3c4fbff73590de183f095f1d32feeadc450
更新翻譯原文 pot 檔並上傳至 Transifex(需要一段時間):
$make gettext$tx push -s