Skip to content

Translate snap post (zh_tw) #1906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2018
Merged

Conversation

dsh0416
Copy link
Contributor

@dsh0416 dsh0416 commented Dec 4, 2018

No description provided.

@dsh0416 dsh0416 requested a review from a team as a code owner December 4, 2018 00:13
@olivierlacan
Copy link
Contributor

I recommend you add Markdown links around the URLs as shown in: https://github.com/ruby/www.ruby-lang.org/pull/1907/files

@dsh0416
Copy link
Contributor Author

dsh0416 commented Dec 4, 2018

@olivierlacan Thank you for your review. I have followed up my commit with #1907

Copy link
Member

@bugtender bugtender left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor issue. Please take a look. 😊

sudo snap refresh
```

我們的 Snap 套件缺省將 `$HOME/.gem` 作爲 `GEM_HOME` 和 `GEM_PATH` 的環境變數。所以當你執行由 RubyGems 安裝的指令(例如 Rails 或 RSpec),而沒有使用 `bundle exec` 命令時,你需要將下述程式添加至你的 shell rc 檔案中(例如 .bashrc):
Copy link
Member

@bugtender bugtender Dec 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
我們的 Snap 套件缺省將 `$HOME/.gem` 作爲 `GEM_HOME``GEM_PATH` 的環境變數。所以當你執行由 RubyGems 安裝的指令(例如 Rails 或 RSpec),而沒有使用 `bundle exec` 命令時,你需要將下述程式添加至你的 shell rc 檔案中(例如 .bashrc):
我們的 Snap 套件預設將 `$HOME/.gem` 作爲 `GEM_HOME``GEM_PATH` 的環境變數。所以當你執行由 RubyGems 安裝的指令(例如 Rails 或 RSpec),而沒有使用 `bundle exec` 命令時,你需要將下述程式添加至你的 shell rc 檔案中(例如 .bashrc):

eval `ruby.env`
```

由於 `$HOME/.gem` 被多個不同版本共享,如果你切換 Ruby 版本,你需要通過 `gem pristine --extensions` 重新編譯 C 擴展程式才能繼續使用 gem。
Copy link
Member

@bugtender bugtender Dec 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
由於 `$HOME/.gem` 被多個不同版本共享,如果你切換 Ruby 版本,你需要通過 `gem pristine --extensions` 重新編譯 C 擴展程式才能繼續使用 gem。
由於 `$HOME/.gem` 被多個不同版本共享,如果你切換 Ruby 版本,你需要通過 `gem pristine --extensions` 重新編譯 C 擴充程式才能繼續使用 gem。


(如果您正在使用其它 Linux 發行版,請參考 <https://docs.snapcraft.io/installing-snapd/6735>)

我們的 snap 套件使用「頻道」功能使得多個 Ruby 版本可以平行發行。例如,在不指定頻道時,會安裝 Ruby 2.5.3 版本。但如果你想使用 Ruby 2.4,你可以通過下述命令指定爲 2.4 頻道:
Copy link
Member

@bugtender bugtender Dec 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think to keep argument name "channel" at the first time like 「頻道(channel)」 will be great for zh user.

Suggested change
我們的 snap 套件使用「頻道」功能使得多個 Ruby 版本可以平行發行。例如,在不指定頻道時,會安裝 Ruby 2.5.3 版本。但如果你想使用 Ruby 2.4,你可以通過下述命令指定爲 2.4 頻道:
我們的 snap 套件使用「頻道(channel)」功能使得多個 Ruby 版本可以平行發行。例如,在不指定頻道時,會安裝 Ruby 2.5.3 版本。但如果你想使用 Ruby 2.4,你可以通過下述命令指定爲 2.4 頻道:

@dsh0416
Copy link
Contributor Author

dsh0416 commented Dec 5, 2018

@bugtender Thank you for your reviewing. The problems mentioned have been fixed.

@JuanitoFatas JuanitoFatas merged commit e87b7ad into ruby:master Dec 5, 2018
@JuanitoFatas
Copy link
Member

Thanks 🙏

@dsh0416 dsh0416 deleted the dsh0416/snap-tw branch December 6, 2018 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants