Skip to content

Commit b3ec22f

Browse files
Update translations. (#70)
Commercial translation is complete.
1 parent 487c589 commit b3ec22f

File tree

18 files changed

+52
-52
lines changed

18 files changed

+52
-52
lines changed

lang/es-es/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. (algún)
32+
"""Comprueba si hay algún dato esperando. (algún)
3333
3434
Example: ``uart.any()``
3535

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-
"""Vérifie si une donnée est en attente.
32+
"""Vérifier s'il y a des données en attente.
3333
3434
Example: ``uart.any()``
3535

lang/ko/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+
"""대기 중인 데이터가 있는지 확인합니다.
3333
3434
Example: ``uart.any()``
3535

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""控制垃圾回收器"""
1+
"""控制垃圾回收器 (垃圾回收(gc))"""
22
from typing import overload
33

44
def enable() -> None:

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
"""将数据记录到您的 micro:bit V2。"""
1+
"""将数据记录到您的 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:
1515
"""设置日志文件头。

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""低级实用程序。"""
1+
"""低级实用程序。 (机器)"""
22
from typing import Any
33
from .microbit import MicroBitDigitalPin
44

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""数学函数。"""
1+
"""数学函数。 (数学)"""
22
from typing import Tuple
33

44
def acos(x: float) -> float:
@@ -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
@@ -162,7 +162,7 @@ Example: ``math.ldexp(0.5, 2)``
162162
...
163163

164164
def log(x: float, base: float=e) -> float:
165-
"""计算给定底数 ``x`` 的对数(默认为自然对数)。
165+
"""计算给定底数 ``x`` 的对数(默认为自然对数)。 (日志)
166166
167167
Example: ``math.log(math.e)``
168168

lang/zh-cn/typeshed/stdlib/microbit/__init__.pyi

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ or used as a decorator::
2929
Arguments with different time units are additive.
3030
3131
:param callback: 要调用的回调。当用作装饰器时省略。
32-
:param days: 以天为单位的间隔。
32+
:param days: (天) 以天为单位的间隔。
3333
:param h: 以小时为单位的间隔。
3434
:param min: (分钟) 以分钟为单位的间隔。
3535
:param s: (秒) 以秒为单位的间隔。
@@ -105,9 +105,9 @@ that the button must be pressed again before this method will return
105105
:return: The number of presses since the device started or the last time this method was called"""
106106
...
107107
button_a: Button
108-
"""左键 ``Button`` 对象。"""
108+
"""左键 ``Button`` 对象。 (按钮 a)"""
109109
button_b: Button
110-
"""右键 ``Button`` 对象。"""
110+
"""右键 ``Button`` 对象。 (按钮 b)"""
111111

112112
class MicroBitDigitalPin:
113113
"""数字引脚。 (Microbit 数字引脚)
@@ -290,19 +290,19 @@ Given an image object it's possible to display it via the ``display`` API::
290290
HEART_SMALL: Image
291291
"""小的心形图像。 (小的心形)"""
292292
HAPPY: Image
293-
"""快乐的脸部图像。"""
293+
"""快乐的脸部图像。 (快乐)"""
294294
SMILE: Image
295-
"""微笑的脸部图像。"""
295+
"""微笑的脸部图像。 (微笑)"""
296296
SAD: Image
297-
"""难过的脸部图像。"""
297+
"""难过的脸部图像。 (难过)"""
298298
CONFUSED: Image
299-
"""困惑的面部图像。"""
299+
"""困惑的面部图像。 (困惑)"""
300300
ANGRY: Image
301-
"""愤怒的脸部图像。"""
301+
"""愤怒的脸部图像。 (愤怒)"""
302302
ASLEEP: Image
303-
"""睡着的脸部图像。"""
303+
"""睡着的脸部图像。 (睡着)"""
304304
SURPRISED: Image
305-
"""惊讶的脸部图像。"""
305+
"""惊讶的脸部图像。 (惊讶)"""
306306
SILLY: Image
307307
"""傻傻的脸部图像。 (傻的)"""
308308
FABULOUS: Image
@@ -356,7 +356,7 @@ Given an image object it's possible to display it via the ``display`` API::
356356
TRIANGLE: Image
357357
"""向上的三角形图像。 (三角)"""
358358
TRIANGLE_LEFT: Image
359-
"""左角的三角形图像。"""
359+
"""左角的三角形图像。 (左三角)"""
360360
CHESSBOARD: Image
361361
"""按棋盘式交替点亮 LED。 (国际象棋棋盘)"""
362362
DIAMOND: Image
@@ -366,29 +366,29 @@ Given an image object it's possible to display it via the ``display`` API::
366366
SQUARE: Image
367367
"""方形图像。 (正方形)"""
368368
SQUARE_SMALL: Image
369-
"""小的方形图像。"""
369+
"""小的方形图像。 (小方形)"""
370370
RABBIT: Image
371371
"""兔子图像。 (兔子)"""
372372
COW: Image
373373
"""奶牛图像。 (牛)"""
374374
MUSIC_CROTCHET: Image
375-
"""音乐音符图像"""
375+
"""音乐音符图像 (音乐音符)"""
376376
MUSIC_QUAVER: Image
377-
"""八分音符图像。"""
377+
"""八分音符图像。 (八分音符)"""
378378
MUSIC_QUAVERS: Image
379-
"""一对八分音符图像。"""
379+
"""一对八分音符图像。 (一对八分音符)"""
380380
PITCHFORK: Image
381381
"""干草叉图像。 (干草叉)"""
382382
XMAS: Image
383-
"""圣诞树图像。"""
383+
"""圣诞树图像。 (圣诞节)"""
384384
PACMAN: Image
385-
"""吃豆人游戏角色图像。"""
385+
"""吃豆人游戏角色图像。 (吃豆人)"""
386386
TARGET: Image
387-
"""目标图像"""
387+
"""目标图像 (目标)"""
388388
TSHIRT: Image
389389
"""T 恤图像。 (T恤)"""
390390
ROLLERSKATE: Image
391-
"""轮滑图像。"""
391+
"""轮滑图像。 (轮滑)"""
392392
DUCK: Image
393393
"""鸭子图像。 (鸭子)"""
394394
HOUSE: Image
@@ -412,9 +412,9 @@ Given an image object it's possible to display it via the ``display`` API::
412412
SNAKE: Image
413413
"""蛇图像。 (蛇)"""
414414
ALL_CLOCKS: List[Image]
415-
"""按顺序包含所有 CLOCK_ 图像的列表(时钟)。"""
415+
"""按顺序包含所有 CLOCK_ 图像的列表(时钟)。 (所有时钟)"""
416416
ALL_ARROWS: List[Image]
417-
"""按顺序包含所有 ARROW_ 图像的列表(箭头)。"""
417+
"""按顺序包含所有 ARROW_ 图像的列表(箭头)。 (所有箭头)"""
418418

419419
@overload
420420
def __init__(self, string: str) -> None:
@@ -638,13 +638,13 @@ class Sound:
638638
GIGGLE: Sound
639639
"""咯咯的声音。 (咯咯笑)"""
640640
HAPPY: Sound
641-
"""快乐的声音。"""
641+
"""快乐的声音。 (快乐)"""
642642
HELLO: Sound
643643
"""问候声。 (你好)"""
644644
MYSTERIOUS: Sound
645645
"""神秘的声音 (神秘的)"""
646646
SAD: Sound
647-
"""悲伤的声音。"""
647+
"""悲伤的声音。 (难过)"""
648648
SLIDE: Sound
649649
"""滑动声。 (滑动)"""
650650
SOARING: Sound

lang/zh-cn/typeshed/stdlib/microbit/audio.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""使用 micro:bit 播放声音(导入 ``audio`` 以兼容 V1)。"""
1+
"""使用 micro:bit 播放声音(导入 ``audio`` 以兼容 V1)。 (音频)"""
22
from ..microbit import MicroBitDigitalPin, Sound, pin0
33
from typing import Iterable, Union
44

lang/zh-cn/typeshed/stdlib/microbit/compass.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""使用内置罗盘。"""
1+
"""使用内置罗盘。 (罗盘)"""
22

33
def calibrate() -> None:
44
"""开始校准过程。 (校准)

0 commit comments

Comments
 (0)