Skip to content

Commit 1fa24b2

Browse files
committed
translate some os-specific pages in installfest
1 parent d48011d commit 1fa24b2

File tree

5 files changed

+98
-92
lines changed

5 files changed

+98
-92
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
step "Configure the Windows Terminal" do
2-
message "Right-click on the menu bar and select **Properties**"
1+
step "設定 Windows 的終端機" do
2+
message "在標題列按右鍵選**「內容」**"
33

4-
message "Under the *Options* tab, check the box for **QuickEdit Mode**. This will let you visually cut and paste."
4+
message "在*「選項」*標籤頁裡面,把**「快速編輯模式」**打勾,這樣你就可以用滑鼠複製貼上。"
55

6-
message "Under the *Font* tab, select Lucida Console from the font chooser box. This lets you view non-ascii characters."
6+
message "<del>在*「字型」*標籤頁裡面,選 Lucida Console,這樣外國文字就不會亂碼了。</del>(譯註:Windows 繁中版用細明體很好,這一步可以跳過)"
77

8-
message "In the *Layout* tab, adjust *Window Size* so the window is about half as wide as your screen, and is as tall as possible without covering the task bar (this may require some trial and error)."
8+
message "在*「版面配置」*標籤頁裡面,調整*「視窗大小」*讓寬度大概佔螢幕的一半,高度盡量填滿螢幕。(要多試幾次)(譯註:在 XP 稱為「版面設定」標籤頁)"
99

10-
message "In the *Layout* tab, increase **Screen Buffer Size** Height to 1000."
10+
message "在*「版面配置」*標籤頁裡面,把**螢幕緩衝區大小**的高度調到 1000"
1111

12-
message "Click OK. In the dialog that comes up, select **Modify shortcut that started this window.**"
12+
message "按一下確定,會出現一個視窗,請選**「儲存內容,讓相同的標題視窗使用」**。"
1313
end
1414

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
message "Installing XCode is straightforward with one caveat. When it asks you about the components to install you need to make sure \"Unix Tools\" is selected. Other than that just click Continue/Okay/Yes/etc."
1+
message "安裝 Xcode 很簡單,但有一個地方要注意,當它問你要安裝什麼 components 的時候,請確定有選 \"Unix Tools\"。此外就一直下一步、下一步、完成。"
22

3-
option "Install XCode from the Apple App Store (OSX 10.7 Lion or greater)" do
3+
option "App Store 安裝 Xcode(適用 OSX 10.7 Lion 以上)" do
44
link "install_xcode_from_app_store"
55
end
66

7-
option "Install XCode from a thumb drive or DVD (OSX 10.6 Snow Leopard)" do
7+
option "從還原光碟或 USB 安裝 Xcode(適用 OSX 10.6 Snow Leopard" do
88
link "install_xcode_from_dvd"
99
end
1010

11-
option "Install Command Line Tools for XCode" do
12-
message "Visit the [Apple Developer Downloads Page](https://developer.apple.com/downloads)"
13-
message "Download and install the latest **Command Line Tools for Xcode** package"
11+
option "安裝 Xcode 的 Command Line Tools" do
12+
message "請上 [Apple Developer 網站的下載區](https://developer.apple.com/downloads)"
13+
message "下載最新的 **Command Line Tools for Xcode** 安裝包,然後安裝。"
1414
end
1515

16-
verify "your compiler was installed" do
16+
verify "你的編譯器有安裝完成" do
1717
console "gcc --version"
1818
result "i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)"
1919

20-
message "Your results might differ somewhat. Basically, as long as it doesn't say something like 'command not found', you're probably cool."
20+
message "你看到的結果可能會有些不同。基本上,如果它沒有跟你說 'command not found' 那大概就 OK 了。"
2121
end
2222

Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
message "The Apple App Store is an application that installs other applications."
1+
message "App Store 是你 OS X 裡面內建,可以安裝別的軟體的程式。"
22

3-
step "Open the App Store application" do
4-
message "You can find App Store in the Applications folder"
3+
step "打開 App Store" do
4+
message "請在硬碟→應用程式裡面找到 App Store"
55
end
66

7-
step "Install XCode" do
8-
message "Search for 'XCode' and click the 'Install' button"
7+
step "安裝 Xcode" do
8+
message "搜尋「Xcode」然後按一下「安裝」按鈕"
99
img src: 'img/appstore.jpg', alt: 'XCode in the App Store'
1010
end
1111

12-
step "Launch XCode"
12+
step "啟動 Xcode"
1313

14-
step "Install the Command Line Tools" do
15-
message "Open the Preferences menu and select the Downloads tab."
16-
message "Then click the 'Install' button next to 'Command Line Tools'."
14+
step "安裝 Command Line Tools" do
15+
message "按一下 File → Preferences 功能表,然後選 Downloads 這個分頁。"
16+
message "然後按一下「Command Line Tools」旁邊的「Install」按鈕。"
1717
img src: 'img/xcode-prefs.jpg', alt: 'XCode Preferences'
1818
end
1919

sites/zh-tw/installfest/linux.step

+24-21
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
important <<-MARKDOWN
2-
These steps apply to **Ubuntu Linux** only. If you are using some other flavor of Linux, get help from a TA.
2+
這裡的操作步驟只測過 **Ubuntu Linux**。如果你用的是別的 Linux,遇到問題時,請舉手問助教。
33
MARKDOWN
44

55
message <<-MARKDOWN
6-
You will need sudo access in order to complete these directions (The first user account has this by default).
6+
你會需要 sudo 才能完成這些操作(第一個使用者帳號會預設有 sudo 權限)。
7+
8+
*(譯註:需要用真的 Ubuntu 確認 UI 翻譯詞)*
79
MARKDOWN
810

9-
step "Install packaged software and libraries" do
11+
step "安裝事先包好的軟體和程式庫" do
1012
message <<-MARKDOWN
11-
Open a terminal (Applications > Accessories > Terminal). You may want to right-click on the terminal icon and select "Add to panel" so the icon will appear next to the default help and firefox icons in the top panel.
13+
打開終端機(應用程式 → 附屬應用程式 → 終端機)。你或許會想要在那圖示上按右鍵然後選 Add to Panel,這樣子圖示會出現在最上方預設的說明和 Firefox 圖示旁邊。
1214
MARKDOWN
1315

1416
apts = %w{
@@ -17,11 +19,11 @@ Open a terminal (Applications > Accessories > Terminal). You may want to right-
1719
bison
1820
build-essential
1921
curl
20-
git-core
21-
libapr1
22-
libaprutil1
23-
libc6-dev
24-
libltdl-dev
22+
git-core
23+
libapr1
24+
libaprutil1
25+
libc6-dev
26+
libltdl-dev
2527
libreadline6
2628
libreadline6-dev
2729
libsqlite3-0
@@ -43,41 +45,42 @@ Open a terminal (Applications > Accessories > Terminal). You may want to right-
4345

4446
end
4547

46-
step "Install git" do
48+
step "安裝 git" do
4749
console "sudo apt-get install git"
4850

49-
message "If this results in an error, you should be ok, as the prior step should have installed `git-core`"
51+
message "如果你看到錯誤,或許其實也沒問題,因為先前我們安裝過了 `git-core`"
5052
end
5153

52-
step "Install RVM" do
54+
step "安裝 RVM" do
5355
important do
54-
message "If you're using Ubuntu 12.04 or the latest version of Mint, ensure that the Run command as login shell option is checked under the Title and Command tab in Profile Preferences (located in Terminal's Edit menu). After changing this setting, you may need to exit your console session and start a new one before the changes take affect."
56+
message "如果你用 Ubuntu 12.04 或最新版的 Mint,請確認在 Edit 功能表 → Profile Preferences → Title and Command → Run command as login shell 這個選項有打開。這個選項修改過之後,你需要開一個新的 console session 才能生效。"
5557
img src: 'img/railsbridge_ubuntu12-checkbox.png', alt: "Ubuntu 12.04 terminal settings"
5658
end
5759
insert "install_rvm"
5860
end
5961

60-
step "Install Ruby" do
62+
step "安裝 Ruby" do
6163
insert "install_ruby"
6264
end
6365

64-
step "Install Rails" do
65-
message "Using a terminal again, execute the following command to install rails."
66+
step "安裝 Rails" do
67+
message "打開終端機,執行以下指令來安裝 Rails。"
6668

6769
console "gem install rails"
6870
end
6971

7072
step "Sublime Text 2" do
7173
message <<-MARKDOWN
74+
如果你沒有喜歡的程式編輯器,你可以裝 Sublime Text 2。32-bit 和 64-bit 版本都有。
7275

73-
If you don't have a preferred code editor, you can install Sublime Text 2. It's available for [32-bit machines](http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1.tar.bz2) and [64-bit machines](http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1%20x64.tar.bz2)
74-
75-
Check <http://www.sublimetext.com/2> for the latest version.
76+
請上 <http://www.sublimetext.com/2> 下載最新版本。
7677
MARKDOWN
7778

78-
tip "How many bits?" do
79-
message %q{If you're not sure, you're probably 32-bit. Run `uname -i` and see. "x86" in the filename means 32-bit, and "x86_64" means 64-bit.}
79+
tip "啥米 bit?" do
80+
message "你如果不確定的話,大概就是 32-bit 了。可以執行 `uname -i` 指令來確認。\"x86\" 指的是 32-bit,\"x86_64\" 指的是 64-bit。"
8081
end
8182
end
8283

8384
next_step "configure_git"
85+
86+

sites/zh-tw/installfest/windows.step

+50-47
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
message <<-MARKDOWN
2-
These instructions should work for all versions of Windows from XP to Windows 8.
2+
本文件適用 Windows XP Windows 8
33

4-
You may need to login as Administrator, or give the Administrator password when installing some programs, depending on your Windows version and user settings.
4+
依據版本不同,你會需要使用 Administrator 的身份登入,或是在安裝某些軟體的時候打 Administrator 的密碼。
55
MARKDOWN
66

7-
step "Run RailsInstaller" do
7+
step " RailsInstaller" do
88

99
message <<-MARKDOWN
10-
RailsInstaller includes Rails, Ruby, Git, and SQLite.
10+
RailsInstaller 一鍵安裝包裡面有 RailsRubyGitSQLite
1111

12-
Go to <http://railsinstaller.org/>, scroll to the 'Downloads' section, and download the RailsInstaller for Windows/Ruby 1.9.
12+
請上 <http://railsinstaller.org/>,往下捲到 'Downloads' 那一段,然後下載 RailsInstaller for Windows/Ruby 1.9
1313

14-
Click on the downloaded file to run the install wizard. Click Next at each step to accept the defaults.
14+
按兩下打開下載完成的安裝檔來啟動安裝程式。它問什麼都按下一步,一律預設值。
1515

16-
Be sure to check the boxes for *Install git (recommended)* and *Add executables for Ruby, DevKit Git (if checked above) to the PATH*
16+
不過要確定有打勾 *Install git (recommended)* *Add executables for Ruby, DevKit Git (if checked above) to the PATH* 這兩個選項。如下圖。
1717

1818
![WinRailsInstaller.jpg](img/WinRailsInstaller.jpg)
1919

20-
Rails will be installed in C:\\RailsInstaller and the directory for your Rails projects will be C:\\Sites
20+
Rails 會被裝進 C:\\RailsInstaller,你的 Rails 專案的資料夾會是 C:\\Sites
2121

2222
MARKDOWN
2323
end
2424

25-
step "Configure your git and ssh environment" do
25+
step "設定 git ssh" do
2626

27-
important "At the end of the installer there will be a checkbox asking 'configure your git and ssh environment'. **Leave this box checked.** It will open a terminal window that you need to **type into**."
27+
important "在安裝程式的最後面會有一個打勾框「configure your git and ssh environment」,**請讓它打勾。**它會開一個終端機視窗,你要**打一些字進去**。"
2828

29-
message "When it asks *Please enter your name, for example mine is: Wayne E. Seguin*"
30-
message "Type *your actual full name* into the console and press **[enter]**"
29+
message "當它問你 *Please enter your name, for example mine is: Wayne E. Seguin*"
30+
message "請輸入*「你的本名」*然後按**[enter]**"
3131

32-
message "When it asks *Please enter your email address, for example mine is: wayneeseguin@gmail.com*"
33-
message "Type *your actual email address* into the console and press **[enter]**"
32+
message "當它問你 *Please enter your email address, for example mine is: wayneeseguin@gmail.com*"
33+
message "請輸入*「你真正的 email」*然後按**[enter]**"
3434

35-
important "Use the **same email address** for heroku, git, github, and ssh."
35+
important "請在 Heroku、Git、GitHub、SSH 使用**相同的 Email**。"
3636

3737
tip do
38-
message "After this step you will have some **git config settings** and you will also have an **ssh key**."
38+
message "這做完之後,你就會有 **git 設定檔**和一把 **ssh key**"
3939
end
4040

4141
end
4242

43-
step "Windows 8 Only — Install Node.js" do
43+
step "Windows 8 才要的──安裝 Node.js" do
4444

45-
message "Go to <http://nodejs.org> and download the installer"
45+
message "請上 <http://nodejs.org> 然後下載安裝程式。"
4646

47-
message "Click on the downloaded file to run the install wizard. Click Next at each step to accept the defaults."
47+
message "按兩下打開下載完成的安裝檔來啟動安裝程式。它問什麼都按下一步,一律預設值。"
4848

49-
message "**Reboot your computer.**"
49+
message "**重新開機。**"
5050

51-
message "Once your computer is back up, load **Command Prompt with Ruby and Rails** (see below) and..."
51+
message "開機完成後,打開 **Command Prompt with Ruby and Rails**(見下文),然後檢查看看,"
5252

5353
console "node -v"
5454
fuzzy_result "v0{FUZZY}.8.x{/FUZZY}"
5555
end
5656

57-
step "Update Rails" do
58-
message "Currently, RailsInstaller installs Rails 3.2.x, but we want 4.x. Upgrading Rails is pretty easy:"
57+
step "升級 Rails" do
58+
message "現在 RailsInstaller 幫我們安裝的是 Rails 3.2.x,不過我們要的是 4.x。要升級 Rails 很簡單:"
5959

6060
console "gem install rails"
6161

62-
message "...and you're done. New Rails! Woo."
62+
message "……這樣就好了。新版 Rails!喔耶!"
6363
end
6464

65-
step "Sanity Check" do
65+
step "確認一切正常" do
6666

6767
console "ruby -v"
6868
fuzzy_result "ruby 1.9.3{FUZZY}p125{/FUZZY}"
@@ -72,59 +72,62 @@ step "Sanity Check" do
7272

7373
end
7474

75-
step "Open a Terminal" do
76-
message "Much of using Rails is typing commands and hitting **[enter]**. Your experience using Rails on Windows greatly depends on your making friends with the terminal window. Normally you will work in a terminal window and keep it open along with your browser."
75+
step "打開終端機" do
76+
message "大部份使用 Rails 的方式是打指令然後敲 **[enter]**。在 Windows,Rails 要學得好,你得先跟終端機打好關係。通常你會在終端機裡面做事,然後把它跟瀏覽器一起開著不關。"
7777

78-
tip "The Terminal is also called the Command Prompt, Command Line, DOS Prompt, or DOS Window."
78+
tip "終端機又叫「命令提示字元」、「命令列」、「DOS 提示字元」、「DOS 視窗」。"
7979

80-
message "RailsInstaller made a special Terminal for you to use when you're working on Ruby, Rails, or Git."
80+
message "RailsInstaller 幫你準備了一個特別的終端機,給你方便使用 RubyRailsGit"
8181

82-
message "To open the special Terminal, choose **All Programs** on the Start menu, then choose **RailsInstaller** and then **Command Prompt with Ruby and Rails**. You should do all your Rails work in this RailsInstaller DOS window."
82+
message "要打開這個特別的終端機,請按開始 → **所有程式** **RailsInstaller** **Command Prompt with Ruby on Rails**。請在這個 RailsInstaller DOS 視窗裡面做所有跟 Rails 有關的事。"
8383

8484
img src: 'img/railsbridge_findingCommandPrompt.png'
8585

86-
tip "Pin It to Win It" do
86+
tip "把它固定在工具列" do
8787
img src: 'img/railsbridge_windowsScreenshot-commandprompt-pinnedtotaskbar.png', alt: 'Pin the Command Prompt to the Task Bar'
8888
end
8989

90-
message "Here is a summary of your settings after this process:"
90+
message "下圖是你做完這一步之後會看到的設定值:"
9191

9292
img src: 'img/railsbridge_windowsScreenshot-commandprompt_ror.jpg'
9393

9494
end
9595

96-
step "Configure the Windows Terminal" do
97-
message "Take a moment to configure the *Command Prompt with Ruby and Rails* so that it is a good height and width and has a nice font. Hint -- click to open the link below, and when you finish those steps, hit the **back** button in your browser to resume this procedure."
96+
step "設定 Windows 終端機" do
97+
message "花點時間來設定 *Command Prompt with Ruby and Rails*,把尺寸和字型調整好。
98+
講個秘訣──設定方式寫在下面這個連結裡面,按一下可以看設定方式,設定完成之後,按瀏覽器的**上一頁**按鈕可以回到這裡來。"
9899

99100
link "configure_the_windows_terminal"
100101

101-
tip "Clearing the Terminal" do
102-
message "If you ever want to clear the terminal of all its cluttered output"
102+
tip "淨空終端機" do
103+
message "你如果想要淨空終端機畫面的話,請隨時輸入指令:"
103104
console "cls"
104105
end
105106

106-
tip "Command History" do
107-
message "The terminal window stores a \"command history.\" To view and re-run previous commands, use the &lt;up arrow&gt; and &lt;down arrow&gt; keys. You can also edit a previous command and run it -- this is handy for long commands, or fixing mistakes, or for cycles (series of commands) that you repeat."
107+
tip "指令記錄" do
108+
message "終端機視窗會記住你的「指令記錄」。要看有什麼指令或是再度執行之前的指令的話,請使用方向鍵 ↑ 和 ↓。你也可以修改之前的指令再執行──便於執行超長的指令、修正之前指令的錯誤、重覆執行數個指令。"
108109
end
109110

110-
tip "Copy and Paste" do
111+
tip "複製貼上" do
111112

112-
message "It's usually better to type commands in yourself. It takes a little longer but you learn more."
113+
message "通常來說自己打指令會比較好,雖然費時費力,但比較會學到東西。"
113114

114-
message "But if you must... in these instructions, where it says: \"Type this in the terminal:\", you can usually copy the command from this page, and right click in the menu bar or terminal window, then click on \"Paste\", then hit the **[enter]** key."
115+
message "但如果你真的要……好啦,在課程裡面,如果說要「在終端機打這些字:」,你可以把指令複製起來,然後在終端機裡面或標題列按右鍵,然後選「貼上」,再按**[enter]**鍵就行了。"
115116
end
116117
end
117118

118-
step "Install a Text Editor" do
119-
message "You need a text editor to do Ruby. If you already have a preferred text editor, such as vi, emacs, jedit, etc., you can skip this step. It must be a plain text editor and not something with styling like Microsoft Word or WordPad."
119+
step "安裝文字編輯器" do
120+
message "你需要文字編輯器來寫 Ruby 程式。如果你已經有喜歡的編輯器,好比說 vi、emacsjedit 等,你可以跳過。不過,必須一定要是純文字編輯器,不可以是可以塗色改字體的那種,好比說 Microsoft Word WordPad"
120121

121-
message "Notepad is not a good programming editor, but it will work in a pinch."
122+
message "記事本不是好用的程式用編輯器,但基本上可以用。"
122123

123-
important "**When in doubt, use Sublime Text 2.**"
124+
important "**不知道要選什麼的話,請選 Sublime Text 2"
124125

125-
message "[Sublime Text 2](http://www.sublimetext.com/2) is a good option, if you don't have one yet."
126+
message "你如果沒有編輯器的話,[Sublime Text 2](http://www.sublimetext.com/2) 不錯。"
126127

127-
message "Download Sublime Text 2 here: <http://www.sublimetext.com/2>"
128+
message "請到這裡下載 Sublime Text 2<http://www.sublimetext.com/2>"
128129
end
129130

130131
next_step "configure_git"
132+
133+

0 commit comments

Comments
 (0)