Skip to content

zh-cn: update the translation of the "try...catch" statement#34911

Merged
yin1999 merged 4 commits intomdn:mainfrom
Totoro-jam:update-trycatch-zh-cn
Apr 14, 2026
Merged

zh-cn: update the translation of the "try...catch" statement#34911
yin1999 merged 4 commits intomdn:mainfrom
Totoro-jam:update-trycatch-zh-cn

Conversation

@Totoro-jam
Copy link
Copy Markdown
Contributor

Description

同步更新 try...catch 的中文翻译,包含以下内容:

  • 更新 l10n.sourceCommit 为最新提交
  • 新增"使用 finally 进行资源清理"章节,包含文件操作示例和 safeWriteMyFile 示例
  • 更新"从 finally 块返回"章节,使用最新的 doIt() 示例说明控制流覆盖行为

Motivation

英文原文新增了"使用 finally 进行资源清理"章节,并更新了"从 finally 块返回"章节的示例代码,需要同步翻译以便中文读者获取最新的示例和说明。

Additional details

@Totoro-jam Totoro-jam requested a review from a team as a code owner April 2, 2026 08:09
@Totoro-jam Totoro-jam requested review from yin1999 and removed request for a team April 2, 2026 08:09
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Apr 2, 2026
@Totoro-jam Totoro-jam force-pushed the update-trycatch-zh-cn branch from d31a278 to 9f7d9b5 Compare April 3, 2026 06:03
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

Preview URLs (1 page)

(comment last updated: 2026-04-14 05:51:55)

@yin1999 yin1999 changed the title chore(zh-CN): update translation of Web/JavaScript/Reference/Statements/try...catch zh-cn: update the translation of the "try...catch" statement Apr 14, 2026
Copy link
Copy Markdown
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

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

下次请注意完整核对内容(特别是在更新 l10n.sourceCommit 的情况下),我最近审核的两个 PR 都有明显的内容不同步问题

@yin1999 yin1999 merged commit ed46018 into mdn:main Apr 14, 2026
8 checks passed
@github-project-automation github-project-automation bot moved this from Review requested to Done in MDN translated-content l10n-zh Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

l10n-zh Issues related to Chinese content.

Projects

Development

Successfully merging this pull request may close these issues.

2 participants