Skip to content

🌐 [translation-sync] Correct two typos in exercise text (functions, python_by_example) - #143

Merged
mmcky merged 4 commits into
mainfrom
translation-sync-2026-11-02T00-34-13-pr-638
Nov 2, 2026
Merged

mmcky merged 4 commits into
mainfrom
translation-sync-2026-11-02T00-34-13-pr-638

Conversation

@mmcky

@mmcky mmcky commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Automated Translation Sync

This PR contains automated translations from QuantEcon/lecture-python-programming.

Source PR

#638 - Correct two typos in exercise text (functions, python_by_example)

Files Updated

  • ✏️ lectures/functions.md
  • ✏️ .translate/state/functions.md.yml
  • ✏️ lectures/python_by_example.md
  • ✏️ .translate/state/python_by_example.md.yml

Details

  • Source Language: en
  • Target Language: zh-cn
  • Model: claude-sonnet-5

This PR was created automatically by the translation action.

@mmcky mmcky added action-translation PRs created by QuantEcon/action-translation automated Automated sync PR opened by action-translation labels Nov 2, 2026
Copilot AI balanced review requested due to automatic review settings November 2, 2026 00:34
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

✅ Translation Quality Review

Verdict: PASS | Model: claude-sonnet-5 | Date: 2026-11-02
Routing: auto-merge — no gating findings; floors met
Shadow gate: would auto-merge (recorded only; no action taken)


📝 Translation Quality

Criterion Score
Accuracy 9/10
Fluency 9/10
Terminology 9/10
Formatting 9/10
Overall 9/10

Summary: 改动部分(Overview、Random Draws、Exercises、Advanced Exercises)翻译准确、流畅,术语使用与参考术语表一致,MyST/Markdown 格式和代码块均完整保留,未发现语法错误或实质性问题。 Overview、Random Draws、Exercises 等改动章节的术语与既有术语表保持一致(如'关键字参数''位置参数''递归函数'等) 代码块、数学公式、MyST 指令语法均完整保留,未发现断裂或格式错误 中文标点符号使用规范,行文流畅,符合学术文本的语域

Suggestions:

  • [minor · fluency] lectures/functions.md — ## Overview: 英文原文 'In this lecture we'll' 后面的编号列表第二项 'learn to do is build our own user-defined functions' 原文本身有语法瑕疵(残留的 'learn to do is'),中文翻译为'学习构建我们自己的用户自定义函数',已经合理地修正了原文的不通顺之处,是恰当的意译处理,不构成问题。
  • [nit · terminology] lectures/functions.md — ### Random Draws / Applications: 标题元数据中 'Applications::Random Draws' 被译为 '随机抽取',与 python_by_example.md 中 'Random Draws' 的翻译一致,术语统一,无问题。

🔍 Diff Quality

Check Status
Scope Correct ✅
Position Correct ✅
Structure Preserved ✅
Heading-map Correct ✅
Overall 10/10

Summary: Both source text edits were correctly and proportionally mirrored in the corresponding translated files with no scope, position, or structural issues.


This review was generated automatically by action-translation review mode.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No outstanding issues remain since the changes are minimal, correct translation typo fixes with a valid cross-reference and consistent metadata updates.

No open issues 🎉

What changed in this PR

This PR is an automated translation sync mirroring upstream source PR QuantEcon/lecture-python-programming#638. It applies two minor wording/typo corrections to the Simplified Chinese translations of exercise text in functions.md and python_by_example.md, and updates the corresponding translation-state metadata files. These changes keep the zh-cn lectures in sync with the English source material.

Changes:

  • python_by_example.md: reword "注意假设 var = 42" → "注意如果 var = 42" ("assuming" → "if") in the legend hint.
  • functions.md: reword the recursion exercise reference to "重写来自 练习 1 的函数".
  • Update .translate/state/*.yml metadata (source-sha, synced-at, tool-version 0.25.0 → 0.30.0).
File Description
lectures/​python_by_example.md Corrects "假设" → "如果" in the f-string legend hint for clarity.
lectures/​functions.md Rewords the recursion exercise sentence; cross-reference target factorial_exercise is valid (defined at functions.md:476).
.translate/​state/​python_by_example.md.yml Updates sync metadata (sha/date/tool-version) for the synced file.
.translate/​state/​functions.md.yml Updates sync metadata (sha/date/tool-version) for the synced file.

I reviewed the changes and found no issues to raise. The edits are correct, minimal translation typo fixes; the cross-reference label resolves correctly, the added spacing before [练习 1] matches existing usage in the same file (e.g., functions.md:381), and the state metadata updates (including the synced-at: "2026-11-02" date, which matches the current date) are consistent.

Review effort: Balanced

@mmcky
mmcky merged commit a40204a into main Nov 2, 2026
5 of 7 checks passed
@mmcky
mmcky deleted the translation-sync-2026-11-02T00-34-13-pr-638 branch November 2, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action-translation PRs created by QuantEcon/action-translation automated Automated sync PR opened by action-translation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants