Skip to content

Commit 305be08

Browse files
Update translations. (#68)
1 parent d9f514b commit 305be08

File tree

23 files changed

+226
-226
lines changed

23 files changed

+226
-226
lines changed

lang/fr/typeshed/stdlib/microbit/uart.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For more details see `the online documentation <https://microbit-micropython.rea
2929
...
3030

3131
def any() -> bool:
32-
"""Check if any data is waiting.
32+
"""Vérifie si une donnée est en attente.
3333
3434
Example: ``uart.any()``
3535

lang/zh-tw/typeshed/stdlib/gc.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ def collect() -> None:
1616
...
1717

1818
def mem_alloc() -> int:
19-
"""獲取分配的堆積 RAM 的位元組。 (記憶體分配)
19+
"""取得分配的堆積 RAM 的位元組。 (記憶體分配)
2020
2121
:return: The number of bytes allocated.
2222
2323
This function is MicroPython extension."""
2424
...
2525

2626
def mem_free() -> int:
27-
"""獲取可用堆積 RAM 的位元組,如果此數量未知,則為 -1。
27+
"""取得可用堆積 RAM 的位元組,如果此數量未知,則為 -1。
2828
2929
:return: The number of bytes free.
3030
@@ -33,7 +33,7 @@ This function is MicroPython extension."""
3333

3434
@overload
3535
def threshold() -> int:
36-
"""查詢額外的GC分配閾值
36+
"""查詢其他 GC 分配閾值
3737
3838
:return: The GC allocation threshold.
3939

lang/zh-tw/typeshed/stdlib/log.pyi

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
"""將資料記錄到您的 micro:bit V2。"""
22
from typing import Literal, Optional, Union, overload
33
MILLISECONDS = 1
4-
"""毫秒時間郵戳格式。"""
4+
"""毫秒時間戳記格式。"""
55
SECONDS = 10
6-
"""秒時間郵戳格式。"""
6+
"""秒時間戳記格式。"""
77
MINUTES = 600
8-
"""分鐘時間郵戳格式"""
8+
"""分鐘時間戳記格式"""
99
HOURS = 36000
10-
"""小時時間郵戳格式。"""
10+
"""小時時間戳記格式。"""
1111
DAYS = 864000
12-
"""天時間郵戳格式。"""
12+
"""天時間戳記格式。"""
1313

1414
def set_labels(*args: str, timestamp: Optional[Literal[1, 10, 36000, 864000]]=SECONDS) -> None:
15-
"""設定記錄檔案標頭
15+
"""設定紀錄檔案標頭
1616
1717
Example: ``log.set_labels('x', 'y', 'z', timestamp=log.MINUTES)``
1818
@@ -24,9 +24,9 @@ labels set up by this function call to the last headers declared in the
2424
file. If the headers are different it will add a new header entry at the
2525
end of the file.
2626
27-
:param *args: 各記錄標頭的位置引數
27+
:param *args: 各紀錄標頭的位置引數
2828
:param timestamp: (時間戳記) 將自動新增為每列第一行的時間郵戳單元。
29-
將此引數設定為 ``None``,則會停用時間郵戳。傳遞此模組定義的 ``log.MILLISECONDS``、``log.SECONDS``、``log.MINUTES``、``log.HOURS`` 或 ``log.DAYS`` 值。無效值將擲回例外狀況。"""
29+
將此引數設定為 ``None``,則會停用時間戳記。傳遞此模組定義的 ``log.MILLISECONDS``、``log.SECONDS``、``log.MINUTES``、``log.HOURS`` 或 ``log.DAYS`` 值。無效值將擲回例外狀況。"""
3030
...
3131

3232
@overload
@@ -44,12 +44,12 @@ entry to be added to the log with the extra label.
4444
Labels previously specified and not present in this function call will be
4545
skipped with an empty value in the log row.
4646
47-
:param log_data: 若要記錄為字典的資料,每個標頭都有一個金鑰。"""
47+
:param log_data: 若要記錄為字典的資料,每個標頭都有一把金鑰。"""
4848
...
4949

5050
@overload
5151
def add(**kwargs: Union[str, int, float]) -> None:
52-
"""使用關鍵字引數將資料行新增至紀錄中
52+
"""使用關鍵字引數,將資料列新增至紀錄中
5353
5454
Example: ``log.add(temp=temperature())``
5555
@@ -71,16 +71,16 @@ Example: ``log.delete()``
7171
To add the log headers the ``set_labels`` function has to be called again
7272
after this.
7373
74-
:param full: 選擇從快取記憶體中刪除資料的「完整」抹除格式
75-
如果設定為 ``False`` 則會使用「快速」方法,該方法會使資料無效,而不是執行較慢的完全抹除。"""
74+
:param full: 選擇從快閃存放裝置中移除資料的「完全」清除格式
75+
如果設定為 ``False``則會使用「快速」方法,該方法會使資料無效,而不是執行較慢的完全清除。"""
7676
...
7777

7878
def set_mirroring(serial: bool):
79-
"""將資料記錄活動鏡像到序列輸出
79+
"""將資料紀錄活動鏡像到序列輸出
8080
8181
Example: ``log.set_mirroring(True)``
8282
8383
Mirroring is disabled by default.
8484
85-
:param serial: 傳遞 ``True`` 將資料記錄活動鏡像到序列輸出,``False`` 則停用鏡像。"""
85+
:param serial: 傳遞 ``True`` 將資料紀錄活動鏡像到序列輸出,``False`` 則停用鏡像。"""
8686
...

lang/zh-tw/typeshed/stdlib/machine.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ from typing import Any
33
from .microbit import MicroBitDigitalPin
44

55
def unique_id() -> bytes:
6-
"""取得具有板的唯一識別碼之位元組字串
6+
"""取得具有開發板的唯一識別碼之位元組字串
77
88
Example: ``machine.unique_id()``
99
@@ -40,7 +40,7 @@ def enable_irq(state: Any) -> None:
4040
4141
Example: ``machine.enable_irq(interrupt_state)``
4242
43-
:param state: 從最近一次叫用 ``disable_irq`` 函式傳回的值。"""
43+
:param state: 從最近一次呼叫 ``disable_irq`` 函式傳回的值。"""
4444
...
4545

4646
def time_pulse_us(pin: MicroBitDigitalPin, pulse_level: int, timeout_us: int=1000000) -> int:
@@ -56,7 +56,7 @@ starts straight away.
5656
5757
:param pin: (引腳) 要使用的引腳
5858
:param pulse_level: 0 到計時低脈衝或 1 到計時高脈衝
59-
:param timeout_us: 微秒超時
59+
:param timeout_us: 微秒逾時
6060
:return: The duration of the pulse in microseconds, or -1 for a timeout waiting for the level to match ``pulse_level``, or -2 on timeout waiting for the pulse to end"""
6161
...
6262

lang/zh-tw/typeshed/stdlib/math.pyi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Example: ``math.acos(1)``
1111
...
1212

1313
def asin(x: float) -> float:
14-
"""計算反正弦值
14+
"""計算反正弦
1515
1616
Example: ``math.asin(0)``
1717
@@ -39,7 +39,7 @@ Example: ``math.atan2(0, -1)``
3939
...
4040

4141
def ceil(x: float) -> float:
42-
"""將數字向正無限大捨入
42+
"""將數字向正無限大四捨五入
4343
4444
Example: ``math.ceil(0.1)``
4545
@@ -94,7 +94,7 @@ Example: ``math.fabs(-0.1)``
9494
...
9595

9696
def floor(x: float) -> int:
97-
"""將數字向負無限大捨入
97+
"""將數字向負無限大四捨五入
9898
9999
Example: ``math.floor(0.9)``
100100
@@ -125,7 +125,7 @@ the relation ``0.5 <= abs(m) < 1`` holds.
125125
...
126126

127127
def isfinite(x: float) -> bool:
128-
"""檢查值是否是有限的
128+
"""檢查值是否為有限
129129
130130
Example: ``math.isfinite(float('inf'))``
131131
@@ -134,7 +134,7 @@ Example: ``math.isfinite(float('inf'))``
134134
...
135135

136136
def isinf(x: float) -> bool:
137-
"""檢查值是否是無限的
137+
"""檢查值是否為無限
138138
139139
Example: ``math.isinf(float('-inf'))``
140140
@@ -143,7 +143,7 @@ Example: ``math.isinf(float('-inf'))``
143143
...
144144

145145
def isnan(x: float) -> bool:
146-
"""檢查值是否不是數字 (NaN)。
146+
"""檢查值是否為非數字 (NaN)。
147147
148148
Example: ``math.isnan(float('nan'))``
149149
@@ -233,7 +233,7 @@ Example: ``math.tan(0)``
233233
...
234234

235235
def trunc(x: float) -> int:
236-
"""將數字向 0 舍入
236+
"""將數字向 0 四捨五入
237237
238238
Example: ``math.trunc(-0.9)``
239239

0 commit comments

Comments
 (0)