add many translations

This commit is contained in:
mht 2014-04-05 16:40:17 +08:00
parent 6c7eaea3c7
commit 15ba38e1ea
8 changed files with 614 additions and 2 deletions

View file

@ -8,10 +8,12 @@ exports.level = {
"name": {
"en_US": "Git push arguments",
"zh_CN": "Git push 参数",
"zh_TW": "Git push 的參數",
"de_DE": "Optionen für Git Push"
},
"hint": {
"en_US": "You can always look at the last slide of the dialog with \"objective\"",
"zh_TW": "你可以利用 \"objective\" 來閱讀對話視窗的最後一頁",
"de_DE": "Du kannst dir die Zielsetzung des Levels immer wieder mit \"objective\" anzeigen lassen"
},
"startDialog": {
@ -87,6 +89,78 @@ exports.level = {
}
]
},
"zh_TW": {
"childViews": [
{
"type": "ModalAlert",
"options": {
"markdowns": [
"## Push 的參數",
"",
"太好了! 現在你已經明白了 remote tracking我們可以開始聊 git pushfetch以及 pull 的一些有趣的地方,我們一次會講解一個 command但是它們之間的概念是很類似的。",
"",
"首先我們來看一下 `git push`,你已經在 remote tracking 的課程中學習到 git 是根據目前 checkout 的 branch 所 track 的 remote branch 來做 push這是在沒有任何的參數的情況下的預設動作但是 git push 允許我們可以加上一些參數:",
"",
"`git push <remote> <place>`",
"",
""
]
}
},
{
"type": "ModalAlert",
"options": {
"markdowns": [
"`<place>` 這個參數表示什麼? 我們等一下會提到細節,但是先來看一個例子,執行以下的指令:",
"",
"`git push origin master`",
"",
"將這段解釋成中文:",
"",
"*先到我的 repo 中的 \"master\" branch抓下所有的 commit然後到叫作 \"origin\" 的 remote 的 \"master\" branch檢查 remote 的 commit 有沒有跟我的 repo 一致,如果沒有,就更新。*",
"",
"將 `master` 當作 \"place\" 這個參數,我們告訴 git 這些 commit 是*從哪裡來的*,而且它們要*往哪裡去*。對於要同步兩個 repo \"place\" 或者是 \"location\" 是非常重要的。",
"",
"要記住喔,因為我們告訴 git 它所要知道的 (有兩個參數),因此它才不會管你現在所 checkout 的 branch!"
]
}
},
{
"type": "GitDemonstrationView",
"options": {
"beforeMarkdowns": [
"讓我們來看一個有加上參數的例子,在這個例子中,要特別注意到我們所 checkout 的位置。"
],
"afterMarkdowns": [
"我說的沒錯吧! 因為我們加上了參數,所以在 remote 上的 `master` branch 更新了"
],
"command": "git checkout C0; git push origin master",
"beforeCommand": "git clone; git commit"
}
},
{
"type": "GitDemonstrationView",
"options": {
"beforeMarkdowns": [
"假如我們沒有特別指令參數會發生什麼事情?"
],
"afterMarkdowns": [
"指令會失敗 (就像你看到的),因為 `HEAD` 並沒有指向一個有 track remote branch 的 branch 上面阿。"
],
"command": "git checkout C0; git push",
"beforeCommand": "git clone; git commit"
}
},
{
"type": "ModalAlert",
"options": {
"markdowns": [
"好的,在這個關卡中,我們要更新在 remote 上的 `foo` 以及 `master` branch比較遺憾的是 `git checkout` 在這個關卡中是不被允許的喔!"
]
}
}
]
},
"zh_CN":{
"childViews": [
{