Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

Project update

Liang-Bo Wang edited this pageNov 19, 2016 ·6 revisions

自 Transifex 下載新的翻譯字串

使用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'

小版本更新(例:3.5.1 -> 3.5.2)

$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
Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp