Skip to content

Commit 36ef748

Browse files
pan93412nschonni
authored andcommitted
l10n(zh_TW): update & improve translations
Signed-off-by: pan93412 <pan93412@gmail.com>
1 parent 04e85bc commit 36ef748

11 files changed

Lines changed: 125 additions & 110 deletions

File tree

locale/zh-tw/404.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ permalink: false
44
title: 404
55
---
66

7-
## 404: 找不到網頁
7+
## 404找不到網頁
88

9-
### ENOENT: 找不到文件或目錄
9+
### ENOENT:無此檔案或目錄

locale/zh-tw/about/index.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
---
22
layout: about.hbs
3-
title: About
4-
trademark: Trademark
3+
title: 關於
4+
trademark: 商標
55
---
66

7-
# About Node.js®
7+
# 關於 Node.js®
88

9-
As an asynchronous event-driven JavaScript runtime, Node.js is designed to build
10-
scalable network applications. In the following "hello world" example, many
11-
connections can be handled concurrently. Upon each connection, the callback is
12-
fired, but if there is no work to be done, Node.js will sleep.
9+
作為一個異步事件驅動的 JavaScript 執行階段,Node.js 設計來建構可擴充的網路應用程式。下方的「Hello World」範例中,多個連線皆能並行處理。一當每個連線建立後,會先執行回呼函式,但如果沒有需要作的事情,Node.js 則會休眠。
1310

1411
```javascript
1512
const http = require('http');
@@ -24,7 +21,7 @@ const server = http.createServer((req, res) => {
2421
});
2522

2623
server.listen(port, hostname, () => {
27-
console.log(`Server running at http://${hostname}:${port}/`);
24+
console.log(`伺服器正在 http://${hostname}:${port}/ 運作`);
2825
});
2926
```
3027

@@ -34,14 +31,13 @@ difficult to use. Furthermore, users of Node.js are free from worries of
3431
dead-locking the process, since there are no locks. Almost no function in
3532
Node.js directly performs I/O, so the process never blocks. Because nothing blocks, scalable systems are very reasonable to develop in Node.js.
3633

37-
If some of this language is unfamiliar, there is a full article on
38-
[Blocking vs. Non-Blocking][].
34+
如果不熟悉這門語言的一些地方,在 [阻塞式與非阻塞式的比較][] 這篇文章有完整的解釋。
3935

4036
---
4137

4238
Node.js is similar in design to, and influenced by, systems like Ruby's
4339
[Event Machine][] and Python's [Twisted][]. Node.js takes the event model a bit
44-
further. It presents an [event loop][] as a runtime construct instead of as a library. In other systems, there is always a blocking call to start the
40+
further. It presents an [事件循環][] as a runtime construct instead of as a library. In other systems, there is always a blocking call to start the
4541
event-loop.
4642
Typically, behavior is defined through callbacks at the beginning of a script, and
4743
at the end a server is started through a blocking call like
@@ -61,9 +57,9 @@ communicate with. Built upon that same interface is the [`cluster`][] module,
6157
which allows you to share sockets between processes to enable load balancing
6258
over your cores.
6359

64-
[Blocking vs. Non-Blocking]: /en/docs/guides/blocking-vs-non-blocking/
60+
[阻塞式與非阻塞式的比較]: /en/docs/guides/blocking-vs-non-blocking/
6561
[`child_process.fork()`]: https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options
6662
[`cluster`]: https://nodejs.org/api/cluster.html
67-
[event loop]: /en/docs/guides/event-loop-timers-and-nexttick/
63+
[事件循環]: /en/docs/guides/event-loop-timers-and-nexttick/
6864
[Event Machine]: https://github.com/eventmachine/eventmachine
6965
[Twisted]: https://twistedmatrix.com/trac/

locale/zh-tw/about/releases.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
---
22
layout: about-release-schedule.hbs
3-
title: Releases
3+
title: 發布版
44
statuses:
5-
maintenance: 'Maintenance LTS'
6-
active: 'Active LTS'
7-
current: 'Current'
8-
pending: 'Pending'
5+
maintenance: '維護 LTS'
6+
active: '活躍 LTS'
7+
current: '最新版'
8+
pending: '待發布版'
99
columns:
10-
- 'Release'
11-
- 'Status'
12-
- 'Codename'
13-
- 'Initial Release'
14-
- 'Active LTS Start'
15-
- 'Maintenance LTS Start'
16-
- 'End-of-life'
17-
schedule-footer: Dates are subject to change.
10+
- '發布版'
11+
- '狀態'
12+
- '內部代號'
13+
- '初發布版'
14+
- '活躍 LTS 週期開始'
15+
- '維護 LTS 週期開始'
16+
- '結束生命週期'
17+
schedule-footer: 日期會隨時變更。
1818
---
1919

20-
# Releases
20+
# 發布版
2121

22-
Major Node.js versions enter _Current_ release status for six months, which gives library authors time to add support for them.
23-
After six months, odd-numbered releases (9, 11, etc.) become unsupported, and even-numbered releases (10, 12, etc.) move to _Active LTS_ status and are ready for general use.
24-
_LTS_ release status is "long-term support", which typically guarantees that critical bugs will be fixed for a total of 30 months.
25-
Production applications should only use _Active LTS_ or _Maintenance LTS_ releases.
22+
主要 Node.js 版本會進入為時 6 個月的 _最新版_ 發布狀態,以讓函式庫作者有時間支援。
23+
6 個月後,奇數版號(9、11 等等)會不再受支援,而偶數版號(10、12 等等)會移至 _活躍 LTS_ 狀態並準備日常使用。
24+
_LTS_ 發布版狀態指「長期維護」,通常會保證嚴重臭蟲會在 30 個月內修正。
25+
生產環境的應用程式應只使用 _活躍 LTS_ _維護 LTS_ 版本。
Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,51 @@
11
---
2-
title: Dependencies
2+
title: 依賴項目
33
layout: docs.hbs
44
---
55

6-
# Dependencies
6+
# 依賴項目
77

8-
There are several dependencies that Node.js relies on to work the way it does.
8+
這裡列出了多個 Node.js 所仰賴的依賴項目,以讓 Node.js 能如預期般運作。
99

10-
* [Libraries](#libraries)
10+
* [函式庫](#libraries)
1111
* [V8](#v8)
1212
* [libuv](#libuv)
1313
* [http-parser](#http-parser)
1414
* [c-ares](#c-ares)
1515
* [OpenSSL](#openssl)
1616
* [zlib](#zlib)
17-
* [Tools](#tools)
17+
* [工具](#tools)
1818
* [npm](#npm)
1919
* [gyp](#gyp)
2020
* [gtest](#gtest)
2121

22-
## Libraries
22+
<!--
23+
FOR TRANSLATORS: [11.21.19]
24+
如原標題連結是 [XXX](#XXX) 而要翻譯標題時,
25+
請將標題改成 <a id='XXX'>XXX 的翻譯</a> 形式,
26+
否則錨點會跑掉。
27+
28+
例如:有個標題叫「## Libraries」並有個連結至此標題的連結:
29+
[Libraries](#libraries)
30+
31+
要將「Libraries」翻譯成「函式庫」,
32+
則請將標題改成以下形式:
33+
34+
## <a id='libraries'>函式庫</a>
35+
36+
而連結翻成這樣:[函式庫](#libraries)
37+
~~~~~~~~~~
38+
後方連結_不需_變更
39+
-->
40+
41+
## <a id='libraries'>函式庫</a>
2342

2443
### V8
2544

26-
The V8 library provides Node.js with a JavaScript engine, which Node.js
27-
controls via the V8 C++ API. V8 is maintained by Google, for use in Chrome.
45+
V8 函式庫為 Node.js 提供了 JavaScript 引擎(Node.js 使用 V8 C++ API 控制)。
46+
V8 Google 維護用來在 Chrome 使用的。
2847

29-
* [Documentation](https://v8docs.nodesource.com/)
48+
* [文件](https://v8docs.nodesource.com/)
3049

3150
### libuv
3251

@@ -37,15 +56,15 @@ processes, pipes, signal handling, polling and streaming. It also includes a
3756
thread pool for offloading work for some things that can't be done
3857
asynchronously at the operating system level.
3958

40-
* [Documentation](http://docs.libuv.org/)
59+
* [文件](http://docs.libuv.org/)
4160

4261
### llhttp
4362

4463
HTTP parsing is handled by a lightweight TypeScript and C library called llhttp.
4564
It is designed to not make any syscalls or allocations, so it has a very small
4665
per-request memory footprint.
4766

48-
* [Documentation](https://github.com/joyent/http-parser/)
67+
* [文件](https://github.com/joyent/http-parser/)
4968

5069
### c-ares
5170

@@ -56,25 +75,25 @@ use of threaded `getaddrinfo(3)` calls in libuv. The reason for this is that
5675
c-ares supports /etc/hosts, /etc/resolv.conf and /etc/svc.conf, but not things
5776
like mDNS.
5877

59-
* [Documentation](https://c-ares.haxx.se/docs.html)
78+
* [文件](https://c-ares.haxx.se/docs.html)
6079

6180
### OpenSSL
6281

6382
OpenSSL is used extensively in both the `tls` and `crypto` modules. It provides
6483
battle-tested implementations of many cryptographic functions that the modern
6584
web relies on for security.
6685

67-
* [Documentation](https://www.openssl.org/docs/)
86+
* [文件](https://www.openssl.org/docs/)
6887

6988
### zlib
7089

7190
For fast compression and decompression, Node.js relies on the industry-standard
7291
zlib library, also known for its use in gzip and libpng. Node.js uses zlib to
7392
create sync, async and streaming compression and decompression interfaces.
7493

75-
* [Documentation](https://www.zlib.net/manual.html)
94+
* [文件](https://www.zlib.net/manual.html)
7695

77-
## Tools
96+
## <a id='tools'>工具</a>
7897

7998
### npm
8099

@@ -83,7 +102,7 @@ package manager; for this purpose, npm was made. With npm comes the largest
83102
selection of community-created packages of any programming ecosystem,
84103
which makes building Node.js apps quick and easy.
85104

86-
* [Documentation](https://docs.npmjs.com/)
105+
* [文件](https://docs.npmjs.com/)
87106

88107
### gyp
89108

@@ -92,11 +111,11 @@ from V8. It can generate project files for use with build systems across many
92111
platforms. Node.js requires a build system because large parts of it — and its
93112
dependencies — are written in languages that require compilation.
94113

95-
* [Documentation](https://gyp.gsrc.io/docs/UserDocumentation.md)
114+
* [文件](https://gyp.gsrc.io/docs/UserDocumentation.md)
96115

97116
### gtest
98117

99118
Native code can be tested using gtest, which is taken from Chromium. It allows
100119
testing C/C++ without needing an existing node executable to bootstrap from.
101120

102-
* [Documentation](https://code.google.com/p/googletest/wiki/V1_7_Documentation)
121+
* [文件](https://code.google.com/p/googletest/wiki/V1_7_Documentation)

locale/zh-tw/download/current.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@ downloads:
77
lts: LTS
88
current: 目前版本
99
tagline-current: 最新功能
10-
tagline-lts: 推薦大多數使用者使用
10+
tagline-lts: 建議大部分使用者使用
1111
display-hint: 顯示
1212
intro: >
13-
下載適合你的平台的 Node.js 原始碼或安裝套件立刻開始使用 Node.js。
14-
currentVersion: 目前版本
13+
下載適合您平台的 Node.js 原始碼或安裝套件立刻開始使用 Node.js。
14+
currentVersion: 最新版
1515
includes: 包含
1616
buildInstructions: 在支援的平台上,使用原始碼建構 Node.js
1717
WindowsInstaller: Windows 安裝包
18-
WindowsBinary: Windows 二進制檔案
18+
WindowsBinary: Windows 二進位檔案
1919
MacOSInstaller: macOS 安裝包
20-
MacOSBinary: macOS 二進制檔案
21-
LinuxBinaries: Linux 二進制檔案
20+
MacOSBinary: macOS 二進位檔案
21+
LinuxBinaries: Linux 二進位檔案
2222
SourceCode: 原始碼
2323
additional:
2424
headline: 其它平台
2525
intro: >
26-
Node.js 社群為其它平台維護的非官方建構。請注意 Node.js 團隊並不為這些建構提供技術支援且其可能與現行 Node.js 版本不一致。
26+
Node.js 社群為其它平台維護的非官方建構。請注意 Node.js 團隊並不為這些建置版本提供技術支援且其可能與現行 Node.js 版本不一致。
2727
platform: 平台
2828
provider: 提供者
29-
SmartOSBinaries: SmartOS 二進制檔案
29+
SmartOSBinaries: SmartOS 二進位檔案
3030
DockerImage: Docker 映像檔
3131
officialDockerImage: Node.js 官方 Docker 映像檔
32-
LinuxPowerSystems: Linux on Power Systems
33-
LinuxSystemZ: Linux on System z
34-
AIXPowerSystems: AIX on Power Systems
32+
LinuxPowerSystems: 建置在 Power 系統上的 Linux
33+
LinuxSystemZ: 建置在 System Z 上的 Linux
34+
AIXPowerSystems: 建置在 Power 系統的 AIX
3535
---

locale/zh-tw/download/index.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,29 @@ downloads:
77
lts: LTS
88
current: 目前版本
99
tagline-current: 最新功能
10-
tagline-lts: 推薦大多數使用者使用
10+
tagline-lts: 建議大部分使用者使用
1111
display-hint: 顯示
1212
intro: >
13-
在你的平台上下載 Node.js 原始碼或者安裝套件,立刻開始使用 Node.js。
14-
currentVersion: 目前版本
13+
下載適合您平台的 Node.js 原始碼或安裝套件。立刻開始使用 Node.js。
14+
currentVersion: 最新版
1515
includes: 包含
16-
buildInstructions: 使用原始碼在支援的平台上建構 Node.js
16+
buildInstructions: 在支援的平台上,使用原始碼建構 Node.js
1717
WindowsInstaller: Windows 安裝包
18-
WindowsBinary: Windows 二進制檔案
18+
WindowsBinary: Windows 二進位檔案
1919
MacOSInstaller: macOS 安裝包
20-
MacOSBinary: macOS 二進制檔案
21-
LinuxBinaries: Linux 二進制檔案
20+
MacOSBinary: macOS 二進位檔案
21+
LinuxBinaries: Linux 二進位檔案
2222
SourceCode: 原始碼
2323
additional:
2424
headline: 其它平台
2525
intro: >
26-
Node.js 社群為其它平臺維護非官方的建構。請注意這些構建並不受 Node.js 核心團隊技術支援且可能尚未跟 Node.js 的目前發布版本保持一致
26+
Node.js 社群為其它平台維護的非官方建構。請注意 Node.js 團隊並不為這些建置版本提供技術支援且其可能與現行 Node.js 版本不一致
2727
platform: 平台
2828
provider: 提供者
29-
SmartOSBinaries: SmartOS 二進制檔案
29+
SmartOSBinaries: SmartOS 二進位檔案
3030
DockerImage: Docker 映像檔
3131
officialDockerImage: Node.js 官方 Docker 映像檔
32-
LinuxPowerSystems: Power Systems 上的 Linux
33-
LinuxSystemZ: System z 上的 Linux
34-
AIXPowerSystems: Power Systems 上的 AIX
32+
LinuxPowerSystems: 建置在 Power 系統上的 Linux
33+
LinuxSystemZ: 建置在 System Z 上的 Linux
34+
AIXPowerSystems: 建置在 Power 系統的 AIX
3535
---

0 commit comments

Comments
 (0)